Closed cisba closed 4 years ago
I'm not a java expert, so it could be just a workaround (waiting for someone to do a clean PR), but finally I managed to build with two changes in the pom.xml (tested on macOS 10.15.1, maven 3.6.2 and java 9).
<dependency> <groupId>org.glassfish.jaxb</groupId> <artifactId>jaxb-runtime</artifactId> <version>2.3.1</version> <scope>runtime</scope> </dependency>
Then I encountered a problem with the javadoc plugin:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:jar (attach-javadocs) on project java-opentimestamps: Execution attach-javadocs of goal org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:jar failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:jar: java.lang.ExceptionInInitializerError: null
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
- <version>2.9.1</version>
+ <version>3.1.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
+ <configuration>
+ <use>false</use>
+ <source>1.8</source>
+ <links>
+ <link>http://docs.oracle.com/javase/7/docs/api/</link>
+ </links>
+ <doclint>none</doclint>
+ </configuration>
</execution>
</executions>
</plugin>
Using openjdk 11 (installed via brew) I encountered the same problems solved with the same changes.
With java 9 executing
mvn package
produces this error:The issue is explained here.