bioatlas / zoa-docker

A composition of components and services for zoological animal tracking
GNU Affero General Public License v3.0
0 stars 0 forks source link

Error while running MAKE #1

Open mathieuLU opened 5 years ago

mathieuLU commented 5 years ago

As discussed today, here the mistake I have when I run "make" in the repository zoa-docker

[WARNING] Error injecting: org.jvnet.mjiip.v_2.XJC2Mojo java.lang.NoClassDefFoundError: com/sun/xml/bind/api/ErrorListener at java.lang.ClassLoader.defineClass1 (Native Method) at java.lang.ClassLoader.defineClass (ClassLoader.java:1016) ....

Caused by: java.lang.ClassNotFoundException: com.sun.xml.bind.api.ErrorListener at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass (SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass (ClassRealm.java:271) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass (ClassRealm.java:247) .......

[INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.326 s [INFO] Finished at: 2019-06-05T13:29:44Z [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.12.3:generate (datacite-metadata) on project oztrack: Execution datacite-metadata of goal org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.12.3:generate failed: A required class was missing while executing org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.12.3:generate: com/sun/xml/bind/api/ErrorListener [ERROR] ----------------------------------------------------- [ERROR] realm = plugin>org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.12.3 [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy [ERROR] urls[0] = file:/root/.m2/repository/org/jvnet/jaxb2/maven2/maven-jaxb2-plugin/0.12.3/maven-jaxb2-plugin-0.12.3.jar [ERROR] urls[1] = file:/root/.m2/repository/org/jvnet/jaxb2/maven2/maven-jaxb2-plugin-core/0.12.3/maven-jaxb2-plugin-core-0.12.3.jar [ERROR] urls[2] = file:/root/.m2/repository/org/apache/commons/commons-lang3/3.2.1/commons-lang3-3.2.1.jar [ERROR] urls[3] = file:/root/.m2/repository/com/sun/org/apache/xml/internal/resolver/20050927/resolver-20050927.jar [ERROR] urls[4] = file:/root/.m2/repository/org/sonatype/plexus/plexus-build-api/0.0.7/plexus-build-api-0.0.7.jar [ERROR] urls[5] = file:/root/.m2/repository/junit/junit/4.8.1/junit-4.8.1.jar [ERROR] urls[6] = file:/root/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.15/plexus-utils-1.5.15.jar [ERROR] urls[7] = file:/root/.m2/repository/org/jvnet/jaxb2/maven2/maven-jaxb22-plugin/0.12.3/maven-jaxb22-plugin-0.12.3.jar [ERROR] urls[8] = file:/root/.m2/repository/org/glassfish/jaxb/jaxb-runtime/2.2.11/jaxb-runtime-2.2.11.jar [ERROR] urls[9] = file:/root/.m2/repository/org/glassfish/jaxb/jaxb-xjc/2.2.11/jaxb-xjc-2.2.11.jar [ERROR] urls[10] = file:/root/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-annotations/3.2/maven-plugin-annotations-3.2.jar [ERROR] Number of foreign imports: 1 [ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]] [ERROR]

mskyttner commented 5 years ago

Hmm... yes, the build breaks now with Maven 3 official docker image, I see the same thing, the master branch of that repo seems to have moved on, so I suggest you could try one of these three options: