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

Re: New version has switched build system to Maven - any hint how to resolve dependencies?



Hi Emmanuel,

as always thanks a lot for your quick help.

On Mon, Jan 28, 2019 at 02:26:27PM +0100, Emmanuel Bourg wrote:
> You don't need jacoco, that's a test coverage tool that can be safely
> disabled when building Debian packages.
> 
> Just add this to debian/maven.ignoreRules:
> 
>   org.jacoco jacoco-maven-plugin
>   org.apache.maven.plugins maven-enforcer-plugin

While maven.ignoreRules solution did not worked I just quilt-patched
jacoco out of pom.xml and solved some other issues.  Unfortunately
I'm stumbling again now:

...
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for uk.ac.sanger:artemis:jar:18.0.1
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ line 552, column 12
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-shade-plugin is missing. @ line 619, column 12
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-resources-plugin is missing. @ line 498, column 12
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-enforcer-plugin is missing. @ line 359, column 12
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO] 
[INFO] ------------------------< uk.ac.sanger:artemis >------------------------
[INFO] Building Artemis 18.0.1
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for org.apache.xmlgraphics:batik-codec:jar:1.9.1 is missing, no dependency information available
[WARNING] The POM for org.apache.xmlgraphics:batik-dom:jar:1.9.1 is missing, no dependency information available
[WARNING] The POM for org.apache.xmlgraphics:batik-ext:jar:1.9.1 is missing, no dependency information available
[WARNING] The POM for org.apache.xmlgraphics:batik-svggen:jar:1.9.1 is missing, no dependency information available
[WARNING] The POM for org.apache.xmlgraphics:batik-util:jar:1.9.1 is missing, no dependency information available
[WARNING] The POM for com.ibatis:ibatis:jar:2.3.4.726 is missing, no dependency information available
[WARNING] The POM for cglib:cglib-nodep:jar:2.2 is missing, no dependency information available
[WARNING] The POM for com.sshtools:j2ssh-core:jar:0.2.9 is missing, no dependency information available
[WARNING] The POM for org.emboss:jemboss:jar:1.0 is missing, no dependency information available
[WARNING] The POM for org.biojava:biojava:jar:1.6 is missing, no dependency information available
[WARNING] The POM for com.github.broadinstitute:picard:jar:2.18.14 is missing, no dependency information available
[WARNING] The POM for org.evosuite:evosuite-standalone-runtime:jar:1.0.6 is missing, no dependency information available
[WARNING] The POM for org.mockito:mockito-core:jar:2.23.0 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.208 s
[INFO] Finished at: 2019-01-28T19:06:57Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project artemis: Could not resolve dependencies for project uk.ac.sanger:artemis:jar:18.0.1: The following artifacts could not be resolved: org.apache.xmlgraphics:batik-codec:jar:1.9.1, org.apache.xmlgraphics:batik-dom:jar:1.9.1, org.apache.xmlgraphics:batik-ext:jar:1.9.1, org.apache.xmlgraphics:batik-svggen:jar:1.9.1, org.apache.xmlgraphics:batik-util:jar:1.9.1, com.ibatis:ibatis:jar:2.3.4.726, cglib:cglib-nodep:jar:2.2, com.sshtools:j2ssh-core:jar:0.2.9, org.emboss:jemboss:jar:1.0, org.biojava:biojava:jar:1.6, com.github.broadinstitute:picard:jar:2.18.14, org.evosuite:evosuite-standalone-runtime:jar:1.0.6, org.mockito:mockito-core:jar:2.23.0: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.apache.xmlgraphics:batik-codec:jar:1.9.1 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/DependencyResolutionException
dh_auto_build: /usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/build...


I think I need to care for the batik-* which all come with libbatik-java
in some specific way.  There are also other jars where maven claims they
are missing but the are actually not.  Any further hints?

Thanks again

       Andreas.

-- 
http://fam-tille.de


Reply to: