gigaZhang / struts2-jquery

Automatically exported from code.google.com/p/struts2-jquery
0 stars 0 forks source link

Maven build fail #961

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Building Struts 2 jQuery Richtext Plugin 3.6.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ 
struts2-jquery-richtext-plugin ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2149 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ 
struts2-jquery-richtext-plugin ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-apt-plugin:1.0.39:execute (default) @ 
struts2-jquery-richtext-plugin ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.618s
[INFO] Finished at: Thu Apr 04 14:25:09 CST 2013
[INFO] Final Memory: 10M/26M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.myfaces.tobago:maven-apt-plugin:1.0.39:execute (default) on project 
struts2-jquery-richtext-plugin: Compilation error. Compilation error.
[ERROR] 警告:不带处理器的注释类型: [java.lang.Override, 
com.opensymphony.xwork2.inject.Inject, java.lang.SuppressWarnings]
[ERROR] 注释处理过程中遇到问题;
[ERROR] 有关更多信息,请参见下面的堆栈追踪。
[ERROR] java.lang.ClassCastException: 
com.sun.tools.apt.mirror.declaration.FieldDeclarationImpl cannot be cast to 
com.sun.mirror.declaration.MethodDeclaration
[ERROR] at 
org.apache.struts.annotations.taglib.apt.TagAnnotationProcessor.process(TagAnnot
ationProcessor.java:143)
[ERROR] at 
com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(Ann
otationProcessors.java:60)
[ERROR] at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
[ERROR] at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:258)
[ERROR] at com.sun.tools.apt.main.Main.compile(Main.java:1102)
[ERROR] at com.sun.tools.apt.main.Main.compile(Main.java:964)
[ERROR] at com.sun.tools.apt.Main.processing(Main.java:95)
[ERROR] at com.sun.tools.apt.Main.process(Main.java:54)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[ERROR] at java.lang.reflect.Method.invoke(Unknown Source)
[ERROR] at 
org.apache.myfaces.maven.plugin.AbstractAPTMojo.execute(AbstractAPTMojo.java:442
)
[ERROR] at org.apache.myfaces.maven.plugin.AptMojo.execute(AptMojo.java:113)
[ERROR] at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPlugin
Manager.java:101)
[ERROR] at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
[ERROR] at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
[ERROR] at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
[ERROR] at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Lifecycl
eModuleBuilder.java:84)
[ERROR] at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Lifecycl
eModuleBuilder.java:59)
[ERROR] at 
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(Lifecyc
leStarter.java:183)
[ERROR] at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.ja
va:161)
[ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
[ERROR] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
[ERROR] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
[ERROR] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
[ERROR] at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[ERROR] at java.lang.reflect.Method.invoke(Unknown Source)
[ERROR] at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:2
90)
[ERROR] at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
[ERROR] at 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java
:409)
[ERROR] at 
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.

Original issue reported on code.google.com by zhaixue...@gmail.com on 4 Apr 2013 at 6:28

GoogleCodeExporter commented 9 years ago
I don't have this problems during the Build.

Which Maven und JDK Versions do you use?

Original comment by johgep on 5 Apr 2013 at 8:23

GoogleCodeExporter commented 9 years ago
I modify the Eclipse JDK version 1.5.    This problem does not appear.But 
another error.

[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-javadoc-plugin:2.9:jar (attach-source) on 
project struts2-jquery-grid-showcase: MavenReportException: Error while 
creating archive:
[ERROR] Exit code: 1 - 
D:\Workspaces\Workspace\struts2-jquery-all\trunk\struts2-jquery-grid-showcase\sr
c\main\java\com\jgeppert\struts2\jquery\grid\showcase\dao\AbstractSimpleGenericD
ao.java:13: 无法访问 
com.googlecode.s2hibernate.struts2.plugin.annotations.SessionTarget
[ERROR] 错误的类文件: 
D:\Workspaces\Workspace\struts2-jquery-all\trunk\struts2-jquery-grid-showcase\sr
c\main\webapp\WEB-INF\lib\struts2-fullhibernatecore-plugin-2.2.2-GA.jar(com/goog
lecode/s2hibernate/struts2/plugin/annotations/SessionTarget.class)
[ERROR] 类文件具有错误的版本 50.0,应为 49.0
[ERROR] 
请删除该文件或确保该文件位于正确的类路径子目录中。
[ERROR] import 
com.googlecode.s2hibernate.struts2.plugin.annotations.SessionTarget;
[ERROR] ^
[ERROR] 
[ERROR] Command line was: D:\dev\Java\jdk1.5.0_22\jre\..\bin\javadoc.exe 
@options 
@packages

My environment variables:

JAVA_HOME=D:\dev\Java\jdk1.6.0_43.

MAVEN_HOME=D:\dev\apache-maven-3.0.4.

Eclipse Java Compiler: 1.5.
Installed JREs: jdk1.5.0_22=D:\dev\Java\jdk1.5.0_22

Original comment by zhaixue...@gmail.com on 6 Apr 2013 at 1:40

Attachments:

GoogleCodeExporter commented 9 years ago
Do you have this problems with every build? Or only sometimes? It looks like 
you build has problems do resolve the s2-hibernate plugin. which is not a maven 
artifact.

Original comment by johgep on 7 Apr 2013 at 10:32

GoogleCodeExporter commented 9 years ago
Hi,
The eclipse workspace encoding default encoding into utf-8 to recompile passed, 
but mven to perform the javadoc build documentation console output Chinese 
garbled.

Thanks.

Original comment by zhaixue...@gmail.com on 22 Apr 2013 at 5:36

GoogleCodeExporter commented 9 years ago
So do you solve it?

Original comment by johgep on 25 Apr 2013 at 7:40

GoogleCodeExporter commented 9 years ago
Yes, solved.

Original comment by zhaixue...@gmail.com on 26 Apr 2013 at 6:38

GoogleCodeExporter commented 9 years ago
great! :-)

Original comment by johgep on 26 Apr 2013 at 6:59