Я использую Maven 3.3 для создания проекта.Здесь мы используем локальный репозиторий Maven.Это файл settings.xml
<?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>central</mirrorOf>
<name>mirrorOfmaven</name>
<url>http://10.2.2.29:8080/artifactory/mirrorOfmaven</url>
<id>mirrorOfmaven</id>
</mirror>
</mirrors>
<profiles>
<profile>
<repositories>
<repository>
<id>ext-release-local</id>
<name>ext-release-local</name>
<url>http://10.2.2.29:8080/artifactory/ext-release-local</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>libs-release-local</id>
<name>libs-release-local</name>
<url>http://10.2.2.29:8080/artifactory/libs-release-local</url>
</repository>
</repositories>
<id>artifactory</id>
</profile>
<profile>
<id>local</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<build.profile.id>local</build.profile.id>
<wls.adminurl>t3://localhost:7001</wls.adminurl>
<wls.username>weblogic</wls.username>
<wls.password>weblogic</wls.password>
<wls.targets>artserver</wls.targets>
</properties>
</profile>
<profile>
<id>prod</id>
<properties>
<build.profile.id>prod</build.profile.id>
</properties>
</profile>
<profile>
<id>test</id>
<properties>
<build.profile.id>test</build.profile.id>
</properties>
</profile>
</profiles>
<activeProfiles>
<activeProfile>artifactory</activeProfile>
</activeProfiles>
</settings>
Здесь сейчас мне нужно использовать плагин maven jaxb2,
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<version>${maven-jaxb2-plugin.version}</version>
, которого нет в моем локальном хранилище.
При запуске выдает ошибку:
Failure to find org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:jar:0.13.3 in http://10.2.2.29:8080/artifactory/mirrorOfmaven was cached in the local repository
Как я могу изменить файл settings.xml, чтобы, если зависимость отсутствует в локальной сети, получить ее из Интернета.