简体   繁体   中英

Error: Could not find or load main class org.apache.maven.wrapper.MavenWrapperMain and ClassnotFound Exception

When I am running a basic spring application I am getting this error even though I have wrapper jar in .mvn folder. And also maven updated the project and still getting the class not found exception. I can't figure out where I am making the mistake

And also this error is shown Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.3.4.RELEASE:run

You're missing the .mvn folder in your git repository. You should have a folder called .mvn which contains the files wrapper/maven-wrapper.jar, wrapper/maven-wrapper.properties and jvm.config. Perhaps you missed it because it's a hidden folder.

Try doing git add -f .mvn from the command line then commit and push.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM