如何在single maven settings.xm中添加内部和外部工件
嗨,我是maven settings.xml的新手,请跟我谈谈 目前,我正在一个项目中工作,其中使用JFrog Artifactory。xml有一个镜像部分,它指向artifactory,还有一个带有存储库和pluginRepositories的概要文件 现在,所有依赖项都是从该工件中提取出来的(我假设他们已经将这些依赖项安装到了该工件中) 我需要帮助从外部回购中提取新的依赖项或现有依赖项的新版本。如何做到这一点 我想我需要在settings.xml中添加新的回购url,我是否可以同时添加两个回购(如果不是外部回购,请查找内部回购) 请有人给我指点一下,带内部和外部回购的sample settings.xml会更有帮助 多谢各位 示例settings.xml文件如下所示如何在single maven settings.xm中添加内部和外部工件,maven,pom.xml,maven-plugin,Maven,Pom.xml,Maven Plugin,嗨,我是maven settings.xml的新手,请跟我谈谈 目前,我正在一个项目中工作,其中使用JFrog Artifactory。xml有一个镜像部分,它指向artifactory,还有一个带有存储库和pluginRepositories的概要文件 现在,所有依赖项都是从该工件中提取出来的(我假设他们已经将这些依赖项安装到了该工件中) 我需要帮助从外部回购中提取新的依赖项或现有依赖项的新版本。如何做到这一点 我想我需要在settings.xml中添加新的回购url,我是否可以同时添加两个回
<?xml version="1.0" encoding="UTF-8"?>
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<servers>
<server>
<username>${security.getCurrentUsername()}</username>
<password>${security.getEscapedEncryptedPassword()!"*** Insert encrypted password here ***"}</password>
<id>central</id>
</server>
<server>
<username>${security.getCurrentUsername()}</username>
<password>${security.getEscapedEncryptedPassword()!"*** Insert encrypted password here ***"}</password>
<id>snapshots</id>
</server>
</servers>
<mirrors>
<mirror>
<mirrorOf>*</mirrorOf>
<name>test</name>
<url>http://localhost:8082/artifactory/test</url>
<id>test</id>
</mirror>
</mirrors>
<profiles>
<profile>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>libs-release</name>
<url>http://localhost:8082/artifactory/libs-release</url>
</repository>
<repository>
<snapshots />
<id>snapshots</id>
<name>libs-snapshot</name>
<url>http://localhost:8082/artifactory/libs-snapshot</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>plugins-release</name>
<url>http://localhost:8082/artifactory/plugins-release</url>
</pluginRepository>
<pluginRepository>
<snapshots />
<id>snapshots</id>
<name>plugins-snapshot</name>
<url>http://localhost:8082/artifactory/plugins-snapshot</url>
</pluginRepository>
</pluginRepositories>
<id>artifactory</id>
</profile>
</profiles>
<activeProfiles>
<activeProfile>artifactory</activeProfile>
</activeProfiles>
</settings>
${security.getCurrentUsername()}
${security.getEscapedEncryptedPassword()!“***在此处插入加密密码***”}
中心的
${security.getCurrentUsername()}
${security.getEscapedEncryptedPassword()!“***在此处插入加密密码***”}
快照
*
测试
http://localhost:8082/artifactory/test
测试
假的
中心的
libs发布
http://localhost:8082/artifactory/libs-释放
快照
libs快照
http://localhost:8082/artifactory/libs-快照
假的
中心的
插件发布
http://localhost:8082/artifactory/plugins-释放
快照
插件快照
http://localhost:8082/artifactory/plugins-快照
人工制品
人工制品