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?