You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "jmborer (JIRA)" <ji...@apache.org> on 2018/11/28 11:58:00 UTC

[jira] [Comment Edited] (NETBEANS-635) Surefire 2.19.1 (and later) stacktrace hyperlinks don't work with Maven

    [ https://issues.apache.org/jira/browse/NETBEANS-635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16701771#comment-16701771 ] 

jmborer edited comment on NETBEANS-635 at 11/28/18 11:57 AM:
-------------------------------------------------------------

There are several issues to properly handle the surefire plugin output

Since Surefire 2.19 the line which specifies the output directory (see below) is no longer printed:
{noformat}
Surefire report directory: <some directory>{noformat}
 There is a fallback method to find the reports by trying to parse a line like:
{noformat}
--- maven-surefire-plugin:2.18.1:test (default-test) @ mavenproject3 ---
{noformat}
 which then uses the test name to find the report file name. However the regular expression is flawed: it will skip the line above because of the third digit: 
{noformat}
^---\smaven-surefire-plugin:\d+\.\d+:test\s.*$ {noformat}
 should be replaced by: 
{noformat}
 ^---\smaven-surefire-plugin:\d+(?:.\d+)+:test\s.*${noformat}
 

However this fallback method won't work either, because depending on the Maven settings, the output will be prefixed with the log level (for example [INFO]) that will break the matching. It must improved further to take this into account:
{noformat}
^.---\smaven-surefire-plugin:\d+(?:.\d+)+:test\s.${noformat}
 By looking into the surefire code, it is possible to have the "Surefire report directory" line appear again by using the "-e" argument for Maven. However, this will produce more output and is not what most users would expect: 
{noformat}
C:\Users\borerjc\NetBeansProjects\mavenproject3>mvn -e install
 [INFO] Error stacktraces are turned on.
 [INFO] Scanning for projects...
 [INFO]
 [INFO] ----------------< ch.skyguide.crystal:mavenproject3 >-----------------
 [INFO] Building mavenproject3 6.0-SNAPSHOT
 [INFO] -------------------------------[ jar ]--------------------------------
 [INFO]
 [INFO] — maven-resources-plugin:2.6:resources (default-resources) @ mavenproject3 —
 [INFO] Using 'UTF-8' encoding to copy filtered resources.
 [INFO] skip non existing resourceDirectory C:\Users\borerjc\NetBeansProjects\mavenproject3\src\main\resources
 [INFO]
 [INFO] — maven-compiler-plugin:3.1:compile (default-compile) @ mavenproject3 —
 [INFO] Nothing to compile - all classes are up to date
 [INFO]
 [INFO] — maven-resources-plugin:2.6:testResources (default-testResources) @ mavenproject3 —
 [INFO] Using 'UTF-8' encoding to copy filtered resources.
 [INFO] skip non existing resourceDirectory C:\Users\borerjc\NetBeansProjects\mavenproject3\src\test\resources
 [INFO]
 [INFO] — maven-compiler-plugin:3.1:testCompile (default-testCompile) @ mavenproject3 —
 [INFO] Nothing to compile - all classes are up to date
 [INFO]
 [INFO] — maven-surefire-plugin:2.22.1:test (default-test) @ mavenproject3 —
 [INFO] Surefire report directory: C:\Users\borerjc\NetBeansProjects\mavenproject3\target\surefire-reports
 [INFO]
 [INFO] -------------------------------------------------------
 [INFO] T E S T S
 [INFO] -------------------------------------------------------
 [INFO] Running ch.skyguide.crystal.mavenproject3.TestTest
 [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.042 s <<< FAILURE! - in ch.skyguide.crystal.mavenproject3.TestTest
 [ERROR] testSomeMethod(ch.skyguide.crystal.mavenproject3.TestTest) Time elapsed: 0.006 s <<< FAILURE!
 java.lang.AssertionError: dummy message
 at org.junit.Assert.fail(Assert.java:88)
 at ch.skyguide.crystal.mavenproject3.TestTest.testSomeMethod(TestTest.java:22)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
 at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
 at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
 at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
 at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
 at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
 at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
 at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
 at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
 at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
 at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
 at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
 at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
 at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
 at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
 at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
 at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
 at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
 at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
 at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
 at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
 at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
 [INFO]
 [INFO] Results:
 [INFO]
 [ERROR] Failures:
 [ERROR] TestTest.testSomeMethod:22 dummy message
 [INFO]
 [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
 [INFO]
 [INFO] ------------------------------------------------------------------------
 [INFO] BUILD FAILURE
 [INFO] ------------------------------------------------------------------------
 [INFO] Total time: 2.242 s
 [INFO] Finished at: 2018-11-28T11:41:03Z
 [INFO] ------------------------------------------------------------------------
 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test) on project mavenproject3: There are test failures.
 [ERROR]
 [ERROR] Please refer to C:\Users\borerjc\NetBeansProjects\mavenproject3\target\surefire-reports for the individual test results.
 [ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
 [ERROR] -> [Help 1]
 org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test) on
 roject3: There are test failures.
 Please refer to C:\Users\borerjc\NetBeansProjects\mavenproject3\target\surefire-reports for the individual test results.
 Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
 at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
 at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
 at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
 at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
 at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
 at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
 at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
 at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke (Method.java:498)
 at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
 at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
 at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
 at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
 Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures.
 Please refer to C:\Users\borerjc\NetBeansProjects\mavenproject3\target\surefire-reports for the individual test results.
 Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
 at org.apache.maven.plugin.surefire.SurefireHelper.throwException (SurefireHelper.java:289)
 at org.apache.maven.plugin.surefire.SurefireHelper.reportExecution (SurefireHelper.java:161)
 at org.apache.maven.plugin.surefire.SurefirePlugin.handleSummary (SurefirePlugin.java:364)
 at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked (AbstractSurefireMojo.java:1041)
 at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute (AbstractSurefireMojo.java:857)
 at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
 at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
 at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
 at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
 at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
 at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
 at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
 at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
 at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke (Method.java:498)
 at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
 at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
 at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
 at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
 [ERROR]
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions, please read the following articles:
 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
  {noformat}
 


was (Author: jmborer):
There are several issues to properly handle the surefire plugin output

Since Surefire 2.19 the line which specifies the output directory (see below) is no longer printed:
{noformat}
Surefire report directory: <some directory>{noformat}
 There is a fallback method to find the reports by trying to parse a line like:
{noformat}
--- maven-surefire-plugin:2.18.1:test (default-test) @ mavenproject3 ---
{noformat}
 which then uses the test name to find the report file name. However the regular expression is flawed: it will skip the line above because of the third digit:

 
{noformat}
^---\smaven-surefire-plugin:\d+\.\d+:test\s.*$ {noformat}
 

should be replaced by

 
{noformat}
 ^---\smaven-surefire-plugin:\d+(?:.\d+)+:test\s.*${noformat}
 

However this fallback method won't work either, because depending on the Maven settings, the output will be prefixed with the log level (for example [INFO]) that will break the matching. It must improved further to take this into account:
{noformat}
^.---\smaven-surefire-plugin:\d+(?:.\d+)+:test\s.${noformat}
By looking into the surefire code, it is possible to have the "Surefire report directory" line appear again by using the "-e" argument for Maven. However, this will produce more output and is not what most users would expect: 
{noformat}
C:\Users\borerjc\NetBeansProjects\mavenproject3>mvn -e install
 [INFO] Error stacktraces are turned on.
 [INFO] Scanning for projects...
 [INFO]
 [INFO] ----------------< ch.skyguide.crystal:mavenproject3 >-----------------
 [INFO] Building mavenproject3 6.0-SNAPSHOT
 [INFO] -------------------------------[ jar ]--------------------------------
 [INFO]
 [INFO] — maven-resources-plugin:2.6:resources (default-resources) @ mavenproject3 —
 [INFO] Using 'UTF-8' encoding to copy filtered resources.
 [INFO] skip non existing resourceDirectory C:\Users\borerjc\NetBeansProjects\mavenproject3\src\main\resources
 [INFO]
 [INFO] — maven-compiler-plugin:3.1:compile (default-compile) @ mavenproject3 —
 [INFO] Nothing to compile - all classes are up to date
 [INFO]
 [INFO] — maven-resources-plugin:2.6:testResources (default-testResources) @ mavenproject3 —
 [INFO] Using 'UTF-8' encoding to copy filtered resources.
 [INFO] skip non existing resourceDirectory C:\Users\borerjc\NetBeansProjects\mavenproject3\src\test\resources
 [INFO]
 [INFO] — maven-compiler-plugin:3.1:testCompile (default-testCompile) @ mavenproject3 —
 [INFO] Nothing to compile - all classes are up to date
 [INFO]
 [INFO] — maven-surefire-plugin:2.22.1:test (default-test) @ mavenproject3 —
 [INFO] Surefire report directory: C:\Users\borerjc\NetBeansProjects\mavenproject3\target\surefire-reports
 [INFO]
 [INFO] -------------------------------------------------------
 [INFO] T E S T S
 [INFO] -------------------------------------------------------
 [INFO] Running ch.skyguide.crystal.mavenproject3.TestTest
 [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.042 s <<< FAILURE! - in ch.skyguide.crystal.mavenproject3.TestTest
 [ERROR] testSomeMethod(ch.skyguide.crystal.mavenproject3.TestTest) Time elapsed: 0.006 s <<< FAILURE!
 java.lang.AssertionError: dummy message
 at org.junit.Assert.fail(Assert.java:88)
 at ch.skyguide.crystal.mavenproject3.TestTest.testSomeMethod(TestTest.java:22)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
 at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
 at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
 at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
 at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
 at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
 at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
 at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
 at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
 at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
 at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
 at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
 at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
 at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
 at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
 at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
 at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
 at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
 at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
 at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
 at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
 at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
 [INFO]
 [INFO] Results:
 [INFO]
 [ERROR] Failures:
 [ERROR] TestTest.testSomeMethod:22 dummy message
 [INFO]
 [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
 [INFO]
 [INFO] ------------------------------------------------------------------------
 [INFO] BUILD FAILURE
 [INFO] ------------------------------------------------------------------------
 [INFO] Total time: 2.242 s
 [INFO] Finished at: 2018-11-28T11:41:03Z
 [INFO] ------------------------------------------------------------------------
 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test) on project mavenproject3: There are test failures.
 [ERROR]
 [ERROR] Please refer to C:\Users\borerjc\NetBeansProjects\mavenproject3\target\surefire-reports for the individual test results.
 [ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
 [ERROR] -> [Help 1]
 org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test) on
 roject3: There are test failures.
 Please refer to C:\Users\borerjc\NetBeansProjects\mavenproject3\target\surefire-reports for the individual test results.
 Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
 at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
 at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
 at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
 at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
 at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
 at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
 at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
 at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke (Method.java:498)
 at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
 at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
 at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
 at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
 Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures.
 Please refer to C:\Users\borerjc\NetBeansProjects\mavenproject3\target\surefire-reports for the individual test results.
 Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
 at org.apache.maven.plugin.surefire.SurefireHelper.throwException (SurefireHelper.java:289)
 at org.apache.maven.plugin.surefire.SurefireHelper.reportExecution (SurefireHelper.java:161)
 at org.apache.maven.plugin.surefire.SurefirePlugin.handleSummary (SurefirePlugin.java:364)
 at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked (AbstractSurefireMojo.java:1041)
 at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute (AbstractSurefireMojo.java:857)
 at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
 at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
 at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
 at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
 at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
 at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
 at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
 at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
 at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke (Method.java:498)
 at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
 at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
 at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
 at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
 [ERROR]
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions, please read the following articles:
 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
  {noformat}
 

> Surefire 2.19.1 (and later) stacktrace hyperlinks don't work with Maven
> -----------------------------------------------------------------------
>
>                 Key: NETBEANS-635
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-635
>             Project: NetBeans
>          Issue Type: Bug
>          Components: projects - Maven
>    Affects Versions: 8.2, 9.0
>            Reporter: jmborer
>            Priority: Major
>         Attachments: mavenproject3.zip, surefire-2.18.1-.png, surefire-2.19.1-.png, surefire-2.22.1-.png, target-2.18.1.zip, target-2.19.1.zip, target-2.22.1.zip
>
>
> When running tests with surefire 2.19.1, to see the stacktrace, make sure the plugin is configured as following:
> {code:java}
> <plugin>
>     <groupId>org.apache.maven.plugins</groupId>
>     <artifactId>maven-surefire-plugin</artifactId>
>      <version>2.19.1</version>
>      <configuration>
>          <trimStackTrace>false</trimStackTrace>
>      </configuration>
>  </plugin>{code}
> Then you will see the stacktraces in the output. Even though they are recognized as being hyperlinks, when you click on them, nothing happens and in the status bar of Netbeans it says that the source file cannot be found.
> This works perfectly with surefire 2.18.1. Something changed between these versions.
> Related topics:
> [1] [https://netbeans.org/bugzilla/show_bug.cgi?id=257563]
> [2] [https://netbeans.org/bugzilla/show_bug.cgi?id=222587]
> [3] [https://netbeans.org/bugzilla/show_bug.cgi?id=262207]
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists