You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Borut Bolčina <bo...@najdi.si> on 2006/05/16 11:12:12 UTC

install-file generatePom

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?

Re: install-file generatePom

Posted by Wayne Fay <wa...@gmail.com>.
Good catch Borut. Be sure to file this as a JIRA bug.

Wayne

On 5/16/06, Borut Bolčina <bo...@najdi.si> wrote:
>
>
>
> 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\ <http://mirror.com/themes/standard/pm.css%5C>'
>
>          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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>        --
> bLOG
> --
> Naključna izjava tedna iz tednika Mladina:
>
>      ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> --
>
> [image: bLOG] <http://www.delo.si/blog/borutb/>
> --
> Naključna *izjava tedna* iz tednika Mladina:
>

Re: install-file generatePom

Posted by Borut Bolčina <bo...@najdi.si>.

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: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>   
>>>       
>> -- 
>> bLOG
>> --
>> Naključna izjava tedna iz tednika Mladina:
>>
>>     
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>   

-- 
bLOG <http://www.delo.si/blog/borutb/>
--
Naključna *izjava tedna* iz tednika Mladina:

Re: install-file generatePom

Posted by Martin Vysny <vy...@baka.sk>.
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.

> 
> 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: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> > 
> >   
> 
> -- 
> bLOG
> --
> Naključna izjava tedna iz tednika Mladina:
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: install-file generatePom

Posted by Borut Bolčina <bo...@najdi.si>.
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!

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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>   

-- 
bLOG <http://www.delo.si/blog/borutb/>
--
Naključna *izjava tedna* iz tednika Mladina:

Re: install-file generatePom

Posted by Jakub Pawlowicz <co...@jakubpawlowicz.com>.
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org