|
This post was updated on .
I have installed artifactiry. I'd like to use it to store (and internal sharing) some private jars. I'd also like to use it to fetch public jars from some remote maven repository.
So I don't know how to configure my settings.xml. If I use the following settings, I can only access private jars and not remote jars: <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <servers> <server> <id>artifactory</id> <username>admin</username> <password>password</password> </server> <server> <id>central</id> <username>admin</username> <password>password</password> </server> <server> <id>snapshots</id> <username>admin</username> <password>password</password> </server> <server> <id>artifactory-release</id> <username>admin</username> <password>password</password> </server> <server> <id>artifactory-snapshots</id> <username>admin</username> <password>password</password> </server> <server> <id>remote</id> <username>admin</username> <password>password</password> </server> </servers> <profiles> <profile> <repositories> <repository> <snapshots> <enabled>false</enabled> </snapshots> <id>central</id> <name>libs-release</name> <url>http://192.168.0.205:8081/artifactory/libs-release</url> </repository> <repository> <snapshots /> <id>snapshots</id> <name>libs-snapshot</name> <url>http://192.168.0.205:8081/artifactory/libs-snapshot</url> </repository> </repositories> <pluginRepositories> <pluginRepository> <snapshots> <enabled>false</enabled> </snapshots> <id>central</id> <name>plugins-release</name> <url>http://192.168.0.205:8081/artifactory/plugins-release</url> </pluginRepository> <pluginRepository> <snapshots /> <id>snapshots</id> <name>plugins-snapshot</name> <url>http://192.168.0.205:8081/artifactory/plugins-snapshot</url> </pluginRepository> </pluginRepositories> <id>artifactory</id> </profile> </profiles> <activeProfiles> <activeProfile>artifactory</activeProfile> </activeProfiles> </settings> While if I add (at the top) the following code, I get an error: <mirrors> <mirror> <id>artifactory</id> <mirrorOf>*</mirrorOf> <url>http://192.168.0.205:8081/artifactory/repo1</url> <name>Artifactory</name> </mirror> </mirrors> The error is : [ERROR] Failed to execute goal on project .... Could not resolve depen dencies for project.... Failure to find org.apache.pdfbox:fontbox:bundle:1.6.0 in http://192.168.0.205:8081/artifactory/repo1 was cached in the local repository, resolution will not be reattempted until the update interval of artifactory has elapsed or updates are forced -> [Help 1] Same problem if I use the mirror http://192.168.0.205:8081/artifactory/repo (What's the difference between repo and repo1 ?) Any help is appreciated. Thank you in advance Andrea |
| Powered by Nabble | See how NAML generates this page |
