maven的變量
maven定義了不少變量屬性,參考這裏
http://docs.codehaus.org/display/MAVENUSER/MavenPropertiesGuide
1)內置屬性 java
Xml代碼 react
2)Pom/Project properties
全部pom中的元素均可以用 project. 前綴進行引用,如下是部分經常使用的 less
Xml代碼 jvm
3)本地用戶設定
全部用的的 settings.xml 中的設定均可以經過 settings. 前綴進行引用 maven
Xml代碼 ide
4)環境變量
系統的環境變量經過 env. 前綴引用 ui
Xml代碼 this
5)java系統屬性
全部JVM中定義的java系統屬性.
6)用戶在pom中定義的自定義屬性 url
Xml代碼 code
則引用 ${my.filter.value } 就會獲得值 hello
7)上級工程的變量
Xml代碼
8)引用屬性Reflection Properties The pattern ${someX.someY.someZ} can simply sometimes mean getSomeX().getSomeY().getSomeZ(). Thus, properties such as ${project.build.directory} is translated to getProject().getBuild().getDirectory(). 彙總變量列表: * project (from [1]) o project.distributionManagementArtifactRepository o project.artifact o project.parent o project.file o project.artifacts o project.parentArtifact o project.pluginArtifacts o project.remoteArtifactRepositories o project.pluginArtifactRepositories o project.attachedArtifact * settings (from [2]) o settings.offilne o settings.interactive * rootless (from [3]) o localRepository o reactorProjects * java properties (from [4]) o java.version o java.vendor o java.vendor.url o java.home o java.vm.specification.version o java.vm.specification.vendor o java.vm.specification.name o java.vm.version o java.vm.vendor o java.vm.name o java.specification.version o java.specification.vendor o java.specification.name o java.class.version o java.class.path o java.library.path o java.io.tmpdir o java.compiler o java.ext.dirs o os.name o os.arch o os.version o file.separator o path.separator o line.separator o user.name o user.home o user.dir