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

Maven versions defined in pom.xml and maven-wrapper.properties differ #549

Closed
VonUniGE opened this issue Feb 22, 2024 · 1 comment · Fixed by #551
Closed

Maven versions defined in pom.xml and maven-wrapper.properties differ #549

VonUniGE opened this issue Feb 22, 2024 · 1 comment · Fixed by #551

Comments

@VonUniGE
Copy link
Contributor

VonUniGE commented Feb 22, 2024

Running ./mvnw gives:

Error: Could not find or load main class org.apache.maven.wrapper.MavenWrapperMain
Caused by: java.lang.ClassNotFoundException: org.apache.maven.wrapper.MavenWrapperMain

In pom.xml, mavenVersion is set to 3.6.3, but in .mvn/wrapper/maven-wrapper.properties it is still set to 3.5.4

The cleanest solution would be to regenerate the latest version of mvnw with no additional resources:

rm -rf mvnw mvnw.cmd .mvn
mvn -N wrapper:wrapper -Dmaven=3.6.3 -Dtype=only-script

and commit the result.

@VonUniGE
Copy link
Contributor Author

I did a rebase and push force to include 2e5fa8b

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

Successfully merging a pull request may close this issue.

1 participant