Hi,
I asked this already on the Sonar mailinglist and the suggested to go for the
artifactory community.
We try to configure Artifactory that it resolves the Sonar artifacts
(http://www.sonarsource.org/). The Sonar installation brings its own maven
repository which we tried to include in artifactory.
This is what we did:
Inside Artifactory we defined a new remote repository named "sonar" with the
location http://theServer:port/sonar/deploy/maven. We added this to the virtual
repository "remote-repos". Additionally, we have another virtual repository
called "fw-test" which contains "remote-repos" and some local repositories.
The settings.xml looks like this
<mirrors>
<mirror>
<mirrorOf>*</mirrorOf>
<name>fw-test</name>
<url>http://build01-whm.ibfs.de:8090/artifactory/fw-test</url>
<id>fw-test</id>
</mirror>
</mirrors>
<profiles>
<profile>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>fw-test</name>
<url>http://theServer:port/artifactory/fw-test</url>
</repository>
<repository>
<snapshots />
<id>snapshots</id>
<name>fw-test</name>
<url>http://theServer:port/artifactory/fw-test</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>plugins-releases</name>
<url>http://theServer:port/artifactory/plugins-releases</url>
</pluginRepository>
<pluginRepository>
<snapshots />
<id>snapshots</id>
<name>plugins-snapshots</name>
<url>http://theServer:port/artifactory/plugins-snapshots</url>
</pluginRepository>
</pluginRepositories>
<id>artifactory</id>
</profile>
<profile>
This settings works when building the projects and/or deploying together with
artifactory.
When running the sonar analysis, it fails to download the required artifacts
with the message
Downloading:
http://theServer:port/artifactory/fw-test/org/codehaus/sonar/runtime/sonar-core-maven-plugin/20100809115828/sonar-core-maven-plugin-20100809115828.pom
[INFO] Unable to find resource
'org.codehaus.sonar.runtime:sonar-core-maven-plugin:pom:20100809115828' in
repository sonar (http://theServer:sonarport/sonar/deploy/maven)
Due to the sonar mailinglist the configuration of sonar ist correct....
can anyone tell us, why it fails to retrieve only these artifacts, but all
others ?
If I enter the URL to the artifact directly
http://theServer:sonarport/sonar/deploy/maven/org/codehaus/..... it is
accessible.
Thanks for any help
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users