[ http://jira.codehaus.org/browse/MNG-2490?page=comments#action_72525 ] Ryan Sonnek commented on MNG-2490: ----------------------------------
This "invalid repository metadata file" is only written out when the remote repository is not configured to display directory listings. My remote repository http://maven.codecrate.com was not configured to display directories, and returned a 403 error when attempting to access it in a web browser. As soon as I configured my repository to display directories, the generated repository metadata file looked fine. I can easily switch my server configuration back if anyone would like to try and reproduce this issue. > invalid remote repository metadata file installed in local repo > --------------------------------------------------------------- > > Key: MNG-2490 > URL: http://jira.codehaus.org/browse/MNG-2490 > Project: Maven 2 > Issue Type: Bug > Components: Artifacts and Repositories > Affects Versions: 2.0.4 > Reporter: Ryan Sonnek > > When I install my project, a metadata file is placed in my local repository > for each of the remote repositories my project uses. For some reason, maven > is creating an invalid remote repository file. This breaks my m2eclipse > integration and eclipse complains that it can't read the metadata file. > here are the contents of maven-metadata-codecrate-maven-repo.xml that's in my > local repository: > <HTML><HEAD><META HTTP-EQUIV="Refresh" CONTENT="0.1; > URL=/com/codecrate/shard/shard-dice/0.5.0-SNAPSHOT/maven-metadata.xml"> > <META HTTP-EQUIV="Pragma" CONTENT="no cache"> > <META HTTP-EQUIV="Expires" CONTENT="-1"> > </HEAD></HTML> > This is blatently wrong, and should be more like this > maven-metadata-spring-rich-client-maven-repo.xml file: > <?xml version="1.0" encoding="UTF-8"?><metadata> > <groupId>com.codecrate.shard</groupId> > <artifactId>shard-dice</artifactId> > <version>0.5.0-SNAPSHOT</version> > </metadata> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira