Tôi là người mới với maven và tôi giả định đây là một điều maven và không phải cái gì để làm với vỏ của tôi, nhưng khi tôi chạy với công tắc -e để thử và xác định lỗi, tôi nhận được một cái gì đó không đầy đủ như thế này :mvn -e Hoàn thành Stack Trace?
[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] ------------------------------------------------------------------------
Tôi làm cách nào để xem "... 17 điều" nữa? Tôi tin rằng nó sẽ giúp tôi tìm ra chính xác nhiệm vụ quạ nào đang thất bại? Cảm ơn bạn đã giúp đỡ hoặc liên kết đến tài liệu!
P.S. Nếu bạn tò mò và cảm thấy sự thôi thúc giúp tôi tìm ra vấn đề thực tế, tôi đơn giản chạy "mvn clean package jboss-as: deploy" để triển khai, và tôi có thể cung cấp thêm thông tin trong một câu hỏi cụ thể cho vấn đề nếu tôi không không tự mình tìm ra.
'Thứ khác' đã có mặt ở nơi khác trong ngăn xếp - http://stackoverflow.com/questions/1167888/howto-increase-lines-of-java-stack-trace-dump, nhưng tôi không chắc chắn 100. –
@PaulGrime Điều đó có vẻ là trường hợp, cảm ơn bạn đã liên kết! – mwillson
Bạn có thể thử sử dụng cả bộ chuyển mạch Maven '-e -X' để nhận toàn bộ nhật ký. –