It's all about the answers!

Ask a question

Build definition - maven multiple profiles


Colin Duggan (15156) | asked Jan 24 '13, 5:02 a.m.
Hi , 

I want to execute multiple profiles in a single maven build definition. The maven profiles are for sonar. One is regular java profile and the other is a Javascript profile.

I've tried by using the -P flag and then comma delimiting the profiles names however because one of the profiles requires extra arguments it effects the first.

E.g 
compile -P sonar sonar:sonar,sonar_test sonar:sonar -Dsonar.language=web -Dsonar.dynamicAnalysis=false -Dsonar.web.sourceDirectory=src/main/webapp

This fails however because the first profile does not require the -D options.

Any suggestions how i can run this?

Be the first one to answer this question!


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.