Apache maven 配置

  
项目管理工具maven下载:

http://archive.apache.org/dist/maven/maven-3/
配置:

具体参考:
http://www.qchcloud.cn/system/article/show/64

settings.xml

<?xml version="1.0" encoding="UTF-8"?>

calRepository>/path/to/local/repo
--> D:\repository\maven-repository teractiveMode>true --> fline>false --> uginGroup>com.your.plugins --> oxy> optionaltruehttpproxyuserproxypassproxy.host.net80local.net|some.host.com --> rver> deploymentReporepouserrepopwd --> rver> siteServer /path/to/private/key optional; leave empty if not used. --> rror> mirrorIdrepositoryIdHuman Readable Name for this Mirror.http://my.repository.com/repo/path --> nexus*http://maven.aliyun.com/nexus/content/groups/public/ sonatypeSonatype Centralhttp://repository.sonatype.org/content/groups/public* sonatype-reposSonatype Repositoryhttps://oss.sonatype.org/content/groups/public* tivatedProfiles/> | or the command line, profiles have to have an ID that is unique. | | An encouraged best practice for profile identification is to use a consistent naming convention | for profiles, such as ‘env-dev‘, ‘env-test‘, ‘env-production‘, ‘user-jdcasey‘, ‘user-brett‘, etc. | This will make it more intuitive to understand what the set of introduced profiles is attempting | to accomplish, particularly when you only have a list of profile id‘s for debug. | | This profile example uses the JDK version to trigger activation, and provides a JDK-specific repo. jdk-1.41.4jdk14Repository for JDK 1.4 buildshttp://www.myhost.com/maven/jdk14defaultalways --> ugin> | org.myco.myplugins | myplugin | | | ${tomcatPath} | | | ... | | NOTE: If you just wanted to inject this configuration whenever someone set ‘target-env‘ to | anything, you could just leave off the inside the activation-property. | env-devtarget-envdev/path/to/tomcat/instance --> custom-compilerC:\Program Files\Java\jdk1.8.0_181 tiveProfiles> alwaysActiveProfile anotherAlwaysActiveProfile --> custom-compiler

原文:http://blog.51cto.com/14042154/2327993

相关文章