Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Build definition - maven multiple profiles

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?

0 votes


Be the first one to answer this question!

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 7,503
× 45

Question asked: Jan 24 '13, 5:02 a.m.

Question was seen: 4,341 times

Last updated: Jan 24 '13, 5:02 a.m.

Confirmation Cancel Confirm