Open iandol opened 2 years ago
I installed Maven to run the example but mvnw
fails to finish:
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for stargazer 1.0-SNAPSHOT:
[INFO]
[INFO] stargazer .......................................... SUCCESS [ 8.037 s]
[INFO] stargazer-keygen ................................... FAILURE [ 7.873 s]
[INFO] stargazer-keymgr ................................... SKIPPED
[INFO] stargazer-keymgr-service ........................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.626 s
[INFO] Finished at: 2022-02-28T14:11:59Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal global.namespace.truelicense:truelicense-maven-plugin:4.0.3:generate-main-sources (generate-main-sources) on project stargazer-keygen: java.lang.invoke.WrongMethodTypeException: expected (GenerateSourcesMavenTask$$proxy)Path but found (GenerateSourcesMavenTask)Path -> [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 <goals> -rf :stargazer-keygen
Exception: ./mvnw exited with 1
[tty 8], line 1: ./mvnw clean verify -Pintegration-test
EDIT: OK, this appears to be a compatibility issue with my version of Java (V17.0.2), if I install JDK V11.0.12 then this error goes away...
So I suppose to partially answer my own question, I can just bundle the correct JAR file with my MATLAB code and I should be good to go.
Hi, I have no experience with Java. But I use MATLAB which is itself based on Java and can run Java code (https://www.mathworks.com/help/matlab/using-java-libraries-in-matlab.html). Is there a way to use TrueLicence just via the CLI without needing the Maven tool?