Richfaces的Maven错误 - 展示RichFaces 4.3.1 Final

时间:2013-05-06 06:52:15

标签: java maven richfaces maven-3

我试图运行Richfaces展示RichFaces 4.3.1 Final。当我执行命令“mvn clean package”作为readme.txt指示我得到一个Maven错误。错误文本如下:

    [INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building RichFaces Showcase 4.3.1.Final
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.137s
[INFO] Finished at: Mon May 06 14:31:42 CST 2013
[INFO] Final Memory: 4M/60M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to parse plugin descriptor for org.apache.maven.plugins:maven-war
-plugin:2.1.1 (C:\Users\han59650\.m2\repository\org\apache\maven\plugins\maven-w
ar-plugin\2.1.1\maven-war-plugin-2.1.1.jar): error in opening zip file -> [Help
1]
    org.apache.maven.plugin.PluginDescriptorParsingException: Failed to parse plugin
 descriptor for org.apache.maven.plugins:maven-war-plugin:2.1.1 (C:\Users\han596
50\.m2\repository\org\apache\maven\plugins\maven-war-plugin\2.1.1\maven-war-plug
in-2.1.1.jar): error in opening zip file
    at org.apache.maven.plugin.internal.DefaultMavenPluginManager.extractPlu
ginDescriptor(DefaultMavenPluginManager.java:212)
    at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getPluginD
escriptor(DefaultMavenPluginManager.java:147)
    at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getMojoDes
criptor(DefaultMavenPluginManager.java:261)
    at org.apache.maven.plugin.DefaultBuildPluginManager.getMojoDescriptor(D
efaultBuildPluginManager.java:185)
    at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalc
ulator.setupMojoExecution(DefaultLifecycleExecutionPlanCalculator.java:152)
    at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalc
ulator.setupMojoExecutions(DefaultLifecycleExecutionPlanCalculator.java:139)
    at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalc
ulator.calculateExecutionPlan(DefaultLifecycleExecutionPlanCalculator.java:116)
    at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalc
ulator.calculateExecutionPlan(DefaultLifecycleExecutionPlanCalculator.java:129)
    at org.apache.maven.lifecycle.internal.BuilderCommon.resolveBuildPlan(Bu
ilderCommon.java:92)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:59)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
ild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    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.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
Caused by: java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:127)
    at java.util.jar.JarFile.<init>(JarFile.java:136)
    at java.util.jar.JarFile.<init>(JarFile.java:115)
    at org.apache.maven.plugin.internal.DefaultMavenPluginManager.extractPlu
ginDescriptor(DefaultMavenPluginManager.java:170)
    ... 25 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.

我的环境是: Maven 3.0.5 JDK 1.6

任何人都可以帮助我吗?

1 个答案:

答案 0 :(得分:2)

看起来你已经下载了损坏的文件,删除了这个目录并让maven再次下载

C:\Users\han59650\.m2\repository\org\apache\maven\plugins\maven-war-plugin