http://maven.apache.org/guides/introduction/introduction-to-profiles.html
profile 設定裡面除了 id, build 之外還有個蠻有用的設定
activation 可以用來設定啟用這個 profile 的條件 (哇喔~~~)
指定 JDK 1.4
- <activation>
- <jdk>1.4</jdk>
- </activation>
JDK 1.3~1.6前
- <activation>
- <jdk>[1.3,1.6)</jdk>
- </activation>
特定 OS
- <activation>
- <os>
- <name>Windows XP</name>
- <family>Windows</family>
- <arch>x86</arch>
- <version>5.1.2600</version>
- </os>
- </activation>
有 debug 這個 property
- <activation>
- <property>
- <name>debug</name>
- </property>
- </activation>
environment 設定成 test
-Denvironment=test
- <activation>
- <property>
- <name>environment</name>
- <value>test</value>
- </property>
- </activation>
沒有某個檔案或資料夾
- <activation>
- <file>
- <missing>target/generated-sources/axistools/wsdl2java/org/apache/maven</missing>
- </file>
- </activation>
預設啟動
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>