maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hervé BOUTEMY <herve.bout...@free.fr>
Subject Re: maven-resolver git commit: Fix Checkstyle errors on package-info.java
Date Mon, 17 Oct 2016 22:15:25 GMT
uh, why is it ignoring // CHECKSTYLE_OFF: RegexpHeader?

$ git branch
* (détaché de 0dc0cca)
  1.0.x
  master

$ mvn deploy
...

[INFO] --- maven-jar-plugin:3.0.0:jar (default-jar) @ maven-resolver-api ---
[INFO] Building jar: /home/herve/projets/maven/git/maven-resolver/maven-
resolver-api/target/maven-resolver-api-1.2.0-SNAPSHOT.jar
[INFO] 
[INFO] --- maven-site-plugin:3.5.1:attach-descriptor (attach-descriptor) @ 
maven-resolver-api ---
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.15:check (checkstyle-check) @ maven-
resolver-api ---
[INFO] There are 66 errors reported by Checkstyle 6.1.1 with 
config/maven_checks.xml ruleset.
[INFO] Ignored 66 errors, 0 violation remaining.



And why is it more happy when you change file content, without having this 
regexp matched in the end neither?

Regards,

Hervé

Le lundi 17 octobre 2016 23:46:51 Michael Osipov a écrit :
> Am 2016-10-17 um 22:16 schrieb Hervé BOUTEMY:
> > Le lundi 17 octobre 2016 21:41:07 Michael Osipov a écrit :
> >> Am 2016-10-17 um 21:27 schrieb Hervé BOUTEMY:
> >>> just for the records: does not fix any errors reported by Checkstyle
> >>> 
> >>> "// CHECKSTYLE_OFF: RegexpHeader" remains in the files to ignore the
> >>> standard header check (that cannot be applied to package-info.java)
> >> 
> >> Do you still have errors?
> > 
> > I did not have errors before, and don't have after: that's the role of the
> > CHECKSTYLE_OFF: RegexpHeader
> > 
> >> I was not able to deploy since checkstyle
> >> complained about them. Aligned the style to the rest of our source made
> >> it magically work.
> > 
> > strange, since even with your change, the style is not compliant: the
> > first
> > line should start with "package"
> > 
> > can you share the error you get?
> 
> $ git branch
> * (HEAD detached at 0dc0cca)
> 
> $ mvn deploy
> ...
> [INFO]
> [INFO] --- maven-jar-plugin:3.0.0:jar (default-jar) @ maven-resolver-api ---
> [INFO] Building jar:
> D:\Entwicklung\Projekte\maven-resolver\maven-resolver-api\target\maven-resol
> ver-api-1.2.0-SNAPSHOT.jar [INFO]
> [INFO] --- maven-site-plugin:3.5.1:attach-descriptor (attach-descriptor)
> @ maven-resolver-api ---
> [INFO]
> [INFO] --- maven-checkstyle-plugin:2.15:check (checkstyle-check) @
> maven-resolver-api ---
> [INFO] There are 77 errors reported by Checkstyle 6.1.1 with
> config/maven_checks.xml ruleset.
> [ERROR] src\main\java\org\eclipse\aether\artifact\package-info.java[1]
> (header) RegexpHeader: Zeile entspricht nicht der erwarteten
> Header-Zeile '^package '.
> [ERROR] src\main\java\org\eclipse\aether\collection\package-info.java[1]
> (header) RegexpHeader: Zeile entspricht nicht der erwarteten
> Header-Zeile '^package '.
> [ERROR] src\main\java\org\eclipse\aether\deployment\package-info.java[1]
> (header) RegexpHeader: Zeile entspricht nicht der erwarteten
> Header-Zeile '^package '.
> [ERROR] src\main\java\org\eclipse\aether\graph\package-info.java[1]
> (header) RegexpHeader: Zeile entspricht nicht der erwarteten
> Header-Zeile '^package '.
> [ERROR]
> src\main\java\org\eclipse\aether\installation\package-info.java[1]
> (header) RegexpHeader: Zeile entspricht nicht der erwarteten
> Header-Zeile '^package '.
> [ERROR] src\main\java\org\eclipse\aether\metadata\package-info.java[1]
> (header) RegexpHeader: Zeile entspricht nicht der erwarteten
> Header-Zeile '^package '.
> [ERROR] src\main\java\org\eclipse\aether\package-info.java[1] (header)
> RegexpHeader: Zeile entspricht nicht der erwarteten Header-Zeile
> '^package '.
> [ERROR] src\main\java\org\eclipse\aether\repository\package-info.java[1]
> (header) RegexpHeader: Zeile entspricht nicht der erwarteten
> Header-Zeile '^package '.
> [ERROR] src\main\java\org\eclipse\aether\resolution\package-info.java[1]
> (header) RegexpHeader: Zeile entspricht nicht der erwarteten
> Header-Zeile '^package '.
> [ERROR] src\main\java\org\eclipse\aether\transfer\package-info.java[1]
> (header) RegexpHeader: Zeile entspricht nicht der erwarteten
> Header-Zeile '^package '.
> [ERROR] src\main\java\org\eclipse\aether\version\package-info.java[1]
> (header) RegexpHeader: Zeile entspricht nicht der erwarteten
> Header-Zeile '^package '.
> [INFO] Ignored 66 errors, 11 violations remaining.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Maven Artifact Resolver ............................ SUCCESS [
> 32.965 s]
> [INFO] Maven Artifact Resolver API ........................ FAILURE [
> 3.829 s]
> [INFO] Maven Artifact Resolver SPI ........................ SKIPPED
> [INFO] Maven Artifact Resolver Test Utilities ............. SKIPPED
> [INFO] Maven Artifact Resolver Utilities .................. SKIPPED
> [INFO] Maven Artifact Resolver Implementation ............. SKIPPED
> [INFO] Maven Artifact Resolver Connector Basic ............ SKIPPED
> [INFO] Maven Artifact Resolver Transport Classpath ........ SKIPPED
> [INFO] Maven Artifact Resolver Transport File ............. SKIPPED
> [INFO] Maven Artifact Resolver Transport HTTP ............. SKIPPED
> [INFO] Maven Artifact Resolver Transport Wagon ............ SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 36.998 s
> [INFO] Finished at: 2016-10-17T23:44:10+02:00
> [INFO] Final Memory: 36M/494M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-checkstyle-plugin:2.15:check
> (checkstyle-check) on project maven-resolver-api: You have 11 Checkstyle
> violations. -> [Help 1]
> [ERROR]
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Mime
View raw message