【发布时间】:2014-03-12 16:32:20
【问题描述】:
我正在尝试使用此处描述的文档作为指南来编译 nuxeo:http://doc.nuxeo.com/display/public/CORG/Getting+the+Nuxeo+source+code
但是我无法成功运行以下命令:mvn -DskipTests install -Paddons
我不知道有什么问题。以下是我的工作站的详细信息:
java -版本 java版本“1.7.0_17” Java(TM) SE 运行时环境 (build 1.7.0_17-b02) Java HotSpot(TM) 64 位服务器 VM(内部版本 23.7-b01,混合模式)
mvn -版本 阿帕奇 Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T17:37:52+00:00) Maven 主页:C:\Maven\bin.. Java 版本:1.7.0_04,供应商:甲骨文公司 Java 主页:C:\jdk1.7.0_04\jre 默认语言环境:pt_PT,平台编码:Cp1252 操作系统名称:“windows 7”,版本:“6.1”,arch:“x86”,家族:“windows”
[ERROR] 未能执行目标 org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) 在项目上 nuxeo-annot-gwt:编译失败 [错误] 未知的编译问题 发生 [错误] -> [帮助 1] org.apache.maven.lifecycle.LifecycleExecutionException: 未能执行目标 org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) 在项目上 nuxeo-annot-gwt:编译失败 一个未知的编译问题 发生了
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212) 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.buildProject(LifecycleModuleBuilder.java:108) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.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方法) 在 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 在 java.lang.reflect.Method.invoke(Method.java:601) 在 org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) 在 org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) 在 org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) 在 org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) 造成的: org.apache.maven.plugin.compiler.CompilationFailureException: 编译失败未知 出现编译问题
at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:858) at org.apache.maven.plugin.compiler.TestCompilerMojo.execute(TestCompilerMojo.java:152) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) ... 19 more [ERROR] [ERROR] [ERROR] For more information about the错误和可能的解决方案,请 阅读以下文章:[错误] [帮助1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [错误] [错误] 更正后 问题,您可以恢复构建 使用命令 [ERROR] mvn -rf :nuxeo-annot-gwt
该错误几乎没有信息,所以我迷失了解决方案。
【问题讨论】:
-
“发生了未知的编译问题”。这可能是 javac 可执行文件的问题。尝试使用调试日志运行命令(添加
--debug或-X),这可能会暴露根本原因。 -
嗨罗伯特,这是带有 -X 的日志。因此上面的跟踪日志