I've looked at the metadata file and it is to map prefixes, like release, 
eclipse, all the shorthand forms, to plugins. Could you compare 
http://ecm-maven-repo.itcnetworks:8081/maven_repo/org/apache/maven/plugins/maven-metadata.xml
with 
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-metadata.xml

And perhaps replace your files (the xml, the sha1 and the md5) with the files 
from repo1.

Hth,

Nick Stolwijk

-----Original Message-----
From: Ionut Scutaru [mailto:[EMAIL PROTECTED]
Sent: Wed 2/13/2008 15:05
To: Maven Users List
Subject: Re: NullPointerException in maven
 
So you think this is the problem ? How come other mvn commands are working ?
Shouldn't they have the same problem ?



On Feb 13, 2008 4:00 PM, <[EMAIL PROTECTED]> wrote:

> I know that central is also just a filesystem, and I once saw a few shell
> scripts to repair metadata and checksums, IIRC. I don't know who had them or
> if they still exist.
>
> Some of maven 2 developers are often on IRC, maybe you could ask them if
> they still have those scripts.
>
> Hth,
>
> Nick Stolwijk
>
>
> -----Original Message-----
> From: Ionut Scutaru [mailto:[EMAIL PROTECTED]
> Sent: Wed 2/13/2008 14:33
> To: Maven Users List
> Subject: Re: NullPointerException in maven
>
> I understood what you wanted and I modified the url accordingly.. No, it's
> not there.
>
> Our repository software is a simple remote filesystem.. we don't use
> either
> archiva or proximity.
>
>
>
> On Feb 13, 2008 3:27 PM, <[EMAIL PROTECTED]> wrote:
>
> > First, I see I forgot a space, so my url was bogus, it should be:
> >
> >
> >
> http://ecm-maven-repo.itcnetworks:8081/maven_repo/org/apache/maven/plugins/maven-metadata.xml.sha1
> >
> > Second, do you use any repository software, like archiva or proximity,
> or
> > is it just a remote filesystem?
> >
> > With regards,
> >
> > Nick Stolwijk
> >
> >
> > -----Original Message-----
> > From: Ionut Scutaru [mailto:[EMAIL PROTECTED]
> > Sent: Wed 2/13/2008 14:24
> > To: Maven Users List
> > Subject: Re: NullPointerException in maven
> >
> > Nope, it doesn't.
> >
> >
> > On Feb 13, 2008 3:16 PM, <[EMAIL PROTECTED]> wrote:
> >
> > > It was more a "been there, done that" story. Whenever I see someone
> > > talking about "we are using a local repository" or such, horrid images
> > from
> > > the past gets in my head. ;)
> > >
> > > If you try to get
> > >
> >
> http://ecm-maven-repo.itcnetworks:8081/maven_repo/org/apache/maven/plugins/maven-metadata.xml.sha1fromabrowser
>  or wget, does that succeed?
> > >
> > > Hth,
> > >
> > > Nick S.
> > >
> > >
> > > -----Original Message-----
> > > From: Ionut Scutaru [mailto:[EMAIL PROTECTED]
> > > Sent: Wed 2/13/2008 14:11
> > > To: Maven Users List
> > > Subject: Re: NullPointerException in maven
> > >
> > > Sorry, I wasn't clear enough.. It's an internal remote repository on a
> > > server.
> > >
> > > I uploaded the artifacts using the deploy plugin. (we did that for all
> > our
> > > artifacts and it's working just fine..) The only problem was with this
> > > specific plugin.
> > >
> > >
> > >
> > >
> > > On Feb 13, 2008 2:26 PM, <[EMAIL PROTECTED]> wrote:
> > >
> > > > > We have a local repository where we put all the artifacts that we
> > need
> > > > in
> > > > our project.
> > > >
> > > > Do you mean the local repository each developer has? Normally
> > > > <user_home>/.m2/repository . Or do you mean an internal remote
> > > repository on
> > > > a server? With what command did you install the artifacts into your
> > > > repository?
> > > >
> > > > Take a look at the local and remote repository principle. You can't
> > copy
> > > > files into a remote repository and you can't use a local repository
> > (ie.
> > > > from your build server account) as remote repository for other
> > > developers.
> > > > Don't mess with these, or you can get weird effects.
> > > >
> > > > Hth,
> > > >
> > > > Nick Stolwijk
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: Ionut Scutaru [mailto:[EMAIL PROTECTED]
> > > > Sent: Wed 2/13/2008 13:00
> > > > To: users@maven.apache.org
> > > > Subject: NullPointerException in maven
> > > >
> > > > Guys,
> > > > We have a local repository where we put all the artifacts that we
> need
> > > in
> > > > our project. Recently though I added a new version of the
> > maven-release
> > > > plugin and, when I try to use it, I'm getting a NullPointerException
> > as
> > > > follows:
> > > >
> > > >
> > > > [EMAIL PROTECTED] trunk]$ mvn -X release:branch
> > > > -DupdateBranchVersions=true
> > > > -DupdateWorkingCopyVersions=false -DautoVersionSubmodules=true
> > > > -DbranchName="EMP-2.0.0/" -DdryRun=true -U
> > > > + Error stacktraces are turned on.
> > > > Maven version: 2.0.4
> > > > [DEBUG] Building Maven user-level plugin registry from:
> > > > '/home/scutaru/.m2/plugin-registry.xml'
> > > > [DEBUG] Building Maven global-level plugin registry from:
> > > > '/home/scutaru/opt/maven-2.0.4/conf/plugin-registry.xml'
> > > > [INFO] Scanning for projects...
> > > > [INFO] Reactor build order:
> > > > [INFO]   Enterprise Management Platform
> > > > [INFO]   Common
> > > > [INFO]   Tools
> > > > [INFO]   Maven Plugins
> > > > [INFO]   Portlet Archetype
> > > > [INFO]   Service Archetype
> > > > [INFO]   Installer Maven Plugin
> > > > [INFO]   Runtime Maven Plugin
> > > > [INFO]   Buildinfo Maven Plugin
> > > > [INFO]   Modify Maven Values Maven Plugin
> > > > [INFO]   Shrinkjs Maven Plugin
> > > > [INFO]   Eclipse Plugins
> > > > [INFO]   Sample Eclipse Plugin
> > > > [INFO]   JIRA Plugins
> > > > [INFO]   Agile JIRA Plugin
> > > > [INFO]   Clarify JIRA Plugin
> > > > [INFO]   InstallAnywhere Plugins
> > > > [INFO]   Test SAM Connection InstallAnywhere Plugin
> > > > [INFO]   FQDN InstallAnywhere Plugin
> > > > [INFO]   Port Check InstallAnywhere Plugin
> > > > [INFO]   Modules
> > > > [INFO]   Backup
> > > > [INFO]   Common Module
> > > > [INFO]   Portal Extensions
> > > > [INFO]   Connector Modules
> > > > [INFO]   Common Connector Module
> > > > [INFO]   Sample Connector Module
> > > > [INFO]   Service Modules
> > > > [INFO]   Registry Service
> > > > [INFO]   Filter Service
> > > > [INFO]   Licensing Service
> > > > [INFO]   Log Service
> > > > [INFO]   Security Service
> > > > [INFO]   Web Remoting Service
> > > > [INFO]   Inventory Service
> > > > [INFO]   Workflow Management Service
> > > > [INFO]   Scheduler Service
> > > > [INFO]   Discovery Service
> > > > [INFO]   Web Modules
> > > > [INFO]   Common Web Module
> > > > [INFO]   Inventory Web Module
> > > > [INFO]   Portal Server Web Module
> > > > [INFO]   Webstart Web Module
> > > > [INFO]   Portal Web Module
> > > > [INFO]   Scheduler Web Module
> > > > [INFO]   Security Web Module
> > > > [INFO]   Registry Web Module
> > > > [INFO]   Web Remoting Web Module
> > > > [INFO]   Help Web Module
> > > > [INFO]   Filter Web Module
> > > > [INFO]   Workflow Portlet Web Module
> > > > [INFO]   Log Web Module
> > > > [INFO]   Credential Web Module
> > > > [INFO]   Applications
> > > > [INFO]   Common Application
> > > > [INFO]   Enterprise Management Platform
> > > > [INFO] Searching repository for plugin with prefix: 'release'.
> > > > [INFO] org.apache.maven.plugins: checking for updates from central
> > > > [DEBUG] SHA1 not found, trying MD5
> > > > org.apache.maven.wagon.ResourceDoesNotExistException: Unable to
> locate
> > > > resource in repository
> > > >        at
> > > >
> > org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData
> > > (
> > > > LightweightHttpWagon.java:95)
> > > >        at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java
> :68)
> > > >        at
> > > > org.apache.maven.artifact.manager.DefaultWagonManager.verifyChecksum
> (
> > > > DefaultWagonManager.java:520)
> > > >        at
> > > > org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(
> > > > DefaultWagonManager.java:380)
> > > >        at
> > > >
> > >
> >
> org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMetadata(
> > > > DefaultWagonManager.java:295)
> > > >        at
> > > >
> > > >
> > >
> >
> org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolveAlways
> > > > (DefaultRepositoryMetadataManager.java:356)
> > > >        at
> > > >
> > > >
> > >
> >
> org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolve
> > > > (DefaultRepositoryMetadataManager.java:91)
> > > >        at
> > > >
> org.apache.maven.plugin.DefaultPluginMappingManager.loadPluginMappings
> > (
> > > > DefaultPluginMappingManager.java:98)
> > > >        at
> > > >
> org.apache.maven.plugin.DefaultPluginMappingManager.loadPluginMappings
> > (
> > > > DefaultPluginMappingManager.java:82)
> > > >        at
> > > org.apache.maven.plugin.DefaultPluginMappingManager.getByPrefix(
> > > > DefaultPluginMappingManager.java:56)
> > > >        at
> > > >
> > >
> >
> org.apache.maven.plugin.DefaultPluginManager.getPluginDefinitionForPrefix(
> > > > DefaultPluginManager.java:143)
> > > >        at
> > > >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(
> > > > DefaultLifecycleExecutor.java:1446)
> > > >        at
> > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds
> > > > (DefaultLifecycleExecutor.java:381)
> > > >        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> > > > DefaultLifecycleExecutor.java:135)
> > > >        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java
> > :322)
> > > >        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java
> :115)
> > > >        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
> > > >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> > > >        at sun.reflect.NativeMethodAccessorImpl.invoke(
> > > > NativeMethodAccessorImpl.java:39)
> > > >        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > > > DelegatingMethodAccessorImpl.java:25)
> > > >        at java.lang.reflect.Method.invoke(Method.java:585)
> > > >        at org.codehaus.classworlds.Launcher.launchEnhanced(
> > Launcher.java
> > > > :315)
> > > >        at org.codehaus.classworlds.Launcher.launch(Launcher.java
> :255)
> > > >        at org.codehaus.classworlds.Launcher.mainWithExitCode(
> > > Launcher.java
> > > > :430)
> > > >        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > > > Caused by: java.io.FileNotFoundException:
> > > >
> > > >
> > >
> >
> http://ecm-maven-repo.itcnetworks:8081/maven_repo/org/apache/maven/plugins/maven-metadata.xml.sha1
> > > >        at sun.net.www.protocol.http.HttpURLConnection.getInputStream
> <
> > > > http://www.protocol.http.httpurlconnection.getinputstream/>
> > > > (HttpURLConnection.java:1168)
> > > >        at
> > > >
> > org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData
> > > (
> > > > LightweightHttpWagon.java:85)
> > > >        ... 24 more
> > > > [INFO] org.apache.maven.plugins: checking for updates from snapshots
> > > > [DEBUG] repository metadata for: 'org.apache.maven.plugins' could
> not
> > be
> > > > found on repository: snapshots
> > > > [DEBUG] Skipping disabled repository apache.snapshots
> > > > [INFO] org.codehaus.mojo: checking for updates from central
> > > > [DEBUG] repository metadata for: 'org.codehaus.mojo' could not be
> > found
> > > on
> > > > repository: central
> > > > [INFO] org.codehaus.mojo: checking for updates from snapshots
> > > > [DEBUG] repository metadata for: 'org.codehaus.mojo' could not be
> > found
> > > on
> > > > repository: snapshots
> > > > [DEBUG] Skipping disabled repository apache.snapshots
> > > > [DEBUG] Retrieving parent-POM:
> > > org.apache.maven.release:maven-release::4for
> > > > project:
> > > >
> >
> org.apache.maven.plugins:maven-release-plugin:maven-plugin:2.0-beta-7from
> > > > the repository.
> > > > [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for
> > > > project:
> > > > org.apache.maven.release:maven-release:pom:4 from the repository.
> > > > [DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
> > > > org.apache.maven:maven-parent:pom:5 from the repository.
> > > > [INFO]
> > > >
> > ------------------------------------------------------------------------
> > > > [ERROR] FATAL ERROR
> > > > [INFO]
> > > >
> > ------------------------------------------------------------------------
> > > > [INFO] null
> > > > [INFO]
> > > >
> > ------------------------------------------------------------------------
> > > > [DEBUG] Trace
> > > > java.lang.NullPointerException
> > > >        at org.apache.maven.plugin.DefaultPluginManager.addPlugin(
> > > > DefaultPluginManager.java:292)
> > > >        at
> > > > org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(
> > > > DefaultPluginManager.java:198)
> > > >        at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(
> > > > DefaultPluginManager.java:163)
> > > >        at
> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin
> > > > (
> > > > DefaultLifecycleExecutor.java:1252)
> > > >        at
> > > >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(
> > > > DefaultLifecycleExecutor.java:1517)
> > > >        at
> > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds
> > > > (DefaultLifecycleExecutor.java:381)
> > > >        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> > > > DefaultLifecycleExecutor.java:135)
> > > >        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java
> > :322)
> > > >        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java
> :115)
> > > >        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
> > > >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> > > >        at sun.reflect.NativeMethodAccessorImpl.invoke(
> > > > NativeMethodAccessorImpl.java:39)
> > > >        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > > > DelegatingMethodAccessorImpl.java:25)
> > > >        at java.lang.reflect.Method.invoke(Method.java:585)
> > > >        at org.codehaus.classworlds.Launcher.launchEnhanced(
> > Launcher.java
> > > > :315)
> > > >        at org.codehaus.classworlds.Launcher.launch(Launcher.java
> :255)
> > > >        at org.codehaus.classworlds.Launcher.mainWithExitCode(
> > > Launcher.java
> > > > :430)
> > > >        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > > > [INFO]
> > > >
> > ------------------------------------------------------------------------
> > > > [INFO] Total time: 8 seconds
> > > > [INFO] Finished at: Wed Feb 13 13:16:25 EET 2008
> > > > [INFO] Final Memory: 10M/19M
> > > > [INFO]
> > > >
> > ------------------------------------------------------------------------
> > > > [EMAIL PROTECTED] trunk]$
> > > >
> > > >
> > > > I don't know what's wrong. I removed all the repository and tried
> > again,
> > > > but
> > > > still no luck.
> > > >
> > > > Can anybody help, please ?
> > > >
> > > > Thank you,
> > > > Ionut
> > > >
> > > >
> > >
> > >
> >
> >
>
>

Reply via email to