IntelliJ IDEA does not “hyperlink” source files in Maven Run toolbox

I have been using intellij for 2 years and love it. however, after upgrading to 2016.3.4, he stopped highlighting path locations in the launch window.

Previously, I could just click on the selected path and go to the file and line.

Example output from maven-checkstyle-plugin, which should be "clickable":

[ERROR] C:\Users\userName\Documents\project.main\src\main\java\MyClass.java:36: Only one statement per line allowed. [OneStatementPerLine] 

This is very unpleasant, and any idea on how to get intellij to do it again would be fantastic.


Minimal, complete and verifiable example

Replicate this Create a project in IntelliJ IDEA named Error

 IntelliJ IDEA 2016.3.4 Build #IU-163.12024.16, built on January 31, 2017 

Create folder

bug-> CodeStyle and the file in this folder is "Checkstyle.xml"

 <?xml version="1.0"?> <!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd"> <module name="Checker"> <property name="charset" value="UTF-8"/> <property name="severity" value="error"/> <property name="fileExtensions" value="java,"/> <module name="FileTabCharacter"/> <module name="TreeWalker"> <module name="RegexpSinglelineJava"> <property name="format" value="System\.(out|err).*?$"/> <property name="ignoreComments" value="true"/> </module> </module> </module> 

pom

 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>bugExample</groupId> <artifactId>bug</artifactId> <version>1.0-SNAPSHOT</version> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <version>2.17</version> <executions> <execution> <id>validate</id> <phase>validate</phase> <configuration> <configLocation>CodeStyle/checkstyle.xml</configLocation> <consoleOutput>true</consoleOutput> <failsOnError>true</failsOnError> <includeTestSourceDirectory>true</includeTestSourceDirectory> </configuration> <goals> <goal>check</goal> </goals> </execution> </executions> <dependencies> <dependency> <groupId>com.puppycrawl.tools</groupId> <artifactId>checkstyle</artifactId> <version>6.18</version> </dependency> </dependencies> </plugin> </plugins> </build> </project> 

and class Example.java

 public class Example { public Example() { System.out.println("This is not allowed"); } } 

And now in the maven project project, click the life cycle, and then confirm.

Outputs in the launch terminal:

 [INFO] Starting audit... [ERROR] C:\Users\Username\bug\src\main\java\Example.java:7: Line matches the illegal pattern 'System\.(out|err).*?$'. [RegexpSinglelineJava] Audit done. 

So the problem is that Example.java not "Clickable", it was in the past.

+5
source share
1 answer

Thanks for the example, I reported an error for the integration of IntelliJ IDEA Maven, feel free to vote :

+2
source

Source: https://habr.com/ru/post/1264839/


All Articles