In recent versions of the maven-surefire-plugin, stack traces are "trimmed" by 
default. This breaks past behavior in the NetBeans Test Results pane, where you 
could double-click lines in the stack trace to jump to that part of the code. 
It also makes the stack traces rather useless in the console output.

In case anyone else bumped into this problem, the fix is to set 
trimStackTrace=false in pom.xml:

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-surefire-plugin</artifactId>
  <version>3.0.0-M5</version>
  <configuration>
    <trimStackTrace>false</trimStackTrace>
 </configuration>
</plugin>

This is not a NetBeans bug, but still I wonder if something should be done from 
the NetBeans side to alert users to this.

(Searching the Apache JIRA for "trimStackTrace" shows several "disable 
trimStackTrace" type issues in various unrelated Apache projects... this new 
default seems to baffle everyone.)

-- Eirik

Reply via email to