Skip to content

Instantly share code, notes, and snippets.

@danhantao
Last active August 29, 2015 14:00
Show Gist options
  • Save danhantao/11311519 to your computer and use it in GitHub Desktop.
Save danhantao/11311519 to your computer and use it in GitHub Desktop.
maven相关的内容
mvn
****************************************************************************************************************************
5.5 依赖范围
5.6 依赖传递
****************************************************************************************************************************
8.4 聚合与继承的关系
8.6 反应堆
****************************************************************************************************************************
14.1.Maven属性
六种:
内置属性:${basedir} ${version}
POM属性:${project.artifactId}
自定义属性:
Settings属性:
Java系统属性:
环境变量属性:
14.2.构建环境的差异
src/main/resources/
数据库的配置不同
14.3.资源过滤
1.提取maven属性 2.profile包裹 3.开启资源过滤
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
14.4 Maven Profile
14.4.1不同环境的profile
mvn -Pdev 激活dev profile
mvn -Ptest 激活test profile
14.4.2激活profile
命令行 settings文件显示激活
系统属性激活  操作系统环境激活
文件存在与否激活 默认激活
14.4.3 profile种类
pom.xml
用户settings.xml
全局settings.xml
profiles.xml
____________________________________________________________________________________________________________________
CI:
jenkins:
http://jenkins-ci.org/
http://www.ibm.com/developerworks/cn/java/j-lo-jenkins/
hudson:
http://www.hudson-ci.org/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment