FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Java

 
 
LinkBack Thread Tools
 
Old 11-04-2011, 04:19 AM
Charles Plessy
 
Default 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-pluginom: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.mergeMa venManifest(BundlePlugin.java:701)
at org.apache.felix.bundleplugin.BundlePlugin.buildOS GiBundle(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.execu teMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoals(DefaultLifecycleExecutor.java:694)
at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoalWithLifecycle(DefaultLifecycleExecuto r.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoalAndHandleFailures(DefaultLifecycleExe cutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeTaskSegments(DefaultLifecycleExecutor.jav a:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMav en.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven .java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:3 62)
at org.apache.maven.cli.compat.CompatibleMain.main(Co mpatibleMain.java:60)
at org.debian.maven.Wrapper.main(Wrapper.java:106)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.codehaus.classworlds.Launcher.launchEnhanced(L auncher.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.ja va: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


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20111104051953.GA23007@merveille.plessy.net">http://lists.debian.org/20111104051953.GA23007@merveille.plessy.net
 
Old 11-04-2011, 09:07 AM
Damien Raude-Morvan
 
Default snappy-java mh-buildable with libmaven-bundle-plugin-java 2.3.4 but not 2.3.5.

On Fri, 4 Nov 2011 14:19:53 +0900, Charles Plessy <plessy@debian.org>
wrote:
> Dear all,

Hi Charles,

> 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)
[...]
> java.lang.NoSuchMethodError:
>
aQute.lib.osgi.Processor.printClauses(Ljava/util/Map;Z)Ljava/lang/String;
> at
>
org.apache.felix.bundleplugin.BundlePlugin.mergeMa venManifest(BundlePlugin.java:701)
> at
>
org.apache.felix.bundleplugin.BundlePlugin.buildOS GiBundle(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.execu teMojo(DefaultPluginManager.java:490)
> at
>
org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoals(DefaultLifecycleExecutor.java:694)
> at
>
org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoalWithLifecycle(DefaultLifecycleExecuto r.java:556)
> at
>
org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoal(DefaultLifecycleExecutor.java:535)
> at
>
org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoalAndHandleFailures(DefaultLifecycleExe cutor.java:387)
> at
>
org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeTaskSegments(DefaultLifecycleExecutor.jav a:348)
> at
>
org.apache.maven.lifecycle.DefaultLifecycleExecuto r.execute(DefaultLifecycleExecutor.java:180)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMav en.java:328)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven .java:138)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:3 62)
> at
org.apache.maven.cli.compat.CompatibleMain.main(Co mpatibleMain.java:60)
> at org.debian.maven.Wrapper.main(Wrapper.java:106)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:57)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at org.codehaus.classworlds.Launcher.launchEnhanced(L auncher.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.ja va:375)

// with my maven-bundle-plugin hat on...

I've already saw this exception "java.lang.NoSuchMethodError:
aQute.lib.osgi.Processor.printClauses" when updating maven-bundle-plugin
from 2.3.4 to 2.3.5.
That's why maven-bundle-plugin Depends on "bnd (>= 1.44.0)" but maybe
there is something wrong with this...

Could you please provide a .dsc file so I can debug this locally ?

Cheers,
--
Damien


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 5554f44b6daf8940d8c910f67e1d27d0@drazzib.com">http ://lists.debian.org/5554f44b6daf8940d8c910f67e1d27d0@drazzib.com
 
Old 11-04-2011, 06:50 PM
"Damien Raude-Morvan"
 
Default snappy-java mh-buildable with libmaven-bundle-plugin-java 2.3.4 but not 2.3.5.

Hi again Charles,

On Fri, 4 Nov 2011 14:19:53 +0900, Charles Plessy <plessy@debian.org>
> I've already saw this exception "java.lang.NoSuchMethodError:
> aQute.lib.osgi.Processor.printClauses" when updating maven-bundle-plugin
> from 2.3.4 to 2.3.5.
> That's why maven-bundle-plugin Depends on "bnd (>= 1.44.0)" but maybe
> there is something wrong with this...

I've download snappy-java and :
- modify pom.xml dependency to maven-bundle-plugin to 2.3.5
- run mh_make (without test or java)
- fix debian/maven.rules for org.osgi.core artifact
I haven't managed to reproduce your issue.

Here is the quick&dirty package I've built :
http://people.debian.org/~drazzib/misc/

Cheers,
--
Damien
 
Old 11-05-2011, 02:44 AM
Charles Plessy
 
Default snappy-java mh-buildable with libmaven-bundle-plugin-java 2.3.4 but not 2.3.5.

Le Fri, Nov 04, 2011 at 08:50:02PM +0100, Damien Raude-Morvan a crit :
>
> On Fri, 4 Nov 2011 14:19:53 +0900, Charles Plessy <plessy@debian.org>
> > I've already saw this exception "java.lang.NoSuchMethodError:
> > aQute.lib.osgi.Processor.printClauses" when updating maven-bundle-plugin
> > from 2.3.4 to 2.3.5.
> > That's why maven-bundle-plugin Depends on "bnd (>= 1.44.0)" but maybe
> > there is something wrong with this...
>
> I've download snappy-java and :
> - modify pom.xml dependency to maven-bundle-plugin to 2.3.5
> - run mh_make (without test or java)
> - fix debian/maven.rules for org.osgi.core artifact
> I haven't managed to reproduce your issue.
>
> Here is the quick&dirty package I've built :
> http://people.debian.org/~drazzib/misc/

Many thanks for your help !

On a different system (the one used yesterday is at work), I have a new error:

Reason: POM 'org.apache.maven.plugins:maven-surefire-plugin' not found in repository: System is offline.

In that case, upgrading libsurefire-java to Sid did not suppress the error.
However, the package builds well in a Sid schroot.

It looks like it is very difficult to determine the dependancies needed to
build libsnappy-java on a Squeeze / Sid mixture. I will go the schroot way and
hope to add a clean source package soon in pkg-java directory on
git.debian.org, after removing the sourceless files and doublechecking
copyrights.

Have a nice week-end,

Charles

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


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20111105034414.GC8224@merveille.plessy.net">http://lists.debian.org/20111105034414.GC8224@merveille.plessy.net
 
Old 11-05-2011, 12:18 PM
Charles Plessy
 
Default snappy-java mh-buildable with libmaven-bundle-plugin-java 2.3.4 but not 2.3.5.

Le Sat, Nov 05, 2011 at 12:44:14PM +0900, Charles Plessy a écrit :
> Le Fri, Nov 04, 2011 at 08:50:02PM +0100, Damien Raude-Morvan a écrit :
> >
> > Here is the quick&dirty package I've built :
> > http://people.debian.org/~drazzib/misc/

> It looks like it is very difficult to determine the dependancies needed to
> build libsnappy-java on a Squeeze / Sid mixture. I will go the schroot way and
> hope to add a clean source package soon in pkg-java directory on
> git.debian.org, after removing the sourceless files and doublechecking
> copyrights.

I have pushed a temporary package at:

http://git.debian.org/?p=users/plessy/snappy-java.git

It consists mostly in your debianisation, plus the removal of the lib directory
that contains sourceless programs. At the begining I thought that the work was
almost finished, and then I realised that the binary package it produces does
not depend on the libsnappy1 package that it is supposed to wrap…

It turns out that snappy-java contains binary copies of snappy, for i386 and
amd64 on Linux, Windows and Mac OS, plus a Makefile that can download their
source code from Google and rebuild the files.

Luckily, it looks like it is also able to use the system's Snappy library,
through an option called org.xerial.snappy.use.systemlib.

If somebody would have some time to look at it and tell me how to switch this
by default, I would be very relieved, as I am not a Java programmer. That
would help me to update the picard-tools package, a nice toolkit for
bioinformatics procssing of high-troughput DNA sequence reads. Hopefully, it
will participate in making our World a better place to live in

Have a nice week-end,

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


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20111105131826.GA10204@merveille.plessy.net">http://lists.debian.org/20111105131826.GA10204@merveille.plessy.net
 

Thread Tools




All times are GMT. The time now is 08:54 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org