开发者

Eclipse Maven Debug on Server problem

开发者 https://www.devze.com 2023-04-05 14:16 出处:网络
I created a maven web-app project and then load it up into SpringSource Tool Suite 2.7.1 (which has m2eclipse core and extra installed).

I created a maven web-app project and then load it up into SpringSource Tool Suite 2.7.1 (which has m2eclipse core and extra installed).

When I do "Run on Server", the extra build steps in the pom.xml are not executed, and I ended up deploying a basic web-app (index.jsp along with WEBINF folder)

I have to build (Maven package) and deploy it manually (copy and paste into Tomcat) so I got the whole lot.

Is there anyway I can instruct m2eclipse/STS to process my pom.xml before "Run on Server" ?

Edit

I have开发者_StackOverflow maven-war-plugin, which unzips some zip files etc, this doesn't get executed when I choose "Run on Server"


Which steps in particular are not getting executed?

The first check that I would suggest is to see if the project is correctly configured.

You must ensure that the executions are correctly defined to be run on the desired phases.


The answer is: Eclipse + Maven + Tomcat: testing web apps when the WAR is built with custom options

Essentially I can use "Deployment Assembly" to deploy things

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号