[fedora-java] Maven plugin to simplify spec %install section

Carlo de Wolf cdewolf at redhat.com
Tue Sep 11 12:59:57 UTC 2012


On 09/11/2012 01:58 PM, Mikolaj Izdebski wrote:
> Hello all,
>
> As you know, %build section of the majority of all Java packages
> built with Maven is fairly simple, usually consisting of a single
> call to mvn-rpmbuild. But the install section can still be long
> and complicated, especially for large packages.
>
> As a solution I have created a plugin for Maven that can install
> the whole project in Fedora way. It creates all necessary
> directories in buildroot, installs pom.xml and jar files, creates
> depmaps as needed, installs javadocs. With this plugin the whole
> %install section of typical packages (including multi-artifact
> ones) can be reduced to a single line.
>
> What do you think about this idea? Would you like to see it
> implemented in Fedora?
>
> Mikolaj Izdebski
> --
> java-devel mailing list
> java-devel at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/java-devel

I do want to add a blast from the past to this thread:

On 02/17/2012 10:49 AM, Carlo de Wolf wrote:
> I just would like to see maven artifacts 'properly' installed in 
> /usr/share/maven/repository.
> Then we can let upstream maven (and other tools) use that.
>
> Carlo 

It would need an extension to be able to use that repo if we let the pom 
fall in unchecked.
Something like https://github.com/fmvn/foss-maven.

But ultimately such a repository should be fully valid to the rules of 
Maven.
We could use a tool like https://github.com/jdcasey/repository-validator 
to assert that.

The only and very important gap is getting from 'world consuming' poms 
to sanctioned repo poms in some sort of automated way.

Ultimately it would fall in the area of concern your tool is covering.

Carlo


More information about the java-devel mailing list