How can I run a Maven webapp in Eclipse when I use profiles to populate properties files at build time?

前端 未结 2 1751
北海茫月
北海茫月 2021-02-02 00:28

Here is an example profile in my POM:

    
    
        QA
        
            

        
2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-02 00:58

    You can effectively run any Maven command (including ones with profiles) through the m2eclipse plugin. Also, m2eclipse works with WTP (which I believe is where the Servers tab comes from). I'm not certain on this part, but I've used it to deploy web apps to Tomcat within Eclipse for a Maven project.

提交回复
热议问题