[Debian-med-packaging] Need help to update mhap package (build system changed from ant to maven)

Afif Elghraoui afif at debian.org
Sat Jul 9 22:25:44 UTC 2016


Hi, Java team,

A new upstream release has come out several months ago. I tried at the
time to update the package, but that release changed the build system
from ant to maven and I had great difficulty with that change.

I'm hoping you can help. I've posted my attempt so far to a topic branch
[1]. With the changes I've made there, I get the following error upon
building:

~~~
[INFO]
------------------------------------------------------------------------
[INFO] Building MinHash Alignment Process 2.0
[INFO]
------------------------------------------------------------------------
[WARNING] The POM for
org.apache.maven.plugins:maven-dependency-plugin:jar:2.8 is missing, no
dependency information available
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 0.215 s
[INFO] Finished at: 2016-07-09T22:05:14+00:00
[INFO] Final Memory: 15M/481M
[INFO]
------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-dependency-plugin:2.8 or
one of its dependencies could not be resolved: Cannot access central
(https://repo.maven.apache.org/maven2) in offline mode and the artifact
org.apache.maven.plugins:maven-dependency-plugin:jar:2.8 has not been
downloaded from it before. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the
-e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
dh_auto_build: /usr/lib/jvm/default-java/bin/java -noverify -cp
/usr/share/maven/boot/plexus-classworlds-2.x.jar:/usr/lib/jvm/default-java/lib/tools.jar
-Dmaven.home=/usr/share/maven
-Dmaven.multiModuleProjectDirectory=/<<BUILDDIR>>/mhap-2.0+dfsg
-Dclassworlds.conf=/etc/maven/m2-debian.conf
org.codehaus.plexus.classworlds.launcher.Launcher
-s/etc/maven/settings-debian.xml
-Ddebian.dir=/<<BUILDDIR>>/mhap-2.0+dfsg/debian
-Dmaven.repo.local=/<<BUILDDIR>>/mhap-2.0+dfsg/debian/maven-repo package
-DskipTests -Dnotimestamp=true -Dlocale=en_US returned exit code 1
debian/rules:12: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
~~~

The full log is attached.

Many thanks and regards
Afif

1.
https://anonscm.debian.org/cgit/debian-med/mhap.git/log/?h=topic/maven-buildsystem

-- 
Afif Elghraoui | عفيف الغراوي
http://afif.ghraoui.name
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mhap_2.0+dfsg-1_amd64.build.gz
Type: application/gzip
Size: 24927 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20160709/9880d5c4/attachment-0001.bin>


More information about the Debian-med-packaging mailing list