当前位置:首页 > 开发 > 开源软件 > 正文

Maven常用内置变量

发表于: 2015-03-23   作者:AILIKES   来源:转载   浏览:
摘要: Built-in properties ${basedir} represents the directory containing pom.xml ${version} equivalent to ${project.version} (deprecated: ${pom.version}) Pom/Project properties Al

Built-in properties

  • ${basedir} represents the directory containing pom.xml
  • ${version} equivalent to ${project.version(deprecated: ${pom.version})

Pom/Project properties

All elements in the pom.xml, can be referenced with the project. prefix. This list is just an example of some commonly used elements. (deprecated: {pom.} prefix)

  • ${project.build.directory} results in the path to your "target" directory, this is the same as ${pom.project.build.directory}
  • ${project.build.outputDirectory} results in the path to your "target/classes" directory
  • ${project.name}refers to the name of the project (deprecated: ${pom.name} ).
  • ${project.version} refers to the version of the project (deprecated: or ${pom.version}).
  • ${project.build.finalName} refers to the final name of the file created when the built project is packaged

Local user settings

Similarly, values in the user's settings.xml can be referenced using property names with settings. prefix.

  • ${settings.localRepository} refers to the path of the user's local repository

Environment variables

Environment variables can be referenced using the env prefix

  • ${env.M2_HOME} returns the Maven2 installation path.
  • ${java.home} specifies the path to the current JRE_HOME environment use with relative paths to get for example:
    <jvm>${java.home}../bin/java.exe</jvm>

Maven常用内置变量

  • 0

    开心

    开心

  • 0

    板砖

    板砖

  • 0

    感动

    感动

  • 0

    有用

    有用

  • 0

    疑问

    疑问

  • 0

    难过

    难过

  • 0

    无聊

    无聊

  • 0

    震惊

    震惊

编辑推荐
对于ASP.NET,主要就是了解了五种常用对象,如图: 对于Application: 1)记得一点就是由于相当于全
URL:http://java.ccidnet.com/art/297/20060319/483247_1.html 1.request对象 客户端的请求信息被封
(1) 系统配置 系统管理—系统配置 将JDK,GIT,MAVEN,GIT plugin都配置上。 (2) 需要安装 gerrit-t
1.MAVEN手工添加第三方jar包(jmxtools.jar)第三方jar包需要手工添加,命令如下: D:\WebApp\shopp
maven下载地址:http://maven.apache.org/download.cgi maven环境变量设置:如解压到E:\maven\apache
本文转自:http://blog.csdn.net/lslxdx/article/details/7237406 一、maven-resources-plugin 配置
转自:http://langchenfujian.iteye.com/blog/1452512 1、设计原理图 1.1、局域网电脑需要maven构件
eclipse 安装maven 插件 最好还是在marketplace处安装,不容易出现问题,当然,这种方式最大问题是
通达OA系统内置了大量的函数简化了程序开发,这里通过实际的程序运行调试给大家做个简要的介绍。 内
针对问题,maven web项目如何部署到容器中,如何测试,如何提交svn,在本篇中就有了答案。 maven的
版权所有 IT知识库 CopyRight © 2009-2015 IT知识库 IT610.com , All Rights Reserved. 京ICP备09083238号