Community
Participate
Working Groups
I am new to maven, but their docs state that the usual build command is mvn verify doing this after checking out the current git repo (https://github.com/eclipse/jgit) results in: [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 02:00 min (Wall Clock) [INFO] Finished at: 2021-05-19T13:53:35+02:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.2.0:jar (default) on project org.eclipse.jgit.ssh.jsch: MavenReportException: Error while generating Javadoc: [ERROR] Exit code: 1 - error: module org.eclipse.jgit.ssh.jsch reads package org.eclipse.jgit.transport from both org.eclipse.jgit and org.eclipse.jgit.ssh.jsch [ERROR] error: module org.slf4j reads package org.eclipse.jgit.transport from both org.eclipse.jgit.ssh.jsch and org.eclipse.jgit [ERROR] error: module org.eclipse.jgit reads package org.eclipse.jgit.transport from both org.eclipse.jgit and org.eclipse.jgit.ssh.jsch [ERROR] error: the unnamed module reads package org.eclipse.jgit.transport from both org.eclipse.jgit and org.eclipse.jgit.ssh.jsch [ERROR] [ERROR] Command line was: /usr/lib/jvm/java-15-oracle/bin/javadoc -Xdoclint:-missing @options @packages [ERROR] [ERROR] Refer to the generated Javadoc files in '/home/martin/repos/jgit/org.eclipse.jgit.ssh.jsch/target/apidocs' dir. [ERROR] [ERROR] -> [Help 1] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.2.0:jar (default) on project org.eclipse.jgit.gpg.bc: MavenReportException: Error while generating Javadoc: [ERROR] Exit code: 1 - /home/martin/repos/jgit/org.eclipse.jgit.gpg.bc/src/org/eclipse/jgit/gpg/bc/internal/keys/KeyGrip.java:18: error: package org.bouncycastle.asn1.cryptlib is not visible [ERROR] import org.bouncycastle.asn1.cryptlib.CryptlibObjectIdentifiers; [ERROR] ^ [ERROR] (package org.bouncycastle.asn1.cryptlib is declared in module org.bouncycastle.provider, which does not export it) [ERROR] [ERROR] Command line was: /usr/lib/jvm/java-15-oracle/bin/javadoc -Xdoclint:-missing @options @packages [ERROR] [ERROR] Refer to the generated Javadoc files in '/home/martin/repos/jgit/org.eclipse.jgit.gpg.bc/target/apidocs' dir. [ERROR] [ERROR] -> [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/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <args> -rf :org.eclipse.jgit.ssh.jsch running from Apache Maven 3.6.3 (standard ubuntu 20.04 maven apt repo)
This happens on the master branch as well as on the stable-5.12 as well as stable-5.10 branches.
Build with Java 8.
The github repository is not the canonical repository but a mirror [1]. Building JGit and EGit is described in the contributor guide [2]. The JGit build still requires Java 8, updating the minimum Java version to 11 is planned for 6.0 (bug 569917). [1] https://wiki.eclipse.org/EGit/Contributor_Guide#Obtaining_Sources [2] https://wiki.eclipse.org/EGit/Contributor_Guide#Builds
New Gerrit change created: https://git.eclipse.org/r/c/jgit/jgit/+/185344
Gerrit change https://git.eclipse.org/r/c/jgit/jgit/+/185344 was merged to [master]. Commit: http://git.eclipse.org/c/jgit/jgit.git/commit/?id=68a638deb09a4f0dbc0bddce9ef233ed682c1767
master now builds with Java 11 or higher