Issue Type: Bug Bug
Affects Versions: 1.0-alpha-1
Assignee: Stephen Connolly
Components: Servlet
Created: 03/Sep/12 4:08 PM
Description:

When searching for the site.xml, the DefaultSiteTool tries to resolve it with the locale first. If that one isn't available, it will try to fall back on the default.
The MMRM seems to return a HTTP 500 when calling for a site for specific locale.

[WARNING] The site descriptor cannot be resolved from the repository: ArtifactResolutionException: Unable to locate site descriptor: Could not transfer artifact localhost:mojo-1855-parent:xml:site_en:1 from/to mrm-maven-plugin (http://localhost:52230): Failed to transfer file: http://localhost:52230/localhost/mojo-1855-parent/1/mojo-1855-parent-1-site_en.xml. Return code is: 500, ReasonPhrase:Artifact does not exist.

It looks like Aether won't translate this to an ArtifactNotFoundException, it stays an ArtifactResolutionException so the SiteTool doesn't have the chance to try to resolve the default site.xml

HTTP500 is an internal error, I think a HTTP404 is more suitable here.

Environment: Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
Maven home: D:\apache-maven-3.0.4\bin\..
Java version: 1.6.0_25, vendor: Sun Microsystems Inc.
Java home: C:\Program Files\Java\jdk1.6.0_25\jre
Default locale: nl_NL, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
Project: Mojo's Mock Repository Manager
Priority: Critical Critical
Reporter: Robert Scholte
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to