Hi,

The sonar repository is treated as any other remote repository. To make sure
the sonar server URL
is correct, try downloading the file directly from it (with wget or from the
browser):
http://aonarServer:port
/sonar/deploy/maven/org/codehaus/sonar/runtime/sonar-core-maven-plugin/20100809115828/sonar-core-maven-plugin-20100809115828.pom

If direct download works, try to download the file directly from the remote
repository in Artifactory:
http://artifactoryServer:port
/artifactory/SONAR-REPO-NAME/org/codehaus/sonar/runtime/sonar-core-maven-plugin/20100809115828/sonar-core-maven-plugin-20100809115828.pom
If it works, try to download it from the virtual repo. If it doesn't find
the file the problem is with the virtual repo configuration.
If not, make sure the sonar repository is configured correctly (accepts
release versions), enable debug logging and tell
me what you see.

Yossi


On Thu, Sep 2, 2010 at 10:06, <[email protected]> wrote:

>  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".
> <http://theServer:port/sonar/deploy/maven>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
>
>
------------------------------------------------------------------------------
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

Reply via email to