简体   繁体   中英

cannot create maven project in STS

I'm new to Java EE development and I heard that If I have to learn the Java EE then the Spring MVC is best choice to learn and get Command of. After downloading STS 3.6 bundle I'm having some troubles/issues in creating Maven Project. My STEPS are

1- Create new project

在此处输入图片说明

2- Error Dialog

在此处输入图片说明

It appears that you either don't have Maven installed, or your IDE is not aware of the installation. For the former problem, have a look here . For the latter problem, view this page for IDE you are using:

I would also like to recommend to get started with Spring using the Spring Tool Suite by using Spring Boot and the guides at http://spring.io/guides . You can import those guides directly into STS and start from there.

I also face with this thing too, but I found a solution that just update Maven project by right click on project -> Maven-> Update Project... or (Alt+F5) then check on force to update as image below :

图1更新Maven项目

It works perfect for me.

NOTE** internet connection is required

I have created project using Spring Tool Suite IDE, with below navigation.

New -> Spring Starter Project

But outcome was always simple maven M2 project with error symbol.

After project build completion I have updated maven project with option "Force Update of Snapshots/Release".

It turned my project M2 project into M2S Project

Thanks

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