WE HAVE SUNSET THIS LISTSERV - Join us at collectionspace@lyrasislists.org
View all threadsHello,
I am trying to install Collection Space on my Debian 11 server but running
into compilation errors when installing services.
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.1:compile
(default-compile) on project org.collectionspace.services.common-api:
Compilation failure: Compilation failure:
[ERROR]
/opt/cspace/services/services/common-api/src/main/java/org/collectionspace/services/common/api/FileTools.java:[41,22]
package javax.xml.bind does not exist
[ERROR]
/opt/cspace/services/services/common-api/src/main/java/org/collectionspace/services/common/api/FileTools.java:[42,22]
package javax.xml.bind does not exist
JAVA Version is,
openjdk version "11.0.15" 2022-04-19
OpenJDK Runtime Environment (build 11.0.15+10-post-Debian-1deb11u1)
OpenJDK 64-Bit Server VM (build 11.0.15+10-post-Debian-1deb11u1, mixed
mode, sharing)
MAVEN Version is,
Apache Maven 3.6.3
Maven home: /usr/share/maven
Java version: 11.0.15, vendor: Debian, runtime:
/usr/lib/jvm/java-11-openjdk-amd64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.10.0-15-amd64", arch: "amd64", family: "unix"
Followed the instruction from this link to resolve the Java issue,
https://stackoverflow.com/questions/52502189/java-11-package-javax-xml-bind-does-not-exist
Updated the pom.xml file services folder by adding the following,
<dependency> <groupId>jakarta.xml.bind</groupId> <artifactId>jakarta.xml.bind-api</artifactId> <version>4.0.0</version> </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId> <version>4.0.0</version> <scope>runtime</scope> </dependency>Still no success.
mvn dependency:tree succeeds
but
mvn clean install fails.
I would highly appreciate any help.
Regards,
Aman.
Amandeep,
Thank you for your interest in CollectionSpace. We haven't done extensive testing with CollectionSpace and Java 11, so would suggest using the manual install process with Java 8 or using our automated installer, available via:
https://github.com/collectionspace/cspace-installer
We'd love to hear more about what type of project you're working on, if you are able to share with us!
Best regards,
Megan
Megan Forbes
CollectionSpace Program Manager
megan.forbes@lyrasis.org
800.999.8558 x2917
From: Amandeep Kapila amandeep.kapila@gmail.com
Sent: Saturday, June 18, 2022 5:47 PM
To: Talk@lists.collectionspace.org Talk@lists.collectionspace.org
Subject: [Talk] Installation problem
Hello,
I am trying to install Collection Space on my Debian 11 server but running into compilation errors when installing services.
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.993 s
[INFO] Finished at: 2022-06-19T02:55:30+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project org.collectionspace.services.common-api: Compilation failure: Compilation failure:
[ERROR] /opt/cspace/services/services/common-api/src/main/java/org/collectionspace/services/common/api/FileTools.java:[41,22] package javax.xml.bind does not exist
[ERROR] /opt/cspace/services/services/common-api/src/main/java/org/collectionspace/services/common/api/FileTools.java:[42,22] package javax.xml.bind does not exist
JAVA Version is,
openjdk version "11.0.15" 2022-04-19
OpenJDK Runtime Environment (build 11.0.15+10-post-Debian-1deb11u1)
OpenJDK 64-Bit Server VM (build 11.0.15+10-post-Debian-1deb11u1, mixed mode, sharing)
MAVEN Version is,
Apache Maven 3.6.3
Maven home: /usr/share/maven
Java version: 11.0.15, vendor: Debian, runtime: /usr/lib/jvm/java-11-openjdk-amd64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.10.0-15-amd64", arch: "amd64", family: "unix"
Followed the instruction from this link to resolve the Java issue,
https://stackoverflow.com/questions/52502189/java-11-package-javax-xml-bind-does-not-exist
Updated the pom.xml file services folder by adding the following,
<dependency> <groupId>jakarta.xml.bind</groupId> <artifactId>jakarta.xml.bind-api</artifactId> <version>4.0.0</version> </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId> <version>4.0.0</version> <scope>runtime</scope> </dependency>Still no success.
mvn dependency:tree succeeds
but
mvn clean install fails.
I would highly appreciate any help.
Regards,
Aman.