maven2 六类属性

阅读更多

 

maven 6类属性:

  1. 内置属性:${basedir}  ${version}
  2. POM属性:${project.artifactId}

                      ${project.build.sourceDirectory}

                      ${project.build.testSourceDirectory}

                      ${project.build.directory}

                      ${project.outputDirectory}

                      ${project.testOutputDirectory}

                      ${project.groupId}

                      ${project.version}

                      ${project.build.finalName} 项目打包输出名称,默认为:${project.artifactId} -${project.version}

  1. Properties 中的自定义属性
  2. Setting属性: 例如:${setting.localRepository}
  3. JAVA系统属性:如${user.home} mvn help:system 查看
  4. 环境变量属性:以env.开头,如${env.JAVA_HOME} mvn help:system 查看

你可能感兴趣的:(maven,Java)