maven 中常量 变量设置

1 <!-- 全局属性配置 -->  
2 <properties>  
3     <project.build.name>tools</project.build.name>  
4     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>  
5 </properties> 

Maven内置变量说明: 

    • ${basedir} 项目根目录
    • ${project.build.directory} 构建目录,缺省为target
    • ${project.build.outputDirectory} 构建过程输出目录,缺省为target/classes
    • ${project.build.finalName} 产出物名称,缺省为${project.artifactId}-${project.version}
    • ${project.packaging} 打包类型,缺省为jar
    • ${project.xxx} 当前pom文件的任意节点的内容
posted @ 2013-10-16 15:08  gavinage  阅读(607)  评论(0编辑  收藏  举报