`

异常,求解决方案

阅读更多

[FATAL ERROR] Container realm = plexus.core
urls[0] = file:/D:/apache-maven-2.2.1/lib/maven-2.2.1-uber.jar
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] loader constraint violation: when resolving method "org.codehaus.plexus.interpolation.StringSearchInterpolator.addValueSource(Lorg/codehaus/plexus/interpolation/ValueSource;)V" the class loader (instance of org/codehaus/classworlds/RealmClassLoader) of the current class, org/apache/maven/shared/filtering/DefaultMavenFileFilter$1, and the class loader (instance of org/codehaus/classworlds/RealmClassLoader) for resolved class, org/codehaus/plexus/interpolation/StringSearchInterpolator, have different Class objects for the type org/codehaus/plexus/interpolation/ValueSource used in the signature
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.LinkageError: loader constraint violation: when resolving method "org.codehaus.plexus.interpolation.StringSearchInterpolator.addValueSource(Lorg/codehaus/plexus/interpolation/ValueSource;)V" the class loader (instance of org/codehaus/classworlds/RealmClassLoader) of the current class, org/apache/maven/shared/filtering/DefaultMavenFileFilter$1, and the class loader (instance of org/codehaus/classworlds/RealmClassLoader) for resolved class, org/codehaus/plexus/interpolation/StringSearchInterpolator, have different Class objects for the type org/codehaus/plexus/interpolation/ValueSource used in the signature
at org.apache.maven.shared.filtering.DefaultMavenFileFilter$1.getReader(DefaultMavenFileFilter.java:175)
at org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:2036)
at org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:1987)
at org.apache.maven.shared.filtering.DefaultMavenFileFilter.copyFile(DefaultMavenFileFilter.java:83)
at org.apa
引用
che.maven.shared.filtering.DefaultMavenResourcesFiltering.filterResources(DefaultMavenResourcesFiltering.java:293)
at org.apache.maven.plugin.resources.ResourcesMojo.execute(ResourcesMojo.java:162)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.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:60)
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: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: 2 seconds
[INFO] Finished at: Thu Aug 23 10:27:23 CST 2012
[INFO] Final Memory: 11M/28M
[INFO] ------------------------------------------------------------------------
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics