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

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

Here is an example profile in my POM:

    
    
        QA
        
            

        
2条回答
  •  失恋的感觉
    2021-02-02 00:59

    Thanks Alex. I ended up installing Eclipse Integration for Apache Maven (Eclipse IAM), formerly Q for Eclipse

    This plugin solved two problems: populating properties files during Publish to Server events in Eclipse and populating the WEB-INF/lib folder. Before, even though I was running mvn eclipse:eclipse to satisfy my Build Path in Eclipse, it was not publishing these dependencies to the embedded servers correctly. This plugin does that. Having solved these two issues, I don't see any other barriers to developing a Maven project in Eclipse using the embedded servers.

提交回复
热议问题