[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

snappy-java mh-buildable with libmaven-bundle-plugin-java 2.3.4 but not 2.3.5.



Le Mon, Oct 31, 2011 at 06:49:49PM +0900, Charles Plessy a écrit :
> 	In pom.xml:
> 	This plugin is not useful for the build or its use is against Debian policies. Ignore this plugin?
> 	  org.apache.maven.plugins:maven-source-plugin:maven-plugin:2.1.2
> 	[y]/n > 
> 	[ignored]
> ->	Resolving org.apache.felix:maven-bundle-plugin:maven-plugin:2.3.5 of scope runtime...
> ->	[ok]
> 	Resolving org.apache.maven.plugins:maven-assembly-plugin:maven-plugin:2.2-beta-5 of scope runtime...
 
… 
 
> 	Project ID: org.apache.felix:maven-bundle-plugin
> 
> ->	Reason: POM 'org.apache.felix:maven-bundle-plugin' not found in repository: System is offline.
> 
> 	  org.apache.felix:maven-bundle-plugin:pom:2.3.4
> 
> 
> 	 for project org.apache.felix:maven-bundle-plugin
> 
> 
> 	[INFO] ------------------------------------------------------------------------
> 	[INFO] For more information, run Maven with the -e switch
> 	[INFO] ------------------------------------------------------------------------
> 	[INFO] Total time: < 1 second
> 	[INFO] Finished at: Mon Oct 31 18:45:32 JST 2011
> 	[INFO] Final Memory: 3M/180M
> 	[INFO] ------------------------------------------------------------------------
> 
> 
> Strangely, while mh_help outputs [ok] for maven-bundle-plugin, it is not found
> in the end (see the arrows in the margin).

Dear all,

noticing that libmaven-bundle-plugin-java is still at version 2.3.4 in Wheezy,
I downgraded and the package built fine.  However, it refuses to build with
2.3.5.  If I edit the pom.xml file to replace 2.3.4 by 2.3.5, then mh_make
successfully prepared a Debian source package, but build fails with the
following error.

(Regression tests and JavaDoc disabled)

anx191 ↱snappy↲$ fakeroot debian/rules binary
test -x debian/rules
dh_testroot
dh_prep 
dh_installdirs -A 
mkdir -p "."
/usr/share/maven-debian-helper/copy-repo.sh /home/charles/debian/pkg-java/snappy/debian
mh_patchpoms -plibsnappy-java --debian-build --keep-pom-version --maven-repo=/home/charles/debian/pkg-java/snappy/debian/maven-repo  --build-no-docs
touch debian/stamp-poms-patched
# before-build target may be used to unpatch the pom files, so we need to check if
# patching the pom files is needed here, normally not
if [ ! -f pom.xml.save ]; then \
		/usr/bin/make -f debian/rules patch-poms; \
	fi
cd . && /usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven2/boot/classworlds.jar:/usr/lib/jvm/default-java/lib/tools.jar -Dproperties.file.manual=/home/charles/debian/pkg-java/snappy/debian/maven.properties -Dclassworlds.conf=/etc/maven2/m2-debian-nodocs.conf org.codehaus.classworlds.Launcher -s/etc/maven2/settings-debian.xml -Dmaven.repo.local=/home/charles/debian/pkg-java/snappy/debian/maven-repo  package
[INFO] 
NOTE: Maven is executing in offline mode. Any artifacts not already in your local
repository will be inaccessible.

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Snappy for Java
[INFO]    task-segment: [package]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 8 resources
[INFO] Copying 1 resource to META-INF/maven/org.xerial.snappy/snappy-java
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 13 source files to /home/charles/debian/pkg-java/snappy/target/classes
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 21 resources
[INFO] skip non existing resourceDirectory /home/charles/debian/pkg-java/snappy/src/test/resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Not compiling test sources
[INFO] [surefire:test {execution: default-test}]
[INFO] Tests are skipped.
[INFO] [bundle:bundle {execution: default-bundle}]
[FATAL ERROR] org.apache.felix.bundleplugin.BundlePlugin#execute() caused a linkage error (java.lang.NoSuchMethodError) and may be out-of-date. Check the realms:
[FATAL ERROR] Plugin realm = app0.child-container[org.apache.felix:maven-bundle-plugin:2.3.5]
urls[0] = file:/home/charles/debian/pkg-java/snappy/debian/maven-repo/org/apache/felix/maven-bundle-plugin/2.3.5/maven-bundle-plugin-2.3.5.jar
urls[1] = file:/home/charles/debian/pkg-java/snappy/debian/maven-repo/biz/aQute/bndlib/debian/bndlib-debian.jar
urls[2] = file:/home/charles/debian/pkg-java/snappy/debian/maven-repo/org/apache/felix/org.apache.felix.bundlerepository/debian/org.apache.felix.bundlerepository-debian.jar
urls[3] = file:/home/charles/debian/pkg-java/snappy/debian/maven-repo/org/osgi/org.osgi.core/debian/org.osgi.core-debian.jar
urls[4] = file:/home/charles/debian/pkg-java/snappy/debian/maven-repo/org/easymock/easymock/debian/easymock-debian.jar
urls[5] = file:/home/charles/debian/pkg-java/snappy/debian/maven-repo/org/codehaus/plexus/plexus-utils/debian/plexus-utils-debian.jar
urls[6] = file:/home/charles/debian/pkg-java/snappy/debian/maven-repo/org/codehaus/plexus/plexus-interpolation/debian/plexus-interpolation-debian.jar
urls[7] = file:/home/charles/debian/pkg-java/snappy/debian/maven-repo/org/apache/maven/maven-archiver/debian/maven-archiver-debian.jar
urls[8] = file:/home/charles/debian/pkg-java/snappy/debian/maven-repo/org/codehaus/plexus/plexus-archiver/debian/plexus-archiver-debian.jar
urls[9] = file:/home/charles/debian/pkg-java/snappy/debian/maven-repo/org/codehaus/plexus/plexus-io/debian/plexus-io-debian.jar
urls[10] = file:/home/charles/debian/pkg-java/snappy/debian/maven-repo/org/apache/maven/shared/maven-dependency-tree/debian/maven-dependency-tree-debian.jar
[FATAL ERROR] Container realm = plexus.core

[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] aQute.lib.osgi.Processor.printClauses(Ljava/util/Map;Z)Ljava/lang/String;
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.NoSuchMethodError: aQute.lib.osgi.Processor.printClauses(Ljava/util/Map;Z)Ljava/lang/String;
	at org.apache.felix.bundleplugin.BundlePlugin.mergeMavenManifest(BundlePlugin.java:701)
	at org.apache.felix.bundleplugin.BundlePlugin.buildOSGiBundle(BundlePlugin.java:481)
	at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:343)
	at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:260)
	at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:251)
	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
	at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
	at org.debian.maven.Wrapper.main(Wrapper.java:106)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Fri Nov 04 14:17:33 JST 2011
[INFO] Final Memory: 17M/325M
[INFO] ------------------------------------------------------------------------
make: *** [mvn-build] Error 1

(snappy-java is available at http://snappy-java.googlecode.com/files/snappy-java-1.0.4.1.tar.gz)

Have a nice day,

-- 
Charles Plessy
Debian Med packaging team,
http://www.debian.org/devel/debian-med
Tsurumi, Kanagawa, Japan


Reply to: