Apache maven 配置
项目管理工具maven下载:
calRepository>/path/to/local/repo
-->
D:\repository\maven-repository
teractiveMode>true
-->
fline>false
-->
uginGroup>com.your.plugins
-->
oxy>
optional truehttp proxyuser proxypass proxy.host.net 80 local.net|some.host.com
-->
rver>
deploymentRepo repouser repopwd
-->
rver>
siteServer
/path/to/private/key
optional; leave empty if not used.
-->
rror>
mirrorId repositoryId Human Readable Name for this Mirror. http://my.repository.com/repo/path
-->
nexus * http://maven.aliyun.com/nexus/content/groups/public/
sonatype Sonatype Central http://repository.sonatype.org/content/groups/public *
sonatype-repos Sonatype Repository https://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.4 1.4 jdk14 Repository for JDK 1.4 builds http://www.myhost.com/maven/jdk14 default always
-->
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-dev target-env dev /path/to/tomcat/instance
-->
custom-compiler C:\Program Files\Java\jdk1.8.0_181
tiveProfiles>
alwaysActiveProfile
anotherAlwaysActiveProfile
-->
custom-compiler
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"?>
原文:http://blog.51cto.com/14042154/2327993