Maven编译Hibernate3.6.10.final源码导入Eclipse时出错
在使用maven编译hibernate3.6.10.final源码并导入Eclipse时,执行的命令是 mvn eclipse:eclipse, 出现如下错误:
[DEBUG] Executing org.codehaus.groovy.maven.plugin.execute.Source@55974e79 w/con text: org.codehaus.groovy.maven.feature.Configuration@4fe22deb [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Hibernate Core Parent POM ......................... SUCCESS [ 0.903 s] [INFO] Hibernate Core .................................... SUCCESS [ 0.681 s] [INFO] Hibernate Testing ................................. SUCCESS [ 0.232 s] [INFO] Hibernate Testsuite ............................... SUCCESS [ 0.318 s] [INFO] Hibernate Ehcache Integration ..................... SUCCESS [ 0.318 s] [INFO] Hibernate JBossCache Integration .................. SUCCESS [ 0.285 s] [INFO] Hibernate OSCache Integration ..................... SUCCESS [ 0.159 s] [INFO] Hibernate SwarmCache Integration .................. SUCCESS [ 0.198 s] [INFO] Hibernate C3P0 ConnectionProvider ................. SUCCESS [ 0.154 s] [INFO] Hibernate Proxool ConnectionProvider .............. SUCCESS [ 0.167 s] [INFO] Hibernate Entity Manager .......................... SUCCESS [ 0.256 s] [INFO] Hibernate Envers .................................. SUCCESS [ 0.309 s] [INFO] Hibernate JDBC3-JdbcSupport Testing ............... SUCCESS [ 0.194 s] [INFO] Hibernate Infinispan Integration .................. SUCCESS [ 0.466 s] [INFO] Hibernate JDBC4-JdbcSupport Testing ............... SUCCESS [ 0.170 s] [INFO] Hibernate Manual .................................. SUCCESS [ 0.530 s] [INFO] Hibernate Envers Manual ........................... SUCCESS [ 0.114 s] [INFO] Hibernate Getting Started Guide ................... SUCCESS [ 0.183 s] [INFO] Hibernate Developer Guide ......................... SUCCESS [ 0.103 s] [INFO] Hibernate Core Documentation ...................... SUCCESS [ 0.068 s] [INFO] Hibernate Distribution ............................ FAILURE [ 1.736 s] [INFO] Hibernate Core Aggregator ......................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 9.744 s [INFO] Finished at: 2014-08-11T15:25:48+08:00 [INFO] Final Memory: 31M/310M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.groovy.maven:gmaven-plugin:1.0:execu te (default) on project hibernate-distribution: startup failed, script1407741948 369.groovy: 3: unexpected char: '' @ line 3, column 63. [ERROR] 1 error [ERROR] -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o rg.codehaus.groovy.maven:gmaven-plugin:1.0:execute (default) on project hibernat e-distribution: startup failed, script1407741948369.groovy: 3: unexpected char: '' @ line 3, column 63. 1 error at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor .java:216) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor .java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor .java:145) at org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecuti ons(MojoExecutor.java:364) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor .java:198) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor .java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor .java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje ct(LifecycleModuleBuilder.java:108) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje ct(LifecycleModuleBuilder.java:76) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThre adedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl eStarter.java:116) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213) at org.apache.maven.cli.MavenCli.main(MavenCli.java:157) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun cher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav a:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La uncher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java: 356) Caused by: org.apache.maven.plugin.MojoExecutionException: startup failed, scrip t1407741948369.groovy: 3: unexpected char: '' @ line 3, column 63. 1 error at org.codehaus.groovy.maven.plugin.MojoSupport.execute(MojoSupport.java :85) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default BuildPluginManager.java:133) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor .java:208) ... 23 more Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: start up failed, script1407741948369.groovy: 3: unexpected char: '' @ line 3, column 63. 1 error at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollecto r.java:296) at org.codehaus.groovy.control.ErrorCollector.addFatalError(ErrorCollect or.java:143) at org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.ja va:113) at org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.ja va:125) at org.codehaus.groovy.control.SourceUnit.addError(SourceUnit.java:353) at org.codehaus.groovy.antlr.AntlrParserPlugin.transformCSTIntoAST(Antlr ParserPlugin.java:87) at org.codehaus.groovy.antlr.AntlrParserPlugin.parseCST(AntlrParserPlugi n.java:59) at org.codehaus.groovy.control.SourceUnit.parse(SourceUnit.java:249) at org.codehaus.groovy.control.CompilationUnit$1.call(CompilationUnit.ja va:160) at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(Compil ationUnit.java:801) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.j ava:466) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:281) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:252) at org.codehaus.groovy.maven.runtime.v1_6.ClassFactoryFeature$ClassFacto ryImpl.create(ClassFactoryFeature.java:73) at org.codehaus.groovy.maven.runtime.support.ScriptExecutorSupport.execu te(ScriptExecutorSupport.java:62) at org.codehaus.groovy.maven.plugin.execute.ExecuteMojo.process(ExecuteM ojo.java:249) at org.codehaus.groovy.maven.plugin.ComponentMojoSupport.doExecute(Compo nentMojoSupport.java:60) at org.codehaus.groovy.maven.plugin.MojoSupport.execute(MojoSupport.java :69) ... 25 more [ERROR] [ERROR] [ERROR] For more information about the errors and possible solutions, please rea d the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE xception [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :hibernate-distribution E:GitHibernate-3.6.10.Final>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
jdk使用的是1.7 x64的,应该不会有问题吧,还有就是试了好多次了。。
回复
也可能是太高了,谁知道呢,一般下载下来都有说明的
回复
好吧 多谢 我再试试
当初我编译spring的时候,遇到两个问题,1,注意jdk版本,2,报错重试几次,,编了好久