Maven/Tomcat Projects In Eclipse Indigo/3.7

后端 未结 2 1671
-上瘾入骨i
-上瘾入骨i 2020-11-30 01:00

I\'m trying out the next version of Eclipse using the latest milestone build and I\'m having an issue getting my Maven project deployed to Tomcat.

Previously in Ecli

2条回答
  •  醉话见心
    2020-11-30 01:12

    It will work with the lastet version, it's just the .project that is not right.

    Simply go into the project properties, make the projet faceted.. tick Dynamic Web Module and you'll get run on server as an option after that. Update Project Facets

    This will enable the "Run on Server" option, however your problems don't finish there as when you then run it, you'll get a 404.

    To fix this, go back into project properties, Deployment assembly.

    Deployment Assembly

    Delete the WebContent entry (and you can delete the folder in the project later too), and make sure you have the src-main-webapp & src-main-resource folders added.

    Bingo.. run the app and it should be fine.

提交回复
热议问题