Maven mvn-e完整堆栈跟踪?

Maven mvn-e完整堆栈跟踪?,maven,Maven,我对maven有点陌生,我假设这是一个maven的东西,与我的shell无关,但是当我使用-e开关运行以尝试识别错误时,我得到了如下不完整的结果: [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ---------------------------------------------------------------------

我对maven有点陌生,我假设这是一个maven的东西,与我的shell无关,但是当我使用-e开关运行以尝试识别错误时,我得到了如下不完整的结果:

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Deployment failed and was rolled back.
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Deployment failed and was rolled back.
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
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.jboss.as.plugin.common.DeploymentExecutionException: Deployment failed and was rolled back.
at org.jboss.as.plugin.deployment.standalone.StandaloneDeployment.execute(StandaloneDeployment.java:140)
at org.jboss.as.plugin.deployment.AbstractDeployment.executeDeployment(AbstractDeployment.java:119)
at org.jboss.as.plugin.deployment.AbstractDeployment.doExecute(AbstractDeployment.java:141)
at org.jboss.as.plugin.deployment.AbstractAppDeployment.doExecute(AbstractAppDeployment.java:70)
at org.jboss.as.plugin.deployment.AbstractDeployment.execute(AbstractDeployment.java:111)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
[INFO] ------------------------------------------------------------------------
我怎么能看到“…17更多”的东西?我相信它会帮助我准确地找出哪个maven任务失败了?感谢您的帮助或文档链接


另外,如果您很好奇,并且迫切想帮助我解决实际问题,我只是运行“mvn clean package jboss as:deploy”来部署,如果我自己没有解决这个问题,我可以在另一个问题中提供更多信息。

严格来说,这不是一个答案,但可能有助于您的调查

的源代码(警告,这可能不是您正在使用的版本)显示了引发的位置:

case ROLLED_BACK:
    throw new DeploymentExecutionException("Deployment failed and was rolled back.", actionResult.getDeploymentException());
并将根异常(
actionResult.getDeploymentException()
)传递给此
DeploymentExecutionException

我本以为您会在Maven堆栈跟踪中看到这个根异常,但在您的案例中似乎不是这样


您可以随时尝试,并在上面显示的行上放置断点。

stacktrace-中的其他位置应该已经存在“更多内容”,但我不是100%确定。@PaulGrime看起来是这样的,谢谢您的链接!您可以尝试同时使用
-e-X
Maven开关来获取完整日志吗?再次感谢。这是很好的信息,尽管我没有使用Eclipse。如果过了很长时间我仍然无法理解,我将在另一个问题中发布更详细的服务器信息。调试本身并不依赖于Eclipse。如果您有另一个IDE,它将具有类似的功能来将自己附加到调试Java进程。