java - A required class was missing while executing org.apache.maven.plugins:maven-war-plugin:2.1.1:war -
here clean install -x result:
[info] scanning projects... [info] [info] ------------------------------------------------------------------------ [info] building test maven webapp 0.0.1-snapshot [info] ------------------------------------------------------------------------ [info] [info] --- maven-clean-plugin:2.5:clean (default-clean) @ test --- [info] deleting c:\users\utopcu\workspace\test\target [info] [info] --- maven-resources-plugin:2.6:resources (default-resources) @ test --- [warning] using platform encoding (cp1254 actually) copy filtered resources, i.e. build platform dependent! [info] copying 0 resource [info] [info] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ test --- [info] no sources compile [info] [info] --- maven-resources-plugin:2.6:testresources (default-testresources) @ test --- [warning] using platform encoding (cp1254 actually) copy filtered resources, i.e. build platform dependent! [info] skip non existing resourcedirectory c:\users\utopcu\workspace\test\src\test\resources [info] [info] --- maven-compiler-plugin:2.5.1:testcompile (default-testcompile) @ test --- [info] no sources compile [info] [info] --- maven-surefire-plugin:2.12.4:test (default-test) @ test --- [info] no tests run. [info] [info] --- maven-war-plugin:2.1.1:war (default-war) @ test --- [warning] error injecting: org.apache.maven.plugin.war.warmojo java.lang.noclassdeffounderror: org/apache/maven/shared/filtering/mavenfilteringexception @ java.lang.class.getdeclaredconstructors0(native method) @ java.lang.class.privategetdeclaredconstructors(class.java:2483) @ java.lang.class.getdeclaredconstructors(class.java:1891) @ com.google.inject.spi.injectionpoint.forconstructorof(injectionpoint.java:245) @ com.google.inject.internal.constructorbindingimpl.create(constructorbindingimpl.java:99) @ com.google.inject.internal.injectorimpl.createuninitializedbinding(injectorimpl.java:653) @ com.google.inject.internal.injectorimpl.createjustintimebinding(injectorimpl.java:863) @ com.google.inject.internal.injectorimpl.createjustintimebindingrecursive(injectorimpl.java:790) @ com.google.inject.internal.injectorimpl.getjustintimebinding(injectorimpl.java:278) @ com.google.inject.internal.injectorimpl.getbindingorthrow(injectorimpl.java:210) @ com.google.inject.internal.injectorimpl.getproviderorthrow(injectorimpl.java:986) @ com.google.inject.internal.injectorimpl.getprovider(injectorimpl.java:1019) @ com.google.inject.internal.injectorimpl.getprovider(injectorimpl.java:982) @ com.google.inject.internal.injectorimpl.getinstance(injectorimpl.java:1032) @ org.eclipse.sisu.reflect.abstractdeferredclass.get(abstractdeferredclass.java:44) @ com.google.inject.internal.providerinternalfactory.provision(providerinternalfactory.java:86) @ com.google.inject.internal.internalfactorytoinitializableadapter.provision(internalfactorytoinitializableadapter.java:55) @ com.google.inject.internal.providerinternalfactory$1.call(providerinternalfactory.java:70) @ com.google.inject.internal.provisionlistenerstackcallback$provision.provision(provisionlistenerstackcallback.java:100) @ org.eclipse.sisu.plexus.lifecycles.plexuslifecyclemanager.onprovision(plexuslifecyclemanager.java:134) @ com.google.inject.internal.provisionlistenerstackcallback$provision.provision(provisionlistenerstackcallback.java:109) @ com.google.inject.internal.provisionlistenerstackcallback.provision(provisionlistenerstackcallback.java:55) @ com.google.inject.internal.providerinternalfactory.circularget(providerinternalfactory.java:68) @ com.google.inject.internal.internalfactorytoinitializableadapter.get(internalfactorytoinitializableadapter.java:47) @ com.google.inject.internal.injectorimpl$2$1.call(injectorimpl.java:997) @ com.google.inject.internal.injectorimpl.callincontext(injectorimpl.java:1047) @ com.google.inject.internal.injectorimpl$2.get(injectorimpl.java:993) @ com.google.inject.scopes$1$1.get(scopes.java:59) @ org.eclipse.sisu.locators.lazybeanentry.getvalue(lazybeanentry.java:82) @ org.eclipse.sisu.plexus.locators.lazyplexusbean.getvalue(lazyplexusbean.java:52) @ org.codehaus.plexus.defaultplexuscontainer.lookup(defaultplexuscontainer.java:259) @ org.codehaus.plexus.defaultplexuscontainer.lookup(defaultplexuscontainer.java:251) @ org.apache.maven.plugin.internal.defaultmavenpluginmanager.getconfiguredmojo(defaultmavenpluginmanager.java:459) @ org.apache.maven.plugin.defaultbuildpluginmanager.executemojo(defaultbuildpluginmanager.java:97) @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:208) @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:153) @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:145) @ org.apache.maven.lifecycle.internal.lifecyclemodulebuilder.buildproject(lifecyclemodulebuilder.java:84) @ org.apache.maven.lifecycle.internal.lifecyclemodulebuilder.buildproject(lifecyclemodulebuilder.java:59) @ org.apache.maven.lifecycle.internal.lifecyclestarter.singlethreadedbuild(lifecyclestarter.java:183) @ org.apache.maven.lifecycle.internal.lifecyclestarter.execute(lifecyclestarter.java:161) @ org.apache.maven.defaultmaven.doexecute(defaultmaven.java:318) @ org.apache.maven.defaultmaven.execute(defaultmaven.java:153) @ org.apache.maven.cli.mavencli.execute(mavencli.java:555) @ org.apache.maven.cli.mavencli.domain(mavencli.java:214) @ org.apache.maven.cli.mavencli.main(mavencli.java:158) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:606) @ org.codehaus.plexus.classworlds.launcher.launcher.launchenhanced(launcher.java:290) @ org.codehaus.plexus.classworlds.launcher.launcher.launch(launcher.java:230) @ org.codehaus.plexus.classworlds.launcher.launcher.mainwithexitcode(launcher.java:414) @ org.codehaus.plexus.classworlds.launcher.launcher.main(launcher.java:357) @ org.codehaus.classworlds.launcher.main(launcher.java:47) caused by: java.lang.classnotfoundexception: org.apache.maven.shared.filtering.mavenfilteringexception @ org.codehaus.plexus.classworlds.strategy.selffirststrategy.loadclass(selffirststrategy.java:50) @ org.codehaus.plexus.classworlds.realm.classrealm.loadclass(classrealm.java:244) @ org.codehaus.plexus.classworlds.realm.classrealm.loadclass(classrealm.java:230) ... 55 more [info] ------------------------------------------------------------------------ [info] build failure [info] ------------------------------------------------------------------------ [info] total time: 3.342s [info] finished at: mon aug 26 14:09:27 eest 2013 [info] final memory: 11m/105m [info] ------------------------------------------------------------------------ [error] failed execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project test: execution default-war of goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war failed: required class missing while executing org.apache.maven.plugins:maven-war-plugin:2.1.1:war: org/apache/maven/shared/filtering/mavenfilteringexception [error] ----------------------------------------------------- [error] realm = plugin>org.apache.maven.plugins:maven-war-plugin:2.1.1 [error] strategy = org.codehaus.plexus.classworlds.strategy.selffirststrategy [error] urls[0] = file:/c:/users/utopcu/.m2/repository/org/apache/maven/plugins/maven-war-plugin/2.1.1/maven-war-plugin-2.1.1.jar [error] urls[1] = file:/c:/users/utopcu/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.0.6/maven-reporting-api-2.0.6.jar [error] urls[2] = file:/c:/users/utopcu/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-7/doxia-sink-api-1.0-alpha-7.jar [error] urls[3] = file:/c:/users/utopcu/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar [error] urls[4] = file:/c:/users/utopcu/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar [error] urls[5] = file:/c:/users/utopcu/.m2/repository/org/apache/maven/maven-archiver/2.4.1/maven-archiver-2.4.1.jar [error] urls[6] = file:/c:/users/utopcu/.m2/repository/org/codehaus/plexus/plexus-archiver/1.2/plexus-archiver-1.2.jar [error] urls[7] = file:/c:/users/utopcu/.m2/repository/org/codehaus/plexus/plexus-io/1.0.1/plexus-io-1.0.1.jar [error] urls[8] = file:/c:/users/utopcu/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.13/plexus-interpolation-1.13.jar [error] urls[9] = file:/c:/users/utopcu/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar [error] urls[10] = file:/c:/users/utopcu/.m2/repository/com/thoughtworks/xstream/xstream/1.3.1/xstream-1.3.1.jar [error] urls[11] = file:/c:/users/utopcu/.m2/repository/xpp3/xpp3_min/1.1.4c/xpp3_min-1.1.4c.jar [error] urls[12] = file:/c:/users/utopcu/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.5/plexus-utils-2.0.5.jar [error] urls[13] = file:/c:/users/utopcu/.m2/repository/org/apache/maven/shared/maven-filtering/1.0-beta-2/maven-filtering-1.0-beta-2.jar [error] number of foreign imports: 1 [error] import: entry[import realm classrealm[maven.api, parent: null]] [error] [error] -----------------------------------------------------: org.apache.maven.shared.filtering.mavenfilteringexception [error] -> [help 1] [error] [error] see full stack trace of errors, re-run maven -e switch. [error] re-run maven using -x switch enable full debug logging. [error] [error] more information errors , possible solutions, please read following articles: [error] [help 1] http://cwiki.apache.org/confluence/display/maven/plugincontainerexception
and here pom.xml:
<project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelversion>4.0.0</modelversion> <groupid>trest</groupid> <artifactid>test</artifactid> <packaging>war</packaging> <version>0.0.1-snapshot</version> <name>test maven webapp</name> <url>http://maven.apache.org</url> <dependencies> <dependency> <groupid>junit</groupid> <artifactid>junit</artifactid> <version>3.8.1</version> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-war-plugin</artifactid> <version>2.1.1</version> </plugin> </plugins> </build> </project>
i tried delete repositories , install again. got error always. looks need help. think mojo plugin broken re installed several times. suggestions?
does class org.apache.maven.shared.filtering.mavenfilteringexception
exist in file:/c:/users/utopcu/.m2/repository/org/apache/maven/shared/maven-filtering/1.0-beta-2/maven-filtering-1.0-beta-2.jar
?
the error message suggests doesn't. maybe jar corrupted somehow.
i'm wondering version 1.0-beta-2
comes from; have 1.0
on disk. try version 2.3
of war plugin.
Comments
Post a Comment