fresh archetype gives java.lang.NoClassDefFoundError: org/codehaus/plexus/util/StringUtils on Mac OS X

238 weergaven
Naar het eerste ongelezen bericht

Arthur Kalmenson

ongelezen,
21 okt 2008, 20:54:3021-10-2008
aan gwt-...@googlegroups.com
Hello everyone,

I just used the archetype to create a new project on Mac OS X Leopard
and I ran the gwt:gwt goal right after creating it. I got the
following error:

zeus:test arthur$ mvn gwt:gwt
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'gwt'.
[INFO] ----------------------------------------------------------------------------
[INFO] Building gwt-maven-archetype-project
[INFO] task-segment: [gwt:gwt]
[INFO] ----------------------------------------------------------------------------
[INFO] Preparing gwt:gwt
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[WARNING] POM for 'com.google.gwt:gwt-servlet:pom:1.5.2:runtime' is
invalid. It will be ignored for artifact resolution. Reason: Not a
v4.0.0 POM.
[INFO] [compiler:compile]
[INFO] Compiling 1 source file to /Users/arthur/Tmp/test/target/classes
[WARNING] POM for 'org.codehaus.plexus:plexus-utils:pom:1.4.6:runtime'
is invalid. It will be ignored for artifact resolution. Reason: Not a
v4.0.0 POM.
[WARNING] POM for 'org.codehaus.plexus:plexus-utils:pom:1.4.6:runtime'
is invalid. It will be ignored for artifact resolution. Reason: Not a
v4.0.0 POM.
[WARNING] POM for 'org.codehaus.plexus:plexus-utils:pom:1.4.6:runtime'
is invalid. It will be ignored for artifact resolution. Reason: Not a
v4.0.0 POM.
[WARNING] POM for 'org.codehaus.plexus:plexus-utils:pom:1.4.6:runtime'
is invalid. It will be ignored for artifact resolution. Reason: Not a
v4.0.0 POM.
[WARNING] POM for 'org.codehaus.plexus:plexus-utils:pom:1.4.6:runtime'
is invalid. It will be ignored for artifact resolution. Reason: Not a
v4.0.0 POM.
[WARNING] POM for 'org.codehaus.plexus:plexus-utils:pom:1.4.6:runtime'
is invalid. It will be ignored for artifact resolution. Reason: Not a
v4.0.0 POM.
[WARNING] POM for 'org.codehaus.plexus:plexus-utils:pom:1.4.6:runtime'
is invalid. It will be ignored for artifact resolution. Reason: Not a
v4.0.0 POM.
[WARNING] POM for 'org.codehaus.plexus:plexus-utils:pom:1.4.6:runtime'
is invalid. It will be ignored for artifact resolution. Reason: Not a
v4.0.0 POM.
[WARNING] POM for 'org.codehaus.plexus:plexus-utils:pom:1.4.6:runtime'
is invalid. It will be ignored for artifact resolution. Reason: Not a
v4.0.0 POM.
[WARNING] POM for 'org.codehaus.plexus:plexus-utils:pom:1.4.6:runtime'
is invalid. It will be ignored for artifact resolution. Reason: Not a
v4.0.0 POM.
[WARNING] POM for 'org.codehaus.plexus:plexus-utils:pom:1.4.6:runtime'
is invalid. It will be ignored for artifact resolution. Reason: Not a
v4.0.0 POM.
[WARNING] POM for 'org.codehaus.plexus:plexus-utils:pom:1.4.6:runtime'
is invalid. It will be ignored for artifact resolution. Reason: Not a
v4.0.0 POM.
[WARNING] POM for 'org.codehaus.plexus:plexus-utils:pom:1.4.6:runtime'
is invalid. It will be ignored for artifact resolution. Reason: Not a
v4.0.0 POM.
[INFO] [dependency:unpack {execution: unpack}]
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] org/codehaus/plexus/util/StringUtils
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.NoClassDefFoundError: org/codehaus/plexus/util/StringUtils
at org.apache.maven.plugin.dependency.fromConfiguration.ArtifactItem.toString(ArtifactItem.java:236)
at org.apache.maven.plugin.dependency.fromConfiguration.AbstractFromConfigurationMojo.getProcessedArtifactItems(AbstractFromConfigurationMojo.java:129)
at org.apache.maven.plugin.dependency.fromConfiguration.UnpackMojo.getProcessedArtifactItems(UnpackMojo.java:138)
at org.apache.maven.plugin.dependency.fromConfiguration.UnpackMojo.execute(UnpackMojo.java:88)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:896)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:739)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:510)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
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: 4 seconds
[INFO] Finished at: Tue Oct 21 20:51:53 EDT 2008
[INFO] Final Memory: 13M/27M
[INFO] ------------------------------------------------------------------------

Any ideas why this might be? Thank you in advance.

Regards,
--
Arthur Kalmenson

Charlie Collins

ongelezen,
22 okt 2008, 08:48:5322-10-2008
aan gwt-maven
Ouch. I hate it when the archetype doesn't work, of all things, that
is supposed to be clean and work and get you started . . . and . . .
well on to trying to fix it.

I haven't seen that one before myself, but Googling around it seems
like it may be related to Maven 2.0.4 or earlier stuff, all those
WARNINGs about not being 4.0 POMs are not normal. Could be you are
using some older Maven stuff, or it could be us in the plugin (I
haven't changed the versions of the core Maven and Plexus and so on
stuff in forever). Please run with mvn -X and post all the debug
output, then we should be able to figure it out.

I see several posts like this around:
http://www.mail-archive.com/us...@maven.apache.org/msg90940.html, you
might try it, but to be honest I don't know the what or why there.

Charlie Collins

ongelezen,
22 okt 2008, 08:53:5922-10-2008
aan gwt-maven
One other thought, it might not be that exact file, but you may have a
corrupt file in your repo or something. Try to just move ~/.m2/
repository to ~/.m2/repository.old and then run it again - let it
download all fresh stuff (will take a few minutes). See if that
works, if it does, it's a corrupt repo (and then you can either try
one artifact at a time to see what it is, or just start using the new
repo permanently and delete the old - depends on how much you care
about starting your repo over, etc).

Let me know though, very interested to try to make sure the archetype
is as robust as possible.

On Oct 21, 8:54 pm, "Arthur Kalmenson" <arthur.k...@gmail.com> wrote:

Arthur Kalmenson

ongelezen,
22 okt 2008, 21:22:1322-10-2008
aan gwt-...@googlegroups.com
OK so I tried with a new repo and it worked :). Looks like it was a
corrupt repo.

--
Arthur Kalmenson

Allen beantwoorden
Auteur beantwoorden
Doorsturen
0 nieuwe berichten