25
Apr

profiles in pom.xml

Inside pom.xml we can create profiles as follow:

linux64

true
linux
gtk
x86_64
win64
env
win64
win32
win32
x86_64

…..

org.eclipse.tycho
target-platform-configuration
${tycho.version}



${build_os}
${build_ws}
${build_arch}


In this example when you run the pom without any argument mvn clean install default profile will execute.

When executed with mvn -Denv=win64 clean install

win64 profile will executed.

reference maven profiles