maven - Execute only a submodule along with skipping it from parent pom's execution -
following skip submodule during maven build , answer it. tried implementing parent pom.xml
<modules> <module>module1</module> <module>module2</module> </modules> ... <profiles> <profile> <id>ci</id> <modules> <module>integration-test</module> </modules> </profile> </profiles> this solves problem of executing integration-test command :
mvn -p ci clean test what expected only execute integration-test execute module1, module2 , integration-test modules. is there way adding existing stated capabilities?
mvn -pl integration-test clean test wouldn't work since module not added list of modules in parent pom.xml.
have tried setting activebydefault true specific profile well, doesn't work.
also profiles change require specific plugin build/compile modules?
note - aware of fact 1 of solution use
mvn -pl '!integration-test' clean test but since mvn clean test have been in use, want avoid using ! way of doing this.
Comments
Post a Comment