STORY:
You created a brand new Dynamic Web Project. Good!
Awesome ,then you add pom.xm to add libs for your spring project. Well done!
You press Spring Tools/ Update Maven Dependecies and libs are added but ... project magically is covert to ordinary Java project,so option 'run on server' disapeared ... Woops!
What to do ? Good question.
SOLUTION:
- Press right click on project's root project and select preferences (or press alt+enter)
- Go to Project Facets
- turn on them (click on blue link)
- select Select Dynamic Web Module ,Java and whatever you using...
- Press apply,then ok
- Press right click on project's root project Spring nature
- Press project/clean
- Press refresh ... (F5).
Everything back to normal :)
REMEMBER!
Do not use Maven from Eclipse .
Use command line instead!
Eclipse and Maven are like North and South Korea ...
No comments:
Post a Comment