thanks Yossi for the reply,
If i connect the sonar server directly, I can download the pom
If I try to connect directly the remote repository it fails.
What I did
Under "Configure Repositories" -> "Remote Repositories" I had added a new
repository called "sonar".
So if I try
http://artifactoryServer:port/artifactory/sonar/org/codehaus/sonar/runtime/sonar-core-maven-plugin/20100809115828/sonar-core-maven-plugin-20100809115828.pom
it fails with
HTTP ERROR 404
Problem accessing
/artifactory/sonar/org/codehaus/sonar/runtime/sonar-core-maven-plugin/20100809115828/sonar-core-maven-plugin-20100809115828.pom.
Reason:
Service Unavailable
Under "Artifacts" the sonar repository shows up as "sonar-cache" - if I try to
download from
http://artifactoryServer:port/artifactory/sonar-cache/org/codehaus/sonar/runtime/sonar-core-maven-plugin/20100809115828/sonar-core-maven-plugin-20100809115828.pom
it fails with
HTTP ERROR 404
Problem accessing
/artifactory/sonar-cache/org/codehaus/sonar/runtime/sonar-core-maven-plugin/20100809115828/sonar-core-maven-plugin-20100809115828.pom.
Reason:
File not found.
Nevertheless, its a problem of the repository itself and not (or not for now)
of the virtual repository. We have configured the "sonar" repository as follows:
- URL: http://sonar-server:port/sonar/deploy/maven/ (accessing this in the
browser shows a index page which is needed for nexus - dont know if this is an
issue for Artifactory)
- Type: maven2
- Handle Releases / Handle Snapshots are both checked
the rest are the default configurations
in the request.log there is
20100902130553|6849|REQUEST|xxx.xx.xx.xxx|admin|GET|/sonar/org/codehaus/sonar/runtime/sonar-core-maven-plugin/20100809115828/sonar-core-maven-plugin-20100809115828.pom|HTTP/1.1|404|
I'm not sure where to enable debugging level for the logging.
Thanks
-----Original Message-----
From: Yossi Shaul <[email protected]>
To: artifactory-users <[email protected]>
Sent: Thu, Sep 2, 2010 12:06 pm
Subject: Re: [Artifactory-users] Getting Sonar to work with Artifactory
Also, before trying to download from the remote, zap its caches. To do it
login as admin, go to the tree browser, right click on the sonar cache and
click on the zap action.
On Thu, Sep 2, 2010 at 13:00, Yossi Shaul <[email protected]> wrote:
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". 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
------------------------------------------------------------------------------
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