Closed Birgos closed 4 years ago
Meanwhile I tested with the Java SE Development Kit 13 and received the same error messages as I called
mvn clean install
and
java -jar c:\Downloads\SPDXTools_2.1.20\target\spdx-tools-2.1.20.jar RdfToSpreadsheet 1572527048-spdx.rdf
- same result. What am I doing wrong?
I'm not sure about the build failures - I have not run into this error myself.
When running the tools - you need to use the command:
java -jar spdx-tools-2.1.20-jar-with-dependencies.jar
The spdx-tools-2.1.20.jar files does not include all required dependencies.
I don't have a file called spdx-tools-2.1.20-jar-with-dependencies.jar
:-(
The only files existing are:
spdx-tools-2.1.20-sources.jar
spdx-tools-2.1.20.jar
Thanks to @goneall !!!
The hint regarding spdx-tools-2.1.20-jar-with-dependencies.jar
reinforced the suspicion that the compilation was not yet complete and therefore essential files were missing.
This led me to the following workaround: javadoc fails on jdk12 with "The code being documented uses modules but the packages defined in $URL are in the unnamed module."
After i put:
<source>8</source>
into the pom.xml
:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9</version>
<configuration>
<quiet>true</quiet>
<source>8</source>
<additionalparam>-Xdoclint:none</additionalparam>
</configuration>
[INFO] BUILD SUCCESS
and I have the following files available:
spdx-tools-2.1.20-jar-with-dependencies.jar
spdx-tools-2.1.20-javadoc.jar
spdx-tools-2.1.20-sources.jar
spdx-tools-2.1.20.jar
Now I can successfully run the Tools... :-D
@Birgos - thanks for the udpate - glad to see you got it working.
Please feel free to put in a PR with the updated POM file.
Resolved with PR #225
I used OpenJDK version 13 and Apache Maven 3.6.2
When I tried to use the SPDX-Tools Version 2.1.20 (or 2.1.16) by running the following command in the SPDXTools Source folder:
mvn clean install
the build failed with the following error messages:
When I tried to run any application like
java -jar c:\Downloads\SPDXTools_2.1.20\target\spdx-tools-2.1.20.jar RdfToSpreadsheet 1572527048-spdx.rdf
I received the following errors:
I would appreciate any help or advise! Thanks...