Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Truelicence with non-Java software? #25

Open
iandol opened this issue Feb 28, 2022 · 1 comment
Open

Using Truelicence with non-Java software? #25

iandol opened this issue Feb 28, 2022 · 1 comment

Comments

@iandol
Copy link

iandol commented Feb 28, 2022

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?

@iandol
Copy link
Author

iandol commented Feb 28, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant