My question had been addressed in this thread, but the explanation is not clear.
I have this build definition in one of my pom.xml files:
I think the solution is here http://maven.apache.org/guides/mini/guide-using-extensions.html
Define a build section where extensions are defined and then into the profile set the attribute true ( like in the second profile shown below )
org.apache.maven.wagon
wagon-ssh
2.9
create-default
true
build
full
org.springframework.boot
spring-boot-maven-plugin
repackage
create-core
build
full
org.apache.maven.plugins
maven-jar-plugin
true
2.6
import-station-core-${project.version}
make-jar
package
jar