Hi all,

I have an internal repository and I have deployed a snapshot version
of a jar to it, using the deploy-file goal:

mvn deploy:deploy-file -DpomFile=artifactName-1.0-SNAPSHOT.pom
-Dfile=.artifactName.jar -DrepositoryId=ebi-repo
-Durl=scp://localhost/homes/maven/public_html/m2repo
-DuniqueVersion=false

Everything is created fine in the repository, as I can see the files
and the pom is correct.

The problem is that when I have another pom that depends on that
artifact, I get this error message:

[INFO] Error building POM (may not be this project's POM).
Project ID: myGroupId:artifactName
Reason: Error getting POM for 'myGroupId:artifactName' from the
repository: Unable to read local copy of metadata: Cannot read
metadata from 
'~/.m2/repository/myGroupId/1.0-SNAPSHOT/maven-metadata-my-repo.xml':
end tag name </head> must be the same as start tag <meta> from line 47
(position: TEXT seen ...  src =
"http://www.ebi.ac.uk/include/master.js";></script>\n</head>... @49:8)
 myGroupId:artifactName:pom:1.0-SNAPSHOT

And this is due to the fact that the maven-metadata-my-repo.xml file
contains the html code of the page that appears in my institution when
the servers returns a 404 (page not found).

I have this configuration in my pom:

<repositories>
        <repository>
           <id>central-repo</id>
           <name>Ibiblio repository</name>
           <url>http://www.ibiblio.org/maven2</url>
       </repository>
       <repository>
           <id>ebi-repo</id>
           <name>The EBI internal repository</name>
           <url>http://www.ebi.ac.uk/~maven/m2repo</url>
       </repository>
   </repositories>

I have put the central-repo explicitly so it is the first server
checked (otherwise for jars not present in the internal jar, but
present in the central repo I got an error, due to the fact that the
404 html page appear when asking to the internal repo.

With released artifacts (not snapshots) everything seems to be working fine...

Any ideas?

Thanks!

Bruno

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to