父pom配置:
pom
在父pom中配置依赖管理和插件管理
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
4.0.0
cxxcode.maven
account-parent
pom
0.0.1
Account Parent
http://maven.apache.org
2.5.6
4.7
1.4.1
1.3.1b
1.6.1
2.5
org.springframework
spring-core
${spring-version}
org.springframework
spring-beans
${spring-version}
org.springframework
spring-context
${spring-version}
org.springframework
spring-context-support
${spring-version}
javax.mail
mail
${mail-version}
dom4j
dom4j
${dom4j-version}
com.icegreen
greenmail
${greenmail-version}
test
junit
junit
${junit-version}
test
org.apache.maven.plugins
maven-compiler-plugin
1.5
true
UTF-8
org.apache.maven.plugins
maven-source-plugin
verify
jar-no-fork
org.apache.maven.plugins
maven-resources-plugin
UTF-8
org.apache.maven.plugins
maven-surefire-plugin
${surefire-version}
==================================
子pom
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
4.0.0
account-email
jar
Account Email
cxxcode.maven
account-parent
0.0.1
../CXXMaven_AccountParent/pom.xml
org.springframework
spring-core
org.springframework
spring-beans
org.springframework
spring-context
org.springframework
spring-context-support
javax.mail
mail
com.icegreen
greenmail
test
junit
junit
org.apache.maven.plugins
maven-compiler-plugin
org.apache.maven.plugins
maven-shade-plugin
package
shade
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
com.cxx.maven.App
org.apache.maven.plugins
maven-source-plugin