On 16.5.2006 12:59, Martin Vysny wrote:
On Tue, 2006-05-16 at 11:27 +0200, Borut Bolčina wrote:
When removing
<mirror>
<id>planetmirror.com</id>
<name>planetmirror Mirror of
http://repo1.maven.org/maven2/</name>
<url>http://public.planetmirror.com/pub/maven2</url>
<mirrorOf>central</mirrorOf>
</mirror>
it installed install-plugin and the 3rd party jar. It looks
planetmirror is no good!
Yeah, don't use it. All well-behaved webservers just return 404 NOT
FOUND when a page cannot be found - thus Maven knows that the resource
cannot be found on given repository. However, some stupid webservers
(such as planetmirror) returns a regular webpage that contains the "Not
found" text. Maven2 cannot know that the resource is not available and
uses that "Not found" page instead of any resource that it tries poll
from that repository. So, maven's local repository becomes corrupted and
full of "Not found" pages. You need to:
- remove all such resources (you need to check ALL files - .jar, .xml
etc), from Maven2 local repository,
- never use such repository again.
I guess it should be removed from documentation at
http://maven.apache.org/guides/mini/guide-mirror-settings.html
On 16.5.2006 11:20, Jakub Pawlowicz wrote:
Hi!
It seems that maven-metadata-central.xml is corrupted.
Try to delete it and then rerun the mvn install.
HTH
Regards,
Jakub
On Tue, 16 May 2006 11:12:12 +0200, Borut Bolčina wrote
I am loosing battle with maven...
I removed .m2\repository\org\apache\maven\plugins\maven-install-
plugin. Now when trying to install some 3rd party jar
mvn install:install-file -DgroupId=jxl -DartifactId=jxl
-Dversion=2.5.9 -DgeneratePom
=true -Dpackaging=jar -Dfile=jxl.jar
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'install'.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).
Project ID: org.apache.maven.plugins:maven-install-plugin
Reason: Error getting POM for
'org.apache.maven.plugins:maven-install-plugin' from the repository:
Unable to read local copy of me
tadata: Cannot read metadata from 'C:\Documents and
Settings\borutb\.m2\repository\org\apache\maven\plugins\maven-
install-plugin\m aven-metadata-central.xml': end tag name </head>
must be the same as start tag <link> from line 12 (position: TEXT
seen .../planet mirror.com/themes/standard/pm.css\'
type=\'text/css\'>\n</head>...
@13:8)
org.apache.maven.plugins:maven-install-plugin:pom:LATEST
The install plugin is not installed.
In my settings.xml
<mirrors>
<mirror>
<id>planetmirror.com</id>
<name>planetmirror Mirror of
http://repo1.maven.org/maven2/</name>
<url>http://public.planetmirror.com/pub/maven2</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<mirrorOf>snapshots</mirrorOf>
<name>snapshots codehaus hack</name>
<id>snapshots codehaus hack</id>
<url>http://www.ibiblio.org/maven2/</url>
</mirror>
</mirrors>
What is going on?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
bLOG
--
Naključna izjava tedna iz tednika Mladina:
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--

--
Naključna izjava
tedna iz tednika Mladina:
|
- Re: install-file generatePom Borut Bolčina
-