编程知识 cdmana.com

Maven built in variable

${basedir} Represents the project root , Which contains pom.xml File directory ;

${version} Represents the project version ;

${project.basedir} Same as ${basedir};

${project.baseUri} Represents the project file address ;

${maven.build.timestamp} Represents the project component start time ;

${maven.build.timestamp.format} Represents the property ${maven.build.timestamp} Presentation format for , The default value is yyyyMMdd-HHmm, Its format can be customized , Its type can be referred to java.text.SimpleDateFormat.
 ${project.build.directory} Represents the main source path ;

 ${project.build.sourceEncoding} Represents the encoding format of the main source code ;

 ${project.build.sourceDirectory} Represents the main source path ;

 ${project.build.finalName} Represents the output file name ;

  ${project.version} Represents the project version , And ${version} identical ;


${project.xxx}  At present pom The contents of any node of the file 
${env.xxx}  Get system environment variables .
${settings.xxx}  It refers to settings.xml The value of the corresponding element in .

版权声明
本文为[Peng Shiyu]所创,转载请带上原文链接,感谢
https://cdmana.com/2020/12/20201224171911692a.html

Scroll to Top