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

problem read from file pom.xml #98

Open
matiasgonzalocalvo opened this issue Jun 20, 2022 · 2 comments
Open

problem read from file pom.xml #98

matiasgonzalocalvo opened this issue Jun 20, 2022 · 2 comments

Comments

@matiasgonzalocalvo
Copy link

matiasgonzalocalvo commented Jun 20, 2022

$ jx-release-version -version
Version 2.5.2 - Revision 779b128862773a5bab71596ded8b5653759c8910 - Date Wed May 25 06:47:30 UTC 2022

`
4.0.0

<groupId>io.example</groupId>
<artifactId>example</artifactId>
<version>1.0-0-SNAPSHOT</version>
<packaging>pom</packaging>
`

$ jx-release-version -previous-version=from-file --debug

DEBUG: jx-release-version 2.5.2 running in debug mode in /home/${user}/${path}/template_java-8 DEBUG: Using "from-file" version reader (with "") DEBUG: Adding file /home/${user}/${path}/template_java-8/pom.xml as a candidate to read version using maven POM reader DEBUG: Reading version from file /home/${user}/${path}/template_java-8/pom.xml using reader maven POM DEBUG: using path /home/${user}/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin DEBUG: Maven is installed into path /usr/bin/mvn DEBUG: Found version WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release 1.0-0-SNAPSHOT FATAL: Failed to read previous version using "from-file": Invalid Semantic Version

@vbehar
Copy link
Collaborator

vbehar commented Jun 20, 2022

ok I guess the mvn call prints all the WARNING messages to stderr, and the version to stdout, and we're reading both (instead of reading only stdout)

@vbehar
Copy link
Collaborator

vbehar commented Jun 22, 2022

I can't reproduce it for the moment, but anyway even if we fix the jx-release-version to ignore the warnings, it won't fix the root issue and you might have other issues with different tools.
so you should really fix the root issue, which seems to be a wrong version of guice, see https://stackoverflow.com/questions/55492394/maven-an-illegal-reflective-access-operation-has-occurred for example

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

2 participants