You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Martin Gainty <mg...@hotmail.com> on 2009/09/13 04:11:25 UTC

3.0 Maven Model Builder Failure


[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Model Builder
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
Downloading: file:///D:\Maven-plugin/org/codehaus/plexus/plexus-container-defaul
t/1.2.1-SNAPSHOT/plexus-container-default-1.2.1-SNAPSHOT.pom
[INFO] Unable to find resource 'org.codehaus.plexus:plexus-container-default:pom
:1.2.1-SNAPSHOT' in repository oss (file:///D:\Maven-plugin)
Downloading: http://repository.apache.org/snapshots/org/codehaus/plexus/plexus-c
ontainer-default/1.2.1-SNAPSHOT/plexus-container-default-1.2.1-SNAPSHOT.pom
[INFO] Unable to find resource 'org.codehaus.plexus:plexus-container-default:pom
:1.2.1-SNAPSHOT' in repository apache.snapshots (http://repository.apache.org/sn
apshots)
[INFO] [remote-resources:process {execution: default}]
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] org.apache.maven.model.Repository cannot be cast to org.apache.maven.arti
fact.repository.ArtifactRepository
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.ClassCastException: org.apache.maven.model.Repository cannot be cast t
o org.apache.maven.artifact.repository.ArtifactRepository
        at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetada
taManager.mergeMetadata(DefaultRepositoryMetadataManager.java:193)
        at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetada
taManager.resolve(DefaultRepositoryMetadataManager.java:166)
        at org.apache.maven.artifact.transform.AbstractVersionTransformation.res
olveVersion(AbstractVersionTransformation.java:65)
        at org.apache.maven.artifact.transform.SnapshotTransformation.transformF
orResolve(SnapshotTransformation.java:63)
        at org.apache.maven.artifact.transform.DefaultArtifactTransformationMana
ger.transformForResolve(DefaultArtifactTransformationManager.java:55)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:145)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:90)
        at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
sitory(DefaultMavenProjectBuilder.java:558)
        at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromReposito
ry(DefaultMavenProjectBuilder.java:251)
        at org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.g
etProjects(ProcessRemoteResourcesMojo.java:404)
        at org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.e
xecute(ProcessRemoteResourcesMojo.java:272)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:490)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:694)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:556)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:535)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:387)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:348)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:6
0)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        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: 13 seconds
[INFO] Finished at: Sat Sep 12 23:11:03 GMT+1 2009
 
Any idea what causes the fail?
thanks,
Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.



_________________________________________________________________
Hotmail: Free, trusted and rich email service.
http://clk.atdmt.com/GBL/go/171222984/direct/01/

Re: 3.0 Maven Model Builder Failure

Posted by Benjamin Bentmann <be...@udo.edu>.
Martin Gainty wrote:

> [INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plu
> gins:maven-remote-resources-plugin:1.0:process': Unable to load the mojo 'org.ap
> ache.maven.plugins:maven-remote-resources-plugin:1.0:process' in the plugin 'org
> .apache.maven.plugins:maven-remote-resources-plugin'. A required class is missin
> g: org/apache/velocity/context/Context
> org.apache.velocity.context.Context

So now you hoped to another issue? What changed since your first error 
report? Again, we're missing information about the context.

> the solution seems to be to repackage maven-remote-resources-plugin-1.0.jar with Download.jar at
> http://www.java2s.com/Code/Jar/MNOPQR/Downloadmavendownloader10jar.htm
> i have a feeling that sticking in all these missing classes into maven-remote-resources-plugin-1.0.jar
> is not the right solution but i dont know a alternative

As can be seen in the maven-remote-resources-plugin-1.0.pom [0], both 
velocity-dep:1.4 and maven-downloader:1.1 are declared as dependencies 
of the plugin, so the question is why are those classes actually missing 
in the plugin class path for you?

One reason could be that Maven downloaded some broken POMs/JARs, AFAIK 
certain HTTP error pages occasionally make it into the local repo. So 
you should retry after wiping out your local repo, and pay attention to 
checksum failures while Maven re-downloads.


Benjamin


[0] 
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-remote-resources-plugin/1.0/maven-remote-resources-plugin-1.0.pom

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


RE: 3.0 Maven Model Builder Failure

Posted by Martin Gainty <mg...@hotmail.com>.
this realm = plexus.core
urls[0] = file:/C:/Maven/apache-maven-2.2.1/bin/../lib/maven-2.2.1-uber.jar
Number of imports: 10
import: org.codehaus.classworlds.Entry@a6c57a42
import: org.codehaus.classworlds.Entry@12f43f3b
import: org.codehaus.classworlds.Entry@20025374
import: org.codehaus.classworlds.Entry@f8e44ca4
import: org.codehaus.classworlds.Entry@92758522
import: org.codehaus.classworlds.Entry@ebf2705b
import: org.codehaus.classworlds.Entry@bb25e54
import: org.codehaus.classworlds.Entry@bece5185
import: org.codehaus.classworlds.Entry@3fee8e37
import: org.codehaus.classworlds.Entry@3fee19d8
-----------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plu
gins:maven-remote-resources-plugin:1.0:process': Unable to load the mojo 'org.ap
ache.maven.plugins:maven-remote-resources-plugin:1.0:process' in the plugin 'org
.apache.maven.plugins:maven-remote-resources-plugin'. A required class is missin
g: org/apache/velocity/context/Context
org.apache.velocity.context.Context
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the pl
ugin manager executing goal 'org.apache.maven.plugins:maven-remote-resources-plu
gin:1.0:process': Unable to load the mojo 'org.apache.maven.plugins:maven-remote
-resources-plugin:1.0:process' in the plugin 'org.apache.maven.plugins:maven-rem
ote-resources-plugin'. A required class is missing: org/apache/velocity/context/
Context
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:698)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:556)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:535)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:387)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:348)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:6
0)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        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: org.apache.maven.plugin.PluginManagerException: Unable to load the mo
jo 'org.apache.maven.plugins:maven-remote-resources-plugin:1.0:process' in the p
lugin 'org.apache.maven.plugins:maven-remote-resources-plugin'. A required class
 is missing: org/apache/velocity/context/Context
        at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul
tPluginManager.java:669)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:468)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:694)
        ... 17 more
Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupExc
eption: Unable to lookup component 'org.apache.maven.plugin.Mojoorg.apache.maven
.plugins:maven-remote-resources-plugin:1.0:process', it could not be created
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
ner.java:335)
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
ner.java:440)
        at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul
tPluginManager.java:652)
        ... 19 more
Caused by: org.codehaus.plexus.component.factory.ComponentInstantiationException
: Could not instanciate component: role: 'null', implementation: 'org.apache.mav
en.plugin.resources.remote.ProcessRemoteResourcesMojo'
        at org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeE
xception(JavaComponentFactory.java:77)
        at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newIn
stance(JavaComponentFactory.java:62)
        at org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(De
faultPlexusContainer.java:1464)
        at org.codehaus.plexus.component.manager.AbstractComponentManager.create
ComponentInstance(AbstractComponentManager.java:93)
        at org.codehaus.plexus.component.manager.PerLookupComponentManager.getCo
mponent(PerLookupComponentManager.java:48)
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
ner.java:331)
        ... 21 more
Caused by: java.lang.NoClassDefFoundError: org/apache/velocity/context/Context
        at java.lang.Class.getDeclaredConstructors0(Native Method)
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
        at java.lang.Class.getConstructor0(Class.java:2699)
        at java.lang.Class.newInstance0(Class.java:326)
        at java.lang.Class.newInstance(Class.java:308)
        at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newIn
stance(JavaComponentFactory.java:44)
        ... 25 more
Caused by: java.lang.ClassNotFoundException: org.apache.velocity.context.Context

        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassL
oader.java:195)
        at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassReal
m.java:255)
        at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassReal
m.java:274)
        at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.
java:214)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        ... 31 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Sun Sep 13 23:05:38 GMT-05:00 2009
[INFO] Final Memory: 4M/8M
[INFO] ------------------------------------------------------------------------

MG>i downloaded velocity-1.4.jar and repackaged it in maven-remote-resources-plugin-1.0.jar

C:\Maven\maven-3>mvn -e install
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Apache Maven 3.x
[INFO]   Maven Model
[INFO]   Maven Model Builder
[INFO]   Maven Compat
[INFO]   Maven Plugin API
[INFO]   Maven Core
[INFO]   Maven Embedder
[INFO]   Maven Distribution
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Maven 3.x
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
-----------------------------------------------------
this realm = app0.child-container[org.apache.maven.plugins:maven-remote-resource
s-plugin:1.0]
urls[0] = file:/C:/Documents and Settings/Administrator/.m2/repository/org/apach
e/maven/plugins/maven-remote-resources-plugin/1.0/maven-remote-resources-plugin-
1.0.jar
urls[1] = file:/C:/Documents and Settings/Administrator/.m2/repository/org/codeh
aus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
Number of imports: 10
import: org.codehaus.classworlds.Entry@a6c57a42
import: org.codehaus.classworlds.Entry@12f43f3b
import: org.codehaus.classworlds.Entry@20025374
import: org.codehaus.classworlds.Entry@f8e44ca4
import: org.codehaus.classworlds.Entry@92758522
import: org.codehaus.classworlds.Entry@ebf2705b
import: org.codehaus.classworlds.Entry@bb25e54
import: org.codehaus.classworlds.Entry@bece5185
import: org.codehaus.classworlds.Entry@3fee8e37
import: org.codehaus.classworlds.Entry@3fee19d8


this realm = plexus.core
urls[0] = file:/C:/Maven/apache-maven-2.2.1/bin/../lib/maven-2.2.1-uber.jar
Number of imports: 10
import: org.codehaus.classworlds.Entry@a6c57a42
import: org.codehaus.classworlds.Entry@12f43f3b
import: org.codehaus.classworlds.Entry@20025374
import: org.codehaus.classworlds.Entry@f8e44ca4
import: org.codehaus.classworlds.Entry@92758522
import: org.codehaus.classworlds.Entry@ebf2705b
import: org.codehaus.classworlds.Entry@bb25e54
import: org.codehaus.classworlds.Entry@bece5185
import: org.codehaus.classworlds.Entry@3fee8e37
import: org.codehaus.classworlds.Entry@3fee19d8
-----------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plu
gins:maven-remote-resources-plugin:1.0:process': Unable to load the mojo 'org.ap
ache.maven.plugins:maven-remote-resources-plugin:1.0:process' in the plugin 'org
.apache.maven.plugins:maven-remote-resources-plugin'. A required class is missin
g: org/apache/maven/shared/downloader/DownloadNotFoundException
org.apache.maven.shared.downloader.DownloadNotFoundException
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the pl
ugin manager executing goal 'org.apache.maven.plugins:maven-remote-resources-plu
gin:1.0:process': Unable to load the mojo 'org.apache.maven.plugins:maven-remote
-resources-plugin:1.0:process' in the plugin 'org.apache.maven.plugins:maven-rem
ote-resources-plugin'. A required class is missing: org/apache/maven/shared/down
loader/DownloadNotFoundException
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:698)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:556)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:535)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:387)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:348)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:6
0)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        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: org.apache.maven.plugin.PluginManagerException: Unable to load the mo
jo 'org.apache.maven.plugins:maven-remote-resources-plugin:1.0:process' in the p
lugin 'org.apache.maven.plugins:maven-remote-resources-plugin'. A required class
 is missing: org/apache/maven/shared/downloader/DownloadNotFoundException
        at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul
tPluginManager.java:669)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:468)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:694)
        ... 17 more
Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupExc
eption: Unable to lookup component 'org.apache.maven.plugin.Mojoorg.apache.maven
.plugins:maven-remote-resources-plugin:1.0:process', it could not be created
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
ner.java:335)
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
ner.java:440)
        at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul
tPluginManager.java:652)
        ... 19 more
Caused by: org.codehaus.plexus.component.factory.ComponentInstantiationException
: Could not instanciate component: role: 'null', implementation: 'org.apache.mav
en.plugin.resources.remote.ProcessRemoteResourcesMojo'
        at org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeE
xception(JavaComponentFactory.java:77)
        at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newIn
stance(JavaComponentFactory.java:62)
        at org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(De
faultPlexusContainer.java:1464)
        at org.codehaus.plexus.component.manager.AbstractComponentManager.create
ComponentInstance(AbstractComponentManager.java:93)
        at org.codehaus.plexus.component.manager.PerLookupComponentManager.getCo
mponent(PerLookupComponentManager.java:48)
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
ner.java:331)
        ... 21 more
Caused by: java.lang.NoClassDefFoundError: org/apache/maven/shared/downloader/Do
wnloadNotFoundException
        at java.lang.Class.getDeclaredConstructors0(Native Method)
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
        at java.lang.Class.getConstructor0(Class.java:2699)
        at java.lang.Class.newInstance0(Class.java:326)
        at java.lang.Class.newInstance(Class.java:308)
        at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newIn
stance(JavaComponentFactory.java:44)
        ... 25 more
Caused by: java.lang.ClassNotFoundException: org.apache.maven.shared.downloader.
DownloadNotFoundException
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassL
oader.java:195)
        at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassReal
m.java:255)
        at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassReal
m.java:274)
        at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.
java:214)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        ... 31 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second

the solution seems to be to repackage maven-remote-resources-plugin-1.0.jar with Download.jar at
http://www.java2s.com/Code/Jar/MNOPQR/Downloadmavendownloader10jar.htm
i have a feeling that sticking in all these missing classes into maven-remote-resources-plugin-1.0.jar
is not the right solution but i dont know a alternative 

BTW: i installed and deployed velocity jar to my local-repo and the reactor bypassed it
i dont see scope or profiles to enable or disable this dependency so why is velocity.jar being skipped?

maven-3/pom.xml

  <dependencyManagement>
    <!--bootstrap-end-comment-->
    <dependencies>
      <!--  Maven Modules -->
      <dependency>
       <artifactId>velocity</artifactId>
       <groupId>org.apache.velocity</groupId>
       <version>1.4</version>
      </dependency>

?
Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




From: mgainty@hotmail.com
To: dev@maven.apache.org
Subject: RE: 3.0 Maven Model Builder Failure
Date: Sun, 13 Sep 2009 08:16:37 -0400








Jason

i downloaded maven-3.0 full
at command line ran 
mvn -e -X install

i'll see if if can narrow down the failure

bedankt
Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Subject: Re: 3.0 Maven Model Builder Failure
> From: jvanzyl@sonatype.com
> Date: Sun, 13 Sep 2009 09:45:49 +0100
> To: dev@maven.apache.org
> 
> Not really useful.
> 
> Please make a test project so that we can reproduce and create an IT  
> for it.
> 
> On 2009-09-13, at 3:11 AM, Martin Gainty wrote:
> 
> >
> >
> > [INFO]  
> > ------------------------------------------------------------------------
> > [INFO] Building Maven Model Builder
> > [INFO]    task-segment: [install]
> > [INFO]  
> > ------------------------------------------------------------------------
> > Downloading: file:///D:\Maven-plugin/org/codehaus/plexus/plexus-container-defaul
> > t/1.2.1-SNAPSHOT/plexus-container-default-1.2.1-SNAPSHOT.pom
> > [INFO] Unable to find resource 'org.codehaus.plexus:plexus-container- 
> > default:pom
> > :1.2.1-SNAPSHOT' in repository oss (file:///D:\Maven-plugin)
> > Downloading: http://repository.apache.org/snapshots/org/codehaus/plexus/plexus-c
> > ontainer-default/1.2.1-SNAPSHOT/plexus-container-default-1.2.1- 
> > SNAPSHOT.pom
> > [INFO] Unable to find resource 'org.codehaus.plexus:plexus-container- 
> > default:pom
> > :1.2.1-SNAPSHOT' in repository apache.snapshots (http://repository.apache.org/sn
> > apshots)
> > [INFO] [remote-resources:process {execution: default}]
> > [INFO]  
> > ------------------------------------------------------------------------
> > [ERROR] FATAL ERROR
> > [INFO]  
> > ------------------------------------------------------------------------
> > [INFO] org.apache.maven.model.Repository cannot be cast to  
> > org.apache.maven.arti
> > fact.repository.ArtifactRepository
> > [INFO]  
> > ------------------------------------------------------------------------
> > [INFO] Trace
> > java.lang.ClassCastException: org.apache.maven.model.Repository  
> > cannot be cast t
> > o org.apache.maven.artifact.repository.ArtifactRepository
> >        at  
> > org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetada
> > taManager.mergeMetadata(DefaultRepositoryMetadataManager.java:193)
> >        at  
> > org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetada
> > taManager.resolve(DefaultRepositoryMetadataManager.java:166)
> >        at  
> > org.apache.maven.artifact.transform.AbstractVersionTransformation.res
> > olveVersion(AbstractVersionTransformation.java:65)
> >        at  
> > org.apache.maven.artifact.transform.SnapshotTransformation.transformF
> > orResolve(SnapshotTransformation.java:63)
> >        at  
> > org.apache.maven.artifact.transform.DefaultArtifactTransformationMana
> > ger.transformForResolve(DefaultArtifactTransformationManager.java:55)
> >        at  
> > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> > faultArtifactResolver.java:145)
> >        at  
> > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> > faultArtifactResolver.java:90)
> >        at  
> > org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
> > sitory(DefaultMavenProjectBuilder.java:558)
> >        at  
> > org.apache.maven.project.DefaultMavenProjectBuilder.buildFromReposito
> > ry(DefaultMavenProjectBuilder.java:251)
> >        at  
> > org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.g
> > etProjects(ProcessRemoteResourcesMojo.java:404)
> >        at  
> > org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.e
> > xecute(ProcessRemoteResourcesMojo.java:272)
> >        at org.apache.maven.plugin.DefaultPluginManager.executeMojo 
> > (DefaultPlugi
> > nManager.java:490)
> >        at  
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> > ultLifecycleExecutor.java:694)
> >        at  
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
> > fecycle(DefaultLifecycleExecutor.java:556)
> >        at  
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
> > ltLifecycleExecutor.java:535)
> >        at  
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
> > dleFailures(DefaultLifecycleExecutor.java:387)
> >        at  
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
> > ts(DefaultLifecycleExecutor.java:348)
> >        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute 
> > (DefaultLi
> > fecycleExecutor.java:180)
> >        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java: 
> > 328)
> >        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> >        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> >        at org.apache.maven.cli.compat.CompatibleMain.main 
> > (CompatibleMain.java:6
> > 0)
> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >        at sun.reflect.NativeMethodAccessorImpl.invoke 
> > (NativeMethodAccessorImpl.
> > java:39)
> >        at sun.reflect.DelegatingMethodAccessorImpl.invoke 
> > (DelegatingMethodAcces
> > sorImpl.java:25)
> >        at java.lang.reflect.Method.invoke(Method.java:597)
> >        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: 13 seconds
> > [INFO] Finished at: Sat Sep 12 23:11:03 GMT+1 2009
> >
> > Any idea what causes the fail?
> > thanks,
> > Martin Gainty
> > ______________________________________________
> > Verzicht und Vertraulichkeitanmerkung/Note de déni et de  
> > confidentialité
> >
> > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene  
> > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede  
> > unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig.  
> > Diese Nachricht dient lediglich dem Austausch von Informationen und  
> > entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten  
> > Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den  
> > Inhalt uebernehmen.
> > Ce message est confidentiel et peut être privilégié. Si vous n'êtes  
> > pas le destinataire prévu, nous te demandons avec bonté que pour  
> > satisfaire informez l'expéditeur. N'importe quelle diffusion non  
> > autorisée ou la copie de ceci est interdite. Ce message sert à  
> > l'information seulement et n'aura pas n'importe quel effet  
> > légalement obligatoire. Étant donné que les email peuvent facilement  
> > être sujets à la manipulation, nous ne pouvons accepter aucune  
> > responsabilité pour le contenu fourni.
> >
> >
> >
> > _________________________________________________________________
> > Hotmail: Free, trusted and rich email service.
> > http://clk.atdmt.com/GBL/go/171222984/direct/01/
> 
> Thanks,
> 
> Jason
> 
> ----------------------------------------------------------
> Jason van Zyl
> Founder,  Apache Maven
> http://twitter.com/jvanzyl
> http://twitter.com/SonatypeNexus
> http://twitter.com/SonatypeM2E
> ----------------------------------------------------------
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
> 

Hotmail: Powerful Free email with security by Microsoft. Get it now.
_________________________________________________________________
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
http://clk.atdmt.com/GBL/go/171222985/direct/01/

RE: 3.0 Maven Model Builder Failure

Posted by Martin Gainty <mg...@hotmail.com>.
after diving into the build routines and turning on -X 
i narrowed down to  plugin.xml version mismatch since the version i am working with is 1.0 i corrected to
<version>1.0</version>
and the version mismatch errors are resolved

velocity classes missing for remote-resources-plugin 1.1-SNAPSHOT

should I repackage the velocity classes into remote-resources-plugin ?
or should i add it as a dependency ?
if so where?

thanks
Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Mon, 14 Sep 2009 11:25:08 +0200
> From: benjamin.bentmann@udo.edu
> To: dev@maven.apache.org
> Subject: Re: 3.0 Maven Model Builder Failure
> 
> Martin Gainty wrote:
> 
> > i downloaded maven-3.0 full
> > at command line ran 
> > mvn -e -X install
> 
> I don't want to sound rude but those few lines aren't really helpful either.
> 
> You "downloaded maven-3.0 full", is that "downloaded" as in you 
> downloaded some source/binary archive from some URL, or more as in you 
> checked out some SVN URL?
> 
> You ran "mvn -e -X install". Which version of Maven was that, the 
> "maven-3.0 full" you just downloaded or something else?
> 
> What I wanted to illustrate is that the given information doesn't allow 
> us to reproduce your issue, making proper assistance impossible. I can 
> imagine that it might be hard to consider all the pieces that somebody 
> else needs to reproduce an issue. For a case like this where you're 
> building Maven itself the best I can suggest is to provide instructions 
> that are as detailed that we could create a CI job from them.
> 
> Maven being a build tool, the minimum of information required to analyze 
> build errors are:
> 
> - the project sources including but not limited to a complete POM, 
> either given by a SCM URL + Revision or a ready-made archive to unpack
> 
> - the sequence of Maven commands that were executed on the project, for 
> multi-module projects also indicating the working directory for each 
> command, last but not least, the version of Maven being used
> 
> - especially for issues related to dependency resolution, some infos 
> about the network infrastructure, configured repos, mirrors, proxies, 
> authentication yes/no
> 
> - the JDK (vendor/version) being used to run Maven
> 
> Maven's trunk is building fine on CI [0] so what's the difference 
> between our CI and your environment?
> 
> 
> Benjamin
> 
> 
> [0] https://grid.sonatype.org/ci/job/maven-3.0.x/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
> 

_________________________________________________________________
Bing brings you health info from trusted sources.
http://www.bing.com/search?q=pet+allergy&form=MHEINA&publ=WLHMTAG&crea=TXT_MHEINA_Health_Health_PetAllergy_1x1

Re: 3.0 Maven Model Builder Failure

Posted by Benjamin Bentmann <be...@udo.edu>.
Martin Gainty wrote:

> i downloaded maven-3.0 full
> at command line ran 
> mvn -e -X install

I don't want to sound rude but those few lines aren't really helpful either.

You "downloaded maven-3.0 full", is that "downloaded" as in you 
downloaded some source/binary archive from some URL, or more as in you 
checked out some SVN URL?

You ran "mvn -e -X install". Which version of Maven was that, the 
"maven-3.0 full" you just downloaded or something else?

What I wanted to illustrate is that the given information doesn't allow 
us to reproduce your issue, making proper assistance impossible. I can 
imagine that it might be hard to consider all the pieces that somebody 
else needs to reproduce an issue. For a case like this where you're 
building Maven itself the best I can suggest is to provide instructions 
that are as detailed that we could create a CI job from them.

Maven being a build tool, the minimum of information required to analyze 
build errors are:

- the project sources including but not limited to a complete POM, 
either given by a SCM URL + Revision or a ready-made archive to unpack

- the sequence of Maven commands that were executed on the project, for 
multi-module projects also indicating the working directory for each 
command, last but not least, the version of Maven being used

- especially for issues related to dependency resolution, some infos 
about the network infrastructure, configured repos, mirrors, proxies, 
authentication yes/no

- the JDK (vendor/version) being used to run Maven

Maven's trunk is building fine on CI [0] so what's the difference 
between our CI and your environment?


Benjamin


[0] https://grid.sonatype.org/ci/job/maven-3.0.x/

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


RE: 3.0 Maven Model Builder Failure

Posted by Martin Gainty <mg...@hotmail.com>.
Jason

i downloaded maven-3.0 full
at command line ran 
mvn -e -X install

i'll see if if can narrow down the failure

bedankt
Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Subject: Re: 3.0 Maven Model Builder Failure
> From: jvanzyl@sonatype.com
> Date: Sun, 13 Sep 2009 09:45:49 +0100
> To: dev@maven.apache.org
> 
> Not really useful.
> 
> Please make a test project so that we can reproduce and create an IT  
> for it.
> 
> On 2009-09-13, at 3:11 AM, Martin Gainty wrote:
> 
> >
> >
> > [INFO]  
> > ------------------------------------------------------------------------
> > [INFO] Building Maven Model Builder
> > [INFO]    task-segment: [install]
> > [INFO]  
> > ------------------------------------------------------------------------
> > Downloading: file:///D:\Maven-plugin/org/codehaus/plexus/plexus-container-defaul
> > t/1.2.1-SNAPSHOT/plexus-container-default-1.2.1-SNAPSHOT.pom
> > [INFO] Unable to find resource 'org.codehaus.plexus:plexus-container- 
> > default:pom
> > :1.2.1-SNAPSHOT' in repository oss (file:///D:\Maven-plugin)
> > Downloading: http://repository.apache.org/snapshots/org/codehaus/plexus/plexus-c
> > ontainer-default/1.2.1-SNAPSHOT/plexus-container-default-1.2.1- 
> > SNAPSHOT.pom
> > [INFO] Unable to find resource 'org.codehaus.plexus:plexus-container- 
> > default:pom
> > :1.2.1-SNAPSHOT' in repository apache.snapshots (http://repository.apache.org/sn
> > apshots)
> > [INFO] [remote-resources:process {execution: default}]
> > [INFO]  
> > ------------------------------------------------------------------------
> > [ERROR] FATAL ERROR
> > [INFO]  
> > ------------------------------------------------------------------------
> > [INFO] org.apache.maven.model.Repository cannot be cast to  
> > org.apache.maven.arti
> > fact.repository.ArtifactRepository
> > [INFO]  
> > ------------------------------------------------------------------------
> > [INFO] Trace
> > java.lang.ClassCastException: org.apache.maven.model.Repository  
> > cannot be cast t
> > o org.apache.maven.artifact.repository.ArtifactRepository
> >        at  
> > org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetada
> > taManager.mergeMetadata(DefaultRepositoryMetadataManager.java:193)
> >        at  
> > org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetada
> > taManager.resolve(DefaultRepositoryMetadataManager.java:166)
> >        at  
> > org.apache.maven.artifact.transform.AbstractVersionTransformation.res
> > olveVersion(AbstractVersionTransformation.java:65)
> >        at  
> > org.apache.maven.artifact.transform.SnapshotTransformation.transformF
> > orResolve(SnapshotTransformation.java:63)
> >        at  
> > org.apache.maven.artifact.transform.DefaultArtifactTransformationMana
> > ger.transformForResolve(DefaultArtifactTransformationManager.java:55)
> >        at  
> > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> > faultArtifactResolver.java:145)
> >        at  
> > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> > faultArtifactResolver.java:90)
> >        at  
> > org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
> > sitory(DefaultMavenProjectBuilder.java:558)
> >        at  
> > org.apache.maven.project.DefaultMavenProjectBuilder.buildFromReposito
> > ry(DefaultMavenProjectBuilder.java:251)
> >        at  
> > org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.g
> > etProjects(ProcessRemoteResourcesMojo.java:404)
> >        at  
> > org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.e
> > xecute(ProcessRemoteResourcesMojo.java:272)
> >        at org.apache.maven.plugin.DefaultPluginManager.executeMojo 
> > (DefaultPlugi
> > nManager.java:490)
> >        at  
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> > ultLifecycleExecutor.java:694)
> >        at  
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
> > fecycle(DefaultLifecycleExecutor.java:556)
> >        at  
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
> > ltLifecycleExecutor.java:535)
> >        at  
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
> > dleFailures(DefaultLifecycleExecutor.java:387)
> >        at  
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
> > ts(DefaultLifecycleExecutor.java:348)
> >        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute 
> > (DefaultLi
> > fecycleExecutor.java:180)
> >        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java: 
> > 328)
> >        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> >        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> >        at org.apache.maven.cli.compat.CompatibleMain.main 
> > (CompatibleMain.java:6
> > 0)
> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >        at sun.reflect.NativeMethodAccessorImpl.invoke 
> > (NativeMethodAccessorImpl.
> > java:39)
> >        at sun.reflect.DelegatingMethodAccessorImpl.invoke 
> > (DelegatingMethodAcces
> > sorImpl.java:25)
> >        at java.lang.reflect.Method.invoke(Method.java:597)
> >        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: 13 seconds
> > [INFO] Finished at: Sat Sep 12 23:11:03 GMT+1 2009
> >
> > Any idea what causes the fail?
> > thanks,
> > Martin Gainty
> > ______________________________________________
> > Verzicht und Vertraulichkeitanmerkung/Note de déni et de  
> > confidentialité
> >
> > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene  
> > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede  
> > unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig.  
> > Diese Nachricht dient lediglich dem Austausch von Informationen und  
> > entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten  
> > Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den  
> > Inhalt uebernehmen.
> > Ce message est confidentiel et peut être privilégié. Si vous n'êtes  
> > pas le destinataire prévu, nous te demandons avec bonté que pour  
> > satisfaire informez l'expéditeur. N'importe quelle diffusion non  
> > autorisée ou la copie de ceci est interdite. Ce message sert à  
> > l'information seulement et n'aura pas n'importe quel effet  
> > légalement obligatoire. Étant donné que les email peuvent facilement  
> > être sujets à la manipulation, nous ne pouvons accepter aucune  
> > responsabilité pour le contenu fourni.
> >
> >
> >
> > _________________________________________________________________
> > Hotmail: Free, trusted and rich email service.
> > http://clk.atdmt.com/GBL/go/171222984/direct/01/
> 
> Thanks,
> 
> Jason
> 
> ----------------------------------------------------------
> Jason van Zyl
> Founder,  Apache Maven
> http://twitter.com/jvanzyl
> http://twitter.com/SonatypeNexus
> http://twitter.com/SonatypeM2E
> ----------------------------------------------------------
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
> 

_________________________________________________________________
Hotmail: Powerful Free email with security by Microsoft.
http://clk.atdmt.com/GBL/go/171222986/direct/01/

Re: 3.0 Maven Model Builder Failure

Posted by Jason van Zyl <jv...@sonatype.com>.
Not really useful.

Please make a test project so that we can reproduce and create an IT  
for it.

On 2009-09-13, at 3:11 AM, Martin Gainty wrote:

>
>
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] Building Maven Model Builder
> [INFO]    task-segment: [install]
> [INFO]  
> ------------------------------------------------------------------------
> Downloading: file:///D:\Maven-plugin/org/codehaus/plexus/plexus-container-defaul
> t/1.2.1-SNAPSHOT/plexus-container-default-1.2.1-SNAPSHOT.pom
> [INFO] Unable to find resource 'org.codehaus.plexus:plexus-container- 
> default:pom
> :1.2.1-SNAPSHOT' in repository oss (file:///D:\Maven-plugin)
> Downloading: http://repository.apache.org/snapshots/org/codehaus/plexus/plexus-c
> ontainer-default/1.2.1-SNAPSHOT/plexus-container-default-1.2.1- 
> SNAPSHOT.pom
> [INFO] Unable to find resource 'org.codehaus.plexus:plexus-container- 
> default:pom
> :1.2.1-SNAPSHOT' in repository apache.snapshots (http://repository.apache.org/sn
> apshots)
> [INFO] [remote-resources:process {execution: default}]
> [INFO]  
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] org.apache.maven.model.Repository cannot be cast to  
> org.apache.maven.arti
> fact.repository.ArtifactRepository
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.ClassCastException: org.apache.maven.model.Repository  
> cannot be cast t
> o org.apache.maven.artifact.repository.ArtifactRepository
>        at  
> org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetada
> taManager.mergeMetadata(DefaultRepositoryMetadataManager.java:193)
>        at  
> org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetada
> taManager.resolve(DefaultRepositoryMetadataManager.java:166)
>        at  
> org.apache.maven.artifact.transform.AbstractVersionTransformation.res
> olveVersion(AbstractVersionTransformation.java:65)
>        at  
> org.apache.maven.artifact.transform.SnapshotTransformation.transformF
> orResolve(SnapshotTransformation.java:63)
>        at  
> org.apache.maven.artifact.transform.DefaultArtifactTransformationMana
> ger.transformForResolve(DefaultArtifactTransformationManager.java:55)
>        at  
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> faultArtifactResolver.java:145)
>        at  
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> faultArtifactResolver.java:90)
>        at  
> org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
> sitory(DefaultMavenProjectBuilder.java:558)
>        at  
> org.apache.maven.project.DefaultMavenProjectBuilder.buildFromReposito
> ry(DefaultMavenProjectBuilder.java:251)
>        at  
> org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.g
> etProjects(ProcessRemoteResourcesMojo.java:404)
>        at  
> org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.e
> xecute(ProcessRemoteResourcesMojo.java:272)
>        at org.apache.maven.plugin.DefaultPluginManager.executeMojo 
> (DefaultPlugi
> nManager.java:490)
>        at  
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:694)
>        at  
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
> fecycle(DefaultLifecycleExecutor.java:556)
>        at  
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
> ltLifecycleExecutor.java:535)
>        at  
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
> dleFailures(DefaultLifecycleExecutor.java:387)
>        at  
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
> ts(DefaultLifecycleExecutor.java:348)
>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute 
> (DefaultLi
> fecycleExecutor.java:180)
>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java: 
> 328)
>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>        at org.apache.maven.cli.compat.CompatibleMain.main 
> (CompatibleMain.java:6
> 0)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.
> java:39)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAcces
> sorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        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: 13 seconds
> [INFO] Finished at: Sat Sep 12 23:11:03 GMT+1 2009
>
> Any idea what causes the fail?
> thanks,
> Martin Gainty
> ______________________________________________
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de  
> confidentialité
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene  
> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede  
> unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig.  
> Diese Nachricht dient lediglich dem Austausch von Informationen und  
> entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten  
> Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den  
> Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes  
> pas le destinataire prévu, nous te demandons avec bonté que pour  
> satisfaire informez l'expéditeur. N'importe quelle diffusion non  
> autorisée ou la copie de ceci est interdite. Ce message sert à  
> l'information seulement et n'aura pas n'importe quel effet  
> légalement obligatoire. Étant donné que les email peuvent facilement  
> être sujets à la manipulation, nous ne pouvons accepter aucune  
> responsabilité pour le contenu fourni.
>
>
>
> _________________________________________________________________
> Hotmail: Free, trusted and rich email service.
> http://clk.atdmt.com/GBL/go/171222984/direct/01/

Thanks,

Jason

----------------------------------------------------------
Jason van Zyl
Founder,  Apache Maven
http://twitter.com/jvanzyl
http://twitter.com/SonatypeNexus
http://twitter.com/SonatypeM2E
----------------------------------------------------------


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


Re: 3.0 Maven Model Builder Failure

Posted by Benjamin Bentmann <be...@udo.edu>.
Martin Gainty wrote:

> java.lang.ClassCastException: org.apache.maven.model.Repository cannot be cast to org.apache.maven.artifact.repository.ArtifactRepository

Among the top-10 Google results for "ClassCastException: 
org.apache.maven.model.Repository" I get:

   http://jira.codehaus.org/browse/MRRESOURCES-35

which leaves me at guessing what source code you actually try to build. 
The trunk of Maven 3.x is using version 1.1-SNAPSHOT of the 
maven-remote-resources-plugin for quite some time.


Benjamin

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