maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tibor Digana (JIRA)" <>
Subject [jira] [Commented] (SUREFIRE-1604) "Surefire report directory" information is missing at the very beginning of execution for IDE integration
Date Sat, 01 Dec 2018 17:33:00 GMT


Tibor Digana commented on SUREFIRE-1604:

In IDEA the build is started from `plexus-classworlds.jar`. I guess they do the same when
they analyse the POM. Perhaps they select module in API, see Maven class {{MavenProject}}.
You can ask Jenkins team how they access each module separately in FreeNode style.
For instance this is the IDEA command
{{"D:\Program Files\Java\jdk1.8.0_162\bin\java" -Dmaven.multiModuleProjectDirectory=D:\vcs\release\RELEASE-3.0.0-M1
-server -Xmx864m -Djava.awt.headless=true -Dmaven.repo.local=D:\.m2\repository -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2
"-Dmaven.home=E:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2017.3\plugins\maven\lib\maven3"
"-Dclassworlds.conf=E:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2017.3\plugins\maven\lib\maven3\bin\m2.conf"
"-javaagent:E:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2017.3\lib\idea_rt.jar=62269:E:\Program
Files\JetBrains\IntelliJ IDEA Community Edition 2017.3\bin" -Dfile.encoding=UTF-8 -classpath
"E:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2017.3\plugins\maven\lib\maven3\boot\plexus-classworlds-2.5.2.jar"
org.codehaus.classworlds.Launcher -Didea.version=2017.3.5 -s d:\.m2\settings.xml clean -P

>>Correct me if I am wrong, but when you use an IDE, the results of the Maven tests
can only be found in the output, no?
No, because the results are usually in {{target}} folder. Same with reports.
The users reported several times against Surefire that console output is annoying and they
want to see only test result and not these debug logs without {{mvn -X}}.

>>how do they know the location of the reports
As I explained before, IDEA has programming access to Maven API via running in embedded mode

> "Surefire report directory" information is missing at the very beginning of execution
for IDE integration
> ---------------------------------------------------------------------------------------------------------
>                 Key: SUREFIRE-1604
>                 URL:
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.19.1, 2.22.1
>            Reporter: jmborer
>            Assignee: Tibor Digana
>            Priority: Major
> Since 2.18.1, Surefire no longer prints by default the line:
> {noformat}
> Surefire report directory: <some directory>{noformat}
> This information is really useful for IDE integration like in Netbeans, where users want
to click on links in the report that brings them to the build directory. This line reappears
if the "-e" option is used, but it brings with it unecessary additional info as well.
> Because the IDE is parsing the output, it must know the location of the reports *before*
the first results are displayed. Currently it is possible to guess the reports directory by
using the default location, but as soon as a user defines a custom location, Netbeans for
example won't be able to locate the new directory early enough (see
> The code has changed in VerifyMojo,java line 171 (version 2.22.1)

This message was sent by Atlassian JIRA

View raw message