maven之pom.xml属性详解

1.pom.xml中的内置变量

Maven内置变量说明:

*   ${basedir} 项目根目录(即pom.xml文件所在目录)
*   ${project.build.directory} 构建目录,缺省为target目录
*   ${project.build.outputDirectory} 构建过程输出目录,缺省为target/classes
*   ${project.build.finalName} 产出物名称,缺省为${project.artifactId}-${project.version}
*   ${project.packaging} 打包类型,缺省为jar
*   ${project.xxx} 当前pom文件的任意节点的内容
*   ${env.xxx} 获取系统环境变量。例如,"env.PATH"指代了$path环境变量(在Windows上是%PATH%)。
*   ${settings.xxx} 指代了settings.xml中对应元素的值。例如:false通过 ${settings.offline}获得offline的值。
*   Java System Properties: 所有可通过java.lang.System.getProperties()访问的属性都能在POM中使用,例如 ${JAVA_HOME}。

2.配置详解

  
    
    
     
     
     
     
     
     
     
     
 
     
    4.0.0  
      
    asia.banseon  
      
    banseon-maven2  
      
    jar  
      
    1.0-SNAPSHOT  
      
    banseon-maven  
      
    http://www.baidu.com/banseon  
      
    A maven project to study maven.  
    
 
  
    
 
   
    
       
        jira  
        
        http://jira.baidu.com/banseon  
      
    
 
  
  
  
  
  
  
   
   
    
    
    
    
    
    
    
    
    
    
    
    
Demo [email protected] [email protected] [email protected] http:/hi.baidu.com/banseon/demo/dev/ HELLO WORLD banseon [email protected] Project Manager Architect demo http://hi.baidu.com/banseon No -5 Apache 2 http://www.baidu.com/banseon/LICENSE-2.0.txt repo A business-friendly OSS license scm:svn:http://svn.baidu.com/banseon/maven/banseon/banseon-maven2-trunk(dao-trunk) scm:svn:http://svn.baidu.com/banseon/maven/banseon/dao-trunk http://svn.baidu.com/banseon demo http://www.baidu.com/banseon ...... ...... Windows XP Windows x86 5.1.2600 mavenVersion 2.0.3 /usr/local/hudson/hudson-home/jobs/maven-guide-zh-to-production/workspace/ /usr/local/hudson/hudson-home/jobs/maven-guide-zh-to-production/workspace/ ...... ...... ...... ...... ...... ...... banseon-repository-proxy banseon-repository-proxy http://192.168.1.169:9999/repository/ default ...... org.apache.maven maven-artifact 3.8.1 jar test spring-core org.springframework true ...... banseon-maven2 banseon maven2 file://${basedir}/target/deploy banseon-maven2 Banseon-maven2 Snapshot Repository scp://svn.baidu.com/banseon:/usr/local/maven-snapshot banseon-site business api website scp://svn.baidu.com/banseon:/var/www/localhost/banseon-web

你可能感兴趣的:(maven之pom.xml属性详解)