1

我的项目有问题。Hudson 输出下一个结果:

 [ERROR] BUILD FAILURE
 [INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
D:\integration build notifier\workspace\notifier\sms-notifier\src\main\java\com\century\remote\notice\SMSServlet.java:[46,45] error: cannot access EnvironmentCapable
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch

//--------------------------

[DEBUG]
Trace org.apache.maven.BuildFailureException: Compilation failure
C:\ttt\ttt\.hudson\jobs\integration build notifier\workspace\notifier\sms-notifier   \src\main\java\com\century\remote\notice\SMSServlet.java:[46,45] error: cannot access EnvironmentCapable
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
    Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
    C:\tts\ttC\.hudson\jobs\integration build notifier\workspace\notifier\notifier\main\java\com\century\remote\notice\SMSServlet.java:[46,45] 

  error: cannot access EnvironmentCapable

Project BUILDs SUCCESSFUL 在我的计算机上,但它没有在 Hudson 上编译。

我不明白我的错误的原因。

谢谢。

4

0 回答 0