[fedora-java] axis2

Stanislav Ochotnicky sochotnicky at redhat.com
Wed Apr 27 08:29:30 UTC 2011


Excerpts from Orion Poplawski's message of Fri Apr 22 18:03:41 +0200 2011:
> Has anyone looked at trying to package axis2 recently?
>
> I took a quick stab but it seems that the main axis2 build cannot find the
> axi2-maven-{mar,aar}-plugins that I build earlier.  Any ideas?
>
> http://www.cora.nwra.com/~orion/fedora/axis2.spec
> http://www.cora.nwra.com/~orion/fedora/axis2-1.5.4-1.fc14.src.rpm
> http://www.cora.nwra.com/~orion/fedora/build.log
> http://www.cora.nwra.com/~orion/fedora/root.log
>
> find ../root/builddir/build/BUILD/axis2-1.5.4/.m2
> ../root/builddir/build/BUILD/axis2-1.5.4/.m2
> ../root/builddir/build/BUILD/axis2-1.5.4/.m2/org
> ../root/builddir/build/BUILD/axis2-1.5.4/.m2/org/codehaus
> ../root/builddir/build/BUILD/axis2-1.5.4/.m2/org/codehaus/mojo
> ../root/builddir/build/BUILD/axis2-1.5.4/.m2/org/codehaus/mojo/maven-metadata-central.xml
> ../root/builddir/build/BUILD/axis2-1.5.4/.m2/org/apache
> ../root/builddir/build/BUILD/axis2-1.5.4/.m2/org/apache/maven
> ../root/builddir/build/BUILD/axis2-1.5.4/.m2/org/apache/maven/plugins
> ../root/builddir/build/BUILD/axis2-1.5.4/.m2/org/apache/maven/plugins/maven-metadata-central.xml
> ../root/builddir/build/BUILD/axis2-1.5.4/.m2/org/apache/axis2
> ../root/builddir/build/BUILD/axis2-1.5.4/.m2/org/apache/axis2/axis2-aar-maven-plugin
> ../root/builddir/build/BUILD/axis2-1.5.4/.m2/org/apache/axis2/axis2-aar-maven-plugin/1.5.4
> ../root/builddir/build/BUILD/axis2-1.5.4/.m2/org/apache/axis2/axis2-aar-maven-plugin/1.5.4/axis2-aar-maven-plugin-1.5.4.jar
> ../root/builddir/build/BUILD/axis2-1.5.4/.m2/org/apache/axis2/axis2-aar-maven-plugin/1.5.4/_maven.repositories
> ../root/builddir/build/BUILD/axis2-1.5.4/.m2/org/apache/axis2/axis2-aar-maven-plugin/1.5.4/axis2-aar-maven-plugin-1.5.4.pom
> ../root/builddir/build/BUILD/axis2-1.5.4/.m2/org/apache/axis2/axis2-aar-maven-plugin/maven-metadata-local.xml
> ../root/builddir/build/BUILD/axis2-1.5.4/.m2/org/apache/axis2/axis2-resource-bundle
> ../root/builddir/build/BUILD/axis2-1.5.4/.m2/org/apache/axis2/axis2-resource-bundle/1.5.4
> ../root/builddir/build/BUILD/axis2-1.5.4/.m2/org/apache/axis2/axis2-resource-bundle/1.5.4/axis2-resource-bundle-1.5.4.jar
> ../root/builddir/build/BUILD/axis2-1.5.4/.m2/org/apache/axis2/axis2-resource-bundle/1.5.4/_maven.repositories
> ../root/builddir/build/BUILD/axis2-1.5.4/.m2/org/apache/axis2/axis2-resource-bundle/1.5.4/axis2-resource-bundle-1.5.4.pom
> ../root/builddir/build/BUILD/axis2-1.5.4/.m2/org/apache/axis2/axis2-resource-bundle/maven-metadata-local.xml
> ../root/builddir/build/BUILD/axis2-1.5.4/.m2/org/apache/axis2/maven-metadata-local.xml
> ../root/builddir/build/BUILD/axis2-1.5.4/.m2/org/apache/axis2/axis2-mar-maven-plugin
> ../root/builddir/build/BUILD/axis2-1.5.4/.m2/org/apache/axis2/axis2-mar-maven-plugin/1.5.4
> ../root/builddir/build/BUILD/axis2-1.5.4/.m2/org/apache/axis2/axis2-mar-maven-plugin/1.5.4/axis2-mar-maven-plugin-1.5.4.pom
> ../root/builddir/build/BUILD/axis2-1.5.4/.m2/org/apache/axis2/axis2-mar-maven-plugin/1.5.4/_maven.repositories
> ../root/builddir/build/BUILD/axis2-1.5.4/.m2/org/apache/axis2/axis2-mar-maven-plugin/1.5.4/axis2-mar-maven-plugin-1.5.4.jar
> ../root/builddir/build/BUILD/axis2-1.5.4/.m2/org/apache/axis2/axis2-mar-maven-plugin/maven-metadata-local.xml

At first I thought this is a problem in our resolver in relation to
reactor build. But then I had a look at pom files...Modules don't have
<version> tag specified for mar/aar plugins. Then they can't find pom
you just installed because they are looking for different
version. Solution is to add <version> tag with 1.5.4 version. Best way
to do this is probably a nice sed using %{version} macro so you won't
have to redo the patch every new version...

I tried to do this and it seemed to work (I had to mvn-rpmbuild
resources and parent pom first). Hope it helped, if not we can try to
tweak it a bit more.


--
Stanislav Ochotnicky <sochotnicky at redhat.com>
Software Engineer - Base Operating Systems Brno

PGP: 7B087241
Red Hat Inc.                               http://cz.redhat.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/java-devel/attachments/20110427/e423ba85/attachment.bin 


More information about the java-devel mailing list