Maven/Tomcat Projects In Eclipse Indigo/3.7

后端 未结 2 1617
-上瘾入骨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.

    0 讨论(0)
  • 2020-11-30 01:37

    Before m2e became an eclipse project the WTP integration shipped with the core module. Now the core module is an eclipse module and the WTP integration is shipped separately. The current Indigo snapshots of m2eclipse-wtp can be found here. I was unable to get any artifacts from this update site however, even though it's listed in the corresponding JIRA issue.

    Fortunately, today m2e-wtp was made available through the m2e Marketplace. Just open the eclipse preferences, go to 'Maven' -> 'Discovery' -> 'Open Catalog' and install it. m2e Marketplace.

    0 讨论(0)
提交回复
热议问题