Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

How can I have IntelliJ build artifacts with a specific maven profile?

$
0
0

My maven profiles effect the output of my artifacts. Specifically the maven profile inserts certain database connection properties into my WEB-INF/persistence-context.xml which vary between production and development.

 

On the Project Structure -> Artifacts tab I have two options. web:war and web:war exploded. I'm using web war:exploded, and that works fine, but I want to be able to specify a particular maven profile to use when putting together the web war:exploded artifact. Is there a way to do that?

http://i.imgur.com/jBXASaT.png

Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>