Re: Maven-enforcer-plugin's use of aether-util in transitive dependency

2019-05-14 Thread Tomo Suzuki
Hi Enrico,

The PR https://github.com/apache/maven-enforcer/pull/52  has been approved
(Thanks!) but not merged yet.
Is this something you can take care of, or should I take any action?

Regards,
Tomo

*From: *Tomo Suzuki 
*Date: *Mon, Mar 18, 2019 at 12:15 AM
*To: *Maven Developers List

Enrico,
>
> Created the PR. https://github.com/apache/maven-enforcer/pull/52
>
> Regards,
> Tomo
>
>
> On Sun, Mar 17, 2019 at 5:17 PM Enrico Olivelli 
> wrote:
>
>> Awesome
>> Let's see the PR
>>
>> Thanks
>> Enrico
>>
>> Il mer 13 mar 2019, 22:19 Tomo Suzuki  ha
>> scritto:
>>
>> > Hi Maven developers,
>> > (following "Contributing" section of maven-enforcer-plugin
>> > )
>> >
>> > I'm thinking to raise a PR to fix an issue below, so that
>> > maven-enforcer-plugin can work with maven-resolver-util without explicit
>> > "exclusion" element. Let me know what you think!
>> >
>> > While writing a custom enforcer rule, I encountered NoSuchMethodError
>> > org.eclipse.aether.util.ConfigUtils.getFloat. I believe it is caused by
>> > transitive dependency in org.eclipse.aether:aether-util. The class is
>> also
>> > in org.apache.maven.resolver:maven-resolver-util:1.3.1. A workaround
>> with
>> > exclusion element
>> > <
>> >
>> https://github.com/GoogleCloudPlatform/cloud-opensource-java/blob/master/enforcer-rules/pom.xml#L64
>> > >
>> > just worked fine for me but I'd like to contribute to fix the root
>> cause if
>> > possible.
>> >
>> > --
>> > Regards,
>> > Tomo
>> >
>>
>
>
> --
> Regards,
> Tomo
>


-- 
Regards,
Tomo


Re: Problems with checkstyle tests on Windows (Was [VOTE] Release Apache Maven Checkstyle Plugin version 3.1.0)

2019-05-14 Thread Enrico Olivelli
Thanks
I am able to reproduce the issue on a Windows box.
Still I can't understand why we aren't seeing problems on CI.

Eric,
do you have cycles to create a JIRA and send a Pull request ?
We can fix it in master.
As Tibor said, I think this is not a blocker for the 3.1.0 release.

Otherwise I will fix it when I have time, but not today


Thank you very much for reporting
Enrico



Il giorno mar 14 mag 2019 alle ore 16:24 Enrico Olivelli <
eolive...@gmail.com> ha scritto:

>
>
> Il giorno mar 14 mag 2019 alle ore 14:34 Tibor Digana <
> tibordig...@apache.org> ha scritto:
>
>> Two files in one IT are problematic but I don't think it is a problem for
>> your release.
>> The  CPD should be fixed and a method should be reused but again it is not
>> a reason to interrupt the vote.
>>
>> One more question. Why did you "git push" the history from Maven Release
>> plugin?
>> This should be done after the vote because yet you do not know the vote
>> result.
>>
>
> Please explain better.
> I apologize if I did a mistake, but I can't understand your concern.
>
> I have used these commands:
> mvn release:clean
> mvn release:prepare
> mvn release:perform
> "Closed" the  staged repository
>
> current master is 3.1.1-SNAPSHOT
> https://github.com/apache/maven-checkstyle-plugin
>
> tag is at: 3.1.0
>
> https://github.com/apache/maven-checkstyle-plugin/tree/maven-checkstyle-plugin-3.1.0
>
>
>
>
>
> Enrico
>
>
>
>>
>> Cheers
>> Tibor
>>
>> On Tue, May 14, 2019 at 2:11 PM Enrico Olivelli 
>> wrote:
>>
>> > I will get a windows box and try to reproduce.
>> > It is weird that on ASF Jenkins the build is passing even on windows
>> >
>> > Enrico
>> >
>> > -- Forwarded message -
>> > Da: Enrico Olivelli 
>> > Date: mar 14 mag 2019, 13:58
>> > Subject: Re: [VOTE] Release Apache Maven Checkstyle Plugin version 3.1.0
>> > To: Maven Developers List 
>> >
>> >
>> > Eric and Tibor,
>> > Thank you so much for your effort in testing Maven Checkstyle Plugin.
>> >
>> > This is the "official" VOTE thread, here we have to decide if the staged
>> > artifacts are good to be released or not.
>> >
>> > Feel free to cast a -1 if you think that the staged artifacts are not
>> > "stable" or there is any showstopper problem for the release.
>> >
>> > Let's move this discussion to a separate thread, something like
>> "Validation
>> > failures in Windows over current checkstyle plugin master branch")
>> >
>> > Enrico
>> >
>> >
>> >
>> >
>> > Il giorno mar 14 mag 2019 alle ore 13:51 Eric Lilja <
>> mindcoo...@gmail.com>
>> > ha scritto:
>> >
>> > > Tried overriding line.separator when running using
>> -Dline.separator="\n",
>> > > but then the builds fails (early) in maven-plugin-plugin:
>> > > [ERROR] Failed to execute goal
>> > > org.apache.maven.plugins:maven-plugin-plugin:3.5:descriptor
>> > > (default-descriptor) on project maven-checkstyle-plugin: Execution
>> > > default-descriptor of goal
>> > > org.apache.maven.plugins:maven-plugin-plugin:3.5:descriptor failed:
>> > > Requested line separator is invalid. -> [Help 1]
>> > > [ERROR]
>> > > [ERROR] To see the full stack trace of the errors, re-run Maven with
>> the
>> > -e
>> > > switch.
>> > > [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/PluginExecutionException
>> > >
>> > > Tried upgrading maven-plugin-plugin to 3.6.0 (lots of stuff
>> > > upgradeable...), but same error
>> > >
>> > > I also happened to notice this (probably unrelated, but wanted to
>> bring
>> > it
>> > > to attention anyway so it can be fixed) warning:
>> > > [INFO] java-annotations mojo extractor found 4 mojo descriptors.
>> > > [WARNING]
>> > >
>> > > Unexpected situation: destinationDirectory not defined in
>> > > maven-plugin-help.properties during help mojo source generation but
>> > > expected during XML descriptor generation.
>> > > [WARNING] Please check helpmojo goal version used in previous build
>> > phase.
>> > > [WARNING] If you just upgraded to plugin-tools >= 3.2 you must run a
>> > clean
>> > > build at least once.
>> > > [WARNING] Trying default location: target\generated-sources\plugin
>> > >
>> > > - Eric L
>> > >
>> > > On Tue, May 14, 2019 at 11:04 AM Eric Lilja 
>> > wrote:
>> > >
>> > > > I tried bumping checkstyle to 8.20, plus a few of the plexus
>> > > dependencies,
>> > > > but that just brought an additional failure... (to
>> > > > MCHECKSTYLE-70-multi-sourcefolder\pom.xml)  :-)
>> > > >
>> > > > I suppose the problem might be that the files has linux-style line
>> > breaks
>> > > > (this is desired for me, I don't want to convert to windows-style
>> line
>> > > > breaks locally), but the test think I should have windows-style line
>> > > > separators. It seems these files are generated by the tests because
>> I
>> > > tried
>> > > > 

Re: Problems with checkstyle tests on Windows (Was [VOTE] Release Apache Maven Checkstyle Plugin version 3.1.0)

2019-05-14 Thread Enrico Olivelli
Il giorno mar 14 mag 2019 alle ore 14:34 Tibor Digana <
tibordig...@apache.org> ha scritto:

> Two files in one IT are problematic but I don't think it is a problem for
> your release.
> The  CPD should be fixed and a method should be reused but again it is not
> a reason to interrupt the vote.
>
> One more question. Why did you "git push" the history from Maven Release
> plugin?
> This should be done after the vote because yet you do not know the vote
> result.
>

Please explain better.
I apologize if I did a mistake, but I can't understand your concern.

I have used these commands:
mvn release:clean
mvn release:prepare
mvn release:perform
"Closed" the  staged repository

current master is 3.1.1-SNAPSHOT
https://github.com/apache/maven-checkstyle-plugin

tag is at: 3.1.0
https://github.com/apache/maven-checkstyle-plugin/tree/maven-checkstyle-plugin-3.1.0





Enrico



>
> Cheers
> Tibor
>
> On Tue, May 14, 2019 at 2:11 PM Enrico Olivelli 
> wrote:
>
> > I will get a windows box and try to reproduce.
> > It is weird that on ASF Jenkins the build is passing even on windows
> >
> > Enrico
> >
> > -- Forwarded message -
> > Da: Enrico Olivelli 
> > Date: mar 14 mag 2019, 13:58
> > Subject: Re: [VOTE] Release Apache Maven Checkstyle Plugin version 3.1.0
> > To: Maven Developers List 
> >
> >
> > Eric and Tibor,
> > Thank you so much for your effort in testing Maven Checkstyle Plugin.
> >
> > This is the "official" VOTE thread, here we have to decide if the staged
> > artifacts are good to be released or not.
> >
> > Feel free to cast a -1 if you think that the staged artifacts are not
> > "stable" or there is any showstopper problem for the release.
> >
> > Let's move this discussion to a separate thread, something like
> "Validation
> > failures in Windows over current checkstyle plugin master branch")
> >
> > Enrico
> >
> >
> >
> >
> > Il giorno mar 14 mag 2019 alle ore 13:51 Eric Lilja <
> mindcoo...@gmail.com>
> > ha scritto:
> >
> > > Tried overriding line.separator when running using
> -Dline.separator="\n",
> > > but then the builds fails (early) in maven-plugin-plugin:
> > > [ERROR] Failed to execute goal
> > > org.apache.maven.plugins:maven-plugin-plugin:3.5:descriptor
> > > (default-descriptor) on project maven-checkstyle-plugin: Execution
> > > default-descriptor of goal
> > > org.apache.maven.plugins:maven-plugin-plugin:3.5:descriptor failed:
> > > Requested line separator is invalid. -> [Help 1]
> > > [ERROR]
> > > [ERROR] To see the full stack trace of the errors, re-run Maven with
> the
> > -e
> > > switch.
> > > [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/PluginExecutionException
> > >
> > > Tried upgrading maven-plugin-plugin to 3.6.0 (lots of stuff
> > > upgradeable...), but same error
> > >
> > > I also happened to notice this (probably unrelated, but wanted to bring
> > it
> > > to attention anyway so it can be fixed) warning:
> > > [INFO] java-annotations mojo extractor found 4 mojo descriptors.
> > > [WARNING]
> > >
> > > Unexpected situation: destinationDirectory not defined in
> > > maven-plugin-help.properties during help mojo source generation but
> > > expected during XML descriptor generation.
> > > [WARNING] Please check helpmojo goal version used in previous build
> > phase.
> > > [WARNING] If you just upgraded to plugin-tools >= 3.2 you must run a
> > clean
> > > build at least once.
> > > [WARNING] Trying default location: target\generated-sources\plugin
> > >
> > > - Eric L
> > >
> > > On Tue, May 14, 2019 at 11:04 AM Eric Lilja 
> > wrote:
> > >
> > > > I tried bumping checkstyle to 8.20, plus a few of the plexus
> > > dependencies,
> > > > but that just brought an additional failure... (to
> > > > MCHECKSTYLE-70-multi-sourcefolder\pom.xml)  :-)
> > > >
> > > > I suppose the problem might be that the files has linux-style line
> > breaks
> > > > (this is desired for me, I don't want to convert to windows-style
> line
> > > > breaks locally), but the test think I should have windows-style line
> > > > separators. It seems these files are generated by the tests because I
> > > tried
> > > > changing them to Windows style line breaks for re-running just to see
> > if
> > > > that would work, but those changes were overwritten)
> > > >
> > > > - Eric L
> > > >
> > > > On Tue, May 14, 2019 at 10:38 AM Eric Lilja 
> > > wrote:
> > > >
> > > >> I also see a failure for MCHECKSTYLE-54 on Windows. (Sorry, I didn't
> > try
> > > >> the source zip, just cloned master)
> > > >>
> > > >> I tested on one of our corporate laptops:
> > > >> Windows 10
> > > >> Cygwin 64-bit (I use it to clone the repo and use Maven)
> > > >> Maven 3.6.0
> > > >> Java 8 update 202
> > > >>
> > > >> The build log says:
> > > >> [INFO] There are 2 errors 

Re: Problems with checkstyle tests on Windows (Was [VOTE] Release Apache Maven Checkstyle Plugin version 3.1.0)

2019-05-14 Thread Eric Lilja
Since git settings may influence line separators when cloning and
Checkstyle seems to want read line separator to match System.lineSeparator,
maybe the test need to take full control back (from git) over the two files
in the test, to have a fully deterministic test input files.

- Eric L

On Tue, May 14, 2019 at 4:18 PM Eric Lilja  wrote:

> Hi, I edited the wrong files before when I changed line breaks (edited
> copies under target folder, silly me!). I changed the line separators to
> Windows-style for the two files under MCHECKSTYLE-54 (Mcheckstyle54.java
> and package.info) and the integration tests passes (expect for that other
> failure, MCHECKSTYLE-70-multi-sourcefolder\pom.xml, when bumping Checkstyle
> version to 8.20 I mentioned previously).
>
> Maybe your Windows node on Jenkins has git set-up to checkout files as
> \r\n, and that's why it works there (assuming the job is indeed cloning).
>
> A question I now get in my mind how that Checkstyle feature should handle
> the fact there is more than one type of line break (unfortunately) out
> there, depending on OS...
>
> - Eric L
>
>
> On Tue, May 14, 2019 at 3:08 PM Tibor Digana 
> wrote:
>
>> I wrote both files again, see the attachments (windows and Unix EOL).
>> To be faster, I am running the command *mvn checkstyle:check* from the
>> (IT target) path on my system
>> c:\vcs\github\maven-checkstyle-plugin\target\it\MCHECKSTYLE-54\src\main\java\org\apache\maven\plugins\checkstyle\mcheckstyle54\
>>
>> No idea why the linux EOL file fails on Windows system.
>>
>> Cheers
>> Tibor
>>
>>
>> On Tue, May 14, 2019 at 2:11 PM Enrico Olivelli 
>> wrote:
>>
>>> I will get a windows box and try to reproduce.
>>> It is weird that on ASF Jenkins the build is passing even on windows
>>>
>>> Enrico
>>>
>>> -- Forwarded message -
>>> Da: Enrico Olivelli 
>>> Date: mar 14 mag 2019, 13:58
>>> Subject: Re: [VOTE] Release Apache Maven Checkstyle Plugin version 3.1.0
>>> To: Maven Developers List 
>>>
>>>
>>> Eric and Tibor,
>>> Thank you so much for your effort in testing Maven Checkstyle Plugin.
>>>
>>> This is the "official" VOTE thread, here we have to decide if the staged
>>> artifacts are good to be released or not.
>>>
>>> Feel free to cast a -1 if you think that the staged artifacts are not
>>> "stable" or there is any showstopper problem for the release.
>>>
>>> Let's move this discussion to a separate thread, something like
>>> "Validation
>>> failures in Windows over current checkstyle plugin master branch")
>>>
>>> Enrico
>>>
>>>
>>>
>>>
>>> Il giorno mar 14 mag 2019 alle ore 13:51 Eric Lilja <
>>> mindcoo...@gmail.com>
>>> ha scritto:
>>>
>>> > Tried overriding line.separator when running using
>>> -Dline.separator="\n",
>>> > but then the builds fails (early) in maven-plugin-plugin:
>>> > [ERROR] Failed to execute goal
>>> > org.apache.maven.plugins:maven-plugin-plugin:3.5:descriptor
>>> > (default-descriptor) on project maven-checkstyle-plugin: Execution
>>> > default-descriptor of goal
>>> > org.apache.maven.plugins:maven-plugin-plugin:3.5:descriptor failed:
>>> > Requested line separator is invalid. -> [Help 1]
>>> > [ERROR]
>>> > [ERROR] To see the full stack trace of the errors, re-run Maven with
>>> the -e
>>> > switch.
>>> > [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/PluginExecutionException
>>> >
>>> > Tried upgrading maven-plugin-plugin to 3.6.0 (lots of stuff
>>> > upgradeable...), but same error
>>> >
>>> > I also happened to notice this (probably unrelated, but wanted to
>>> bring it
>>> > to attention anyway so it can be fixed) warning:
>>> > [INFO] java-annotations mojo extractor found 4 mojo descriptors.
>>> > [WARNING]
>>> >
>>> > Unexpected situation: destinationDirectory not defined in
>>> > maven-plugin-help.properties during help mojo source generation but
>>> > expected during XML descriptor generation.
>>> > [WARNING] Please check helpmojo goal version used in previous build
>>> phase.
>>> > [WARNING] If you just upgraded to plugin-tools >= 3.2 you must run a
>>> clean
>>> > build at least once.
>>> > [WARNING] Trying default location: target\generated-sources\plugin
>>> >
>>> > - Eric L
>>> >
>>> > On Tue, May 14, 2019 at 11:04 AM Eric Lilja 
>>> wrote:
>>> >
>>> > > I tried bumping checkstyle to 8.20, plus a few of the plexus
>>> > dependencies,
>>> > > but that just brought an additional failure... (to
>>> > > MCHECKSTYLE-70-multi-sourcefolder\pom.xml)  :-)
>>> > >
>>> > > I suppose the problem might be that the files has linux-style line
>>> breaks
>>> > > (this is desired for me, I don't want to convert to windows-style
>>> line
>>> > > breaks locally), but the test think I should have windows-style line
>>> > > separators. It seems these files are generated by the tests 

Re: Problems with checkstyle tests on Windows (Was [VOTE] Release Apache Maven Checkstyle Plugin version 3.1.0)

2019-05-14 Thread Eric Lilja
Hi, I edited the wrong files before when I changed line breaks (edited
copies under target folder, silly me!). I changed the line separators to
Windows-style for the two files under MCHECKSTYLE-54 (Mcheckstyle54.java
and package.info) and the integration tests passes (expect for that other
failure, MCHECKSTYLE-70-multi-sourcefolder\pom.xml, when bumping Checkstyle
version to 8.20 I mentioned previously).

Maybe your Windows node on Jenkins has git set-up to checkout files as
\r\n, and that's why it works there (assuming the job is indeed cloning).

A question I now get in my mind how that Checkstyle feature should handle
the fact there is more than one type of line break (unfortunately) out
there, depending on OS...

- Eric L


On Tue, May 14, 2019 at 3:08 PM Tibor Digana  wrote:

> I wrote both files again, see the attachments (windows and Unix EOL).
> To be faster, I am running the command *mvn checkstyle:check* from the (IT
> target) path on my system
> c:\vcs\github\maven-checkstyle-plugin\target\it\MCHECKSTYLE-54\src\main\java\org\apache\maven\plugins\checkstyle\mcheckstyle54\
>
> No idea why the linux EOL file fails on Windows system.
>
> Cheers
> Tibor
>
>
> On Tue, May 14, 2019 at 2:11 PM Enrico Olivelli 
> wrote:
>
>> I will get a windows box and try to reproduce.
>> It is weird that on ASF Jenkins the build is passing even on windows
>>
>> Enrico
>>
>> -- Forwarded message -
>> Da: Enrico Olivelli 
>> Date: mar 14 mag 2019, 13:58
>> Subject: Re: [VOTE] Release Apache Maven Checkstyle Plugin version 3.1.0
>> To: Maven Developers List 
>>
>>
>> Eric and Tibor,
>> Thank you so much for your effort in testing Maven Checkstyle Plugin.
>>
>> This is the "official" VOTE thread, here we have to decide if the staged
>> artifacts are good to be released or not.
>>
>> Feel free to cast a -1 if you think that the staged artifacts are not
>> "stable" or there is any showstopper problem for the release.
>>
>> Let's move this discussion to a separate thread, something like
>> "Validation
>> failures in Windows over current checkstyle plugin master branch")
>>
>> Enrico
>>
>>
>>
>>
>> Il giorno mar 14 mag 2019 alle ore 13:51 Eric Lilja > >
>> ha scritto:
>>
>> > Tried overriding line.separator when running using
>> -Dline.separator="\n",
>> > but then the builds fails (early) in maven-plugin-plugin:
>> > [ERROR] Failed to execute goal
>> > org.apache.maven.plugins:maven-plugin-plugin:3.5:descriptor
>> > (default-descriptor) on project maven-checkstyle-plugin: Execution
>> > default-descriptor of goal
>> > org.apache.maven.plugins:maven-plugin-plugin:3.5:descriptor failed:
>> > Requested line separator is invalid. -> [Help 1]
>> > [ERROR]
>> > [ERROR] To see the full stack trace of the errors, re-run Maven with
>> the -e
>> > switch.
>> > [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/PluginExecutionException
>> >
>> > Tried upgrading maven-plugin-plugin to 3.6.0 (lots of stuff
>> > upgradeable...), but same error
>> >
>> > I also happened to notice this (probably unrelated, but wanted to bring
>> it
>> > to attention anyway so it can be fixed) warning:
>> > [INFO] java-annotations mojo extractor found 4 mojo descriptors.
>> > [WARNING]
>> >
>> > Unexpected situation: destinationDirectory not defined in
>> > maven-plugin-help.properties during help mojo source generation but
>> > expected during XML descriptor generation.
>> > [WARNING] Please check helpmojo goal version used in previous build
>> phase.
>> > [WARNING] If you just upgraded to plugin-tools >= 3.2 you must run a
>> clean
>> > build at least once.
>> > [WARNING] Trying default location: target\generated-sources\plugin
>> >
>> > - Eric L
>> >
>> > On Tue, May 14, 2019 at 11:04 AM Eric Lilja 
>> wrote:
>> >
>> > > I tried bumping checkstyle to 8.20, plus a few of the plexus
>> > dependencies,
>> > > but that just brought an additional failure... (to
>> > > MCHECKSTYLE-70-multi-sourcefolder\pom.xml)  :-)
>> > >
>> > > I suppose the problem might be that the files has linux-style line
>> breaks
>> > > (this is desired for me, I don't want to convert to windows-style line
>> > > breaks locally), but the test think I should have windows-style line
>> > > separators. It seems these files are generated by the tests because I
>> > tried
>> > > changing them to Windows style line breaks for re-running just to see
>> if
>> > > that would work, but those changes were overwritten)
>> > >
>> > > - Eric L
>> > >
>> > > On Tue, May 14, 2019 at 10:38 AM Eric Lilja 
>> > wrote:
>> > >
>> > >> I also see a failure for MCHECKSTYLE-54 on Windows. (Sorry, I didn't
>> try
>> > >> the source zip, just cloned master)
>> > >>
>> > >> I tested on one of our corporate laptops:
>> > >> Windows 10
>> > >> Cygwin 64-bit (I use it to 

Re: Problems with checkstyle tests on Windows (Was [VOTE] Release Apache Maven Checkstyle Plugin version 3.1.0)

2019-05-14 Thread Tibor Digana
I wrote both files again, see the attachments (windows and Unix EOL).
To be faster, I am running the command *mvn checkstyle:check* from the (IT
target) path on my system
c:\vcs\github\maven-checkstyle-plugin\target\it\MCHECKSTYLE-54\src\main\java\org\apache\maven\plugins\checkstyle\mcheckstyle54\

No idea why the linux EOL file fails on Windows system.

Cheers
Tibor


On Tue, May 14, 2019 at 2:11 PM Enrico Olivelli  wrote:

> I will get a windows box and try to reproduce.
> It is weird that on ASF Jenkins the build is passing even on windows
>
> Enrico
>
> -- Forwarded message -
> Da: Enrico Olivelli 
> Date: mar 14 mag 2019, 13:58
> Subject: Re: [VOTE] Release Apache Maven Checkstyle Plugin version 3.1.0
> To: Maven Developers List 
>
>
> Eric and Tibor,
> Thank you so much for your effort in testing Maven Checkstyle Plugin.
>
> This is the "official" VOTE thread, here we have to decide if the staged
> artifacts are good to be released or not.
>
> Feel free to cast a -1 if you think that the staged artifacts are not
> "stable" or there is any showstopper problem for the release.
>
> Let's move this discussion to a separate thread, something like "Validation
> failures in Windows over current checkstyle plugin master branch")
>
> Enrico
>
>
>
>
> Il giorno mar 14 mag 2019 alle ore 13:51 Eric Lilja 
> ha scritto:
>
> > Tried overriding line.separator when running using -Dline.separator="\n",
> > but then the builds fails (early) in maven-plugin-plugin:
> > [ERROR] Failed to execute goal
> > org.apache.maven.plugins:maven-plugin-plugin:3.5:descriptor
> > (default-descriptor) on project maven-checkstyle-plugin: Execution
> > default-descriptor of goal
> > org.apache.maven.plugins:maven-plugin-plugin:3.5:descriptor failed:
> > Requested line separator is invalid. -> [Help 1]
> > [ERROR]
> > [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e
> > switch.
> > [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/PluginExecutionException
> >
> > Tried upgrading maven-plugin-plugin to 3.6.0 (lots of stuff
> > upgradeable...), but same error
> >
> > I also happened to notice this (probably unrelated, but wanted to bring
> it
> > to attention anyway so it can be fixed) warning:
> > [INFO] java-annotations mojo extractor found 4 mojo descriptors.
> > [WARNING]
> >
> > Unexpected situation: destinationDirectory not defined in
> > maven-plugin-help.properties during help mojo source generation but
> > expected during XML descriptor generation.
> > [WARNING] Please check helpmojo goal version used in previous build
> phase.
> > [WARNING] If you just upgraded to plugin-tools >= 3.2 you must run a
> clean
> > build at least once.
> > [WARNING] Trying default location: target\generated-sources\plugin
> >
> > - Eric L
> >
> > On Tue, May 14, 2019 at 11:04 AM Eric Lilja 
> wrote:
> >
> > > I tried bumping checkstyle to 8.20, plus a few of the plexus
> > dependencies,
> > > but that just brought an additional failure... (to
> > > MCHECKSTYLE-70-multi-sourcefolder\pom.xml)  :-)
> > >
> > > I suppose the problem might be that the files has linux-style line
> breaks
> > > (this is desired for me, I don't want to convert to windows-style line
> > > breaks locally), but the test think I should have windows-style line
> > > separators. It seems these files are generated by the tests because I
> > tried
> > > changing them to Windows style line breaks for re-running just to see
> if
> > > that would work, but those changes were overwritten)
> > >
> > > - Eric L
> > >
> > > On Tue, May 14, 2019 at 10:38 AM Eric Lilja 
> > wrote:
> > >
> > >> I also see a failure for MCHECKSTYLE-54 on Windows. (Sorry, I didn't
> try
> > >> the source zip, just cloned master)
> > >>
> > >> I tested on one of our corporate laptops:
> > >> Windows 10
> > >> Cygwin 64-bit (I use it to clone the repo and use Maven)
> > >> Maven 3.6.0
> > >> Java 8 update 202
> > >>
> > >> The build log says:
> > >> [INFO] There are 2 errors reported by Checkstyle 8.19 with
> > sun_checks.xml
> > >> ruleset.
> > >> [ERROR]
> > >>
> >
> src\main\java\org\apache\maven\plugins\checkstyle\mcheckstyle54\Mcheckstyle54.java:[1]
> > >> (misc) NewlineAtEndOfFile: File does not end with a newline.
> > >> [ERROR]
> > >>
> >
> src\main\java\org\apache\maven\plugins\checkstyle\mcheckstyle54\package-info.java:[1]
> > >> (misc) NewlineAtEndOfFile: File does not end with a newline.
> > >>
> > >> These two files end with unix-style line breaks (as expected with my
> > >> setup).
> > >>
> > >> - Eric L
> > >>
> > >>
> > >> On Tue, May 14, 2019 at 8:10 AM Enrico Olivelli 
> > >> wrote:
> > >>
> > >>> Il lun 13 mag 2019, 23:48 Tibor Digana  ha
> > >>> scritto:
> > >>>
> > >>> > Robert, I did *not* use the source zip.
> > >>> >
> > >>>

Re: Problems with checkstyle tests on Windows (Was [VOTE] Release Apache Maven Checkstyle Plugin version 3.1.0)

2019-05-14 Thread Tibor Digana
Two files in one IT are problematic but I don't think it is a problem for
your release.
The  CPD should be fixed and a method should be reused but again it is not
a reason to interrupt the vote.

One more question. Why did you "git push" the history from Maven Release
plugin?
This should be done after the vote because yet you do not know the vote
result.

Cheers
Tibor

On Tue, May 14, 2019 at 2:11 PM Enrico Olivelli  wrote:

> I will get a windows box and try to reproduce.
> It is weird that on ASF Jenkins the build is passing even on windows
>
> Enrico
>
> -- Forwarded message -
> Da: Enrico Olivelli 
> Date: mar 14 mag 2019, 13:58
> Subject: Re: [VOTE] Release Apache Maven Checkstyle Plugin version 3.1.0
> To: Maven Developers List 
>
>
> Eric and Tibor,
> Thank you so much for your effort in testing Maven Checkstyle Plugin.
>
> This is the "official" VOTE thread, here we have to decide if the staged
> artifacts are good to be released or not.
>
> Feel free to cast a -1 if you think that the staged artifacts are not
> "stable" or there is any showstopper problem for the release.
>
> Let's move this discussion to a separate thread, something like "Validation
> failures in Windows over current checkstyle plugin master branch")
>
> Enrico
>
>
>
>
> Il giorno mar 14 mag 2019 alle ore 13:51 Eric Lilja 
> ha scritto:
>
> > Tried overriding line.separator when running using -Dline.separator="\n",
> > but then the builds fails (early) in maven-plugin-plugin:
> > [ERROR] Failed to execute goal
> > org.apache.maven.plugins:maven-plugin-plugin:3.5:descriptor
> > (default-descriptor) on project maven-checkstyle-plugin: Execution
> > default-descriptor of goal
> > org.apache.maven.plugins:maven-plugin-plugin:3.5:descriptor failed:
> > Requested line separator is invalid. -> [Help 1]
> > [ERROR]
> > [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e
> > switch.
> > [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/PluginExecutionException
> >
> > Tried upgrading maven-plugin-plugin to 3.6.0 (lots of stuff
> > upgradeable...), but same error
> >
> > I also happened to notice this (probably unrelated, but wanted to bring
> it
> > to attention anyway so it can be fixed) warning:
> > [INFO] java-annotations mojo extractor found 4 mojo descriptors.
> > [WARNING]
> >
> > Unexpected situation: destinationDirectory not defined in
> > maven-plugin-help.properties during help mojo source generation but
> > expected during XML descriptor generation.
> > [WARNING] Please check helpmojo goal version used in previous build
> phase.
> > [WARNING] If you just upgraded to plugin-tools >= 3.2 you must run a
> clean
> > build at least once.
> > [WARNING] Trying default location: target\generated-sources\plugin
> >
> > - Eric L
> >
> > On Tue, May 14, 2019 at 11:04 AM Eric Lilja 
> wrote:
> >
> > > I tried bumping checkstyle to 8.20, plus a few of the plexus
> > dependencies,
> > > but that just brought an additional failure... (to
> > > MCHECKSTYLE-70-multi-sourcefolder\pom.xml)  :-)
> > >
> > > I suppose the problem might be that the files has linux-style line
> breaks
> > > (this is desired for me, I don't want to convert to windows-style line
> > > breaks locally), but the test think I should have windows-style line
> > > separators. It seems these files are generated by the tests because I
> > tried
> > > changing them to Windows style line breaks for re-running just to see
> if
> > > that would work, but those changes were overwritten)
> > >
> > > - Eric L
> > >
> > > On Tue, May 14, 2019 at 10:38 AM Eric Lilja 
> > wrote:
> > >
> > >> I also see a failure for MCHECKSTYLE-54 on Windows. (Sorry, I didn't
> try
> > >> the source zip, just cloned master)
> > >>
> > >> I tested on one of our corporate laptops:
> > >> Windows 10
> > >> Cygwin 64-bit (I use it to clone the repo and use Maven)
> > >> Maven 3.6.0
> > >> Java 8 update 202
> > >>
> > >> The build log says:
> > >> [INFO] There are 2 errors reported by Checkstyle 8.19 with
> > sun_checks.xml
> > >> ruleset.
> > >> [ERROR]
> > >>
> >
> src\main\java\org\apache\maven\plugins\checkstyle\mcheckstyle54\Mcheckstyle54.java:[1]
> > >> (misc) NewlineAtEndOfFile: File does not end with a newline.
> > >> [ERROR]
> > >>
> >
> src\main\java\org\apache\maven\plugins\checkstyle\mcheckstyle54\package-info.java:[1]
> > >> (misc) NewlineAtEndOfFile: File does not end with a newline.
> > >>
> > >> These two files end with unix-style line breaks (as expected with my
> > >> setup).
> > >>
> > >> - Eric L
> > >>
> > >>
> > >> On Tue, May 14, 2019 at 8:10 AM Enrico Olivelli 
> > >> wrote:
> > >>
> > >>> Il lun 13 mag 2019, 23:48 Tibor Digana  ha
> > >>> scritto:
> > >>>
> > >>> > Robert, I did *not* use the source zip.
> > >>> >
> > >>>

Problems with checkstyle tests on Windows (Was [VOTE] Release Apache Maven Checkstyle Plugin version 3.1.0)

2019-05-14 Thread Enrico Olivelli
I will get a windows box and try to reproduce.
It is weird that on ASF Jenkins the build is passing even on windows

Enrico

-- Forwarded message -
Da: Enrico Olivelli 
Date: mar 14 mag 2019, 13:58
Subject: Re: [VOTE] Release Apache Maven Checkstyle Plugin version 3.1.0
To: Maven Developers List 


Eric and Tibor,
Thank you so much for your effort in testing Maven Checkstyle Plugin.

This is the "official" VOTE thread, here we have to decide if the staged
artifacts are good to be released or not.

Feel free to cast a -1 if you think that the staged artifacts are not
"stable" or there is any showstopper problem for the release.

Let's move this discussion to a separate thread, something like "Validation
failures in Windows over current checkstyle plugin master branch")

Enrico




Il giorno mar 14 mag 2019 alle ore 13:51 Eric Lilja 
ha scritto:

> Tried overriding line.separator when running using -Dline.separator="\n",
> but then the builds fails (early) in maven-plugin-plugin:
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-plugin-plugin:3.5:descriptor
> (default-descriptor) on project maven-checkstyle-plugin: Execution
> default-descriptor of goal
> org.apache.maven.plugins:maven-plugin-plugin:3.5:descriptor failed:
> Requested line separator is invalid. -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [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/PluginExecutionException
>
> Tried upgrading maven-plugin-plugin to 3.6.0 (lots of stuff
> upgradeable...), but same error
>
> I also happened to notice this (probably unrelated, but wanted to bring it
> to attention anyway so it can be fixed) warning:
> [INFO] java-annotations mojo extractor found 4 mojo descriptors.
> [WARNING]
>
> Unexpected situation: destinationDirectory not defined in
> maven-plugin-help.properties during help mojo source generation but
> expected during XML descriptor generation.
> [WARNING] Please check helpmojo goal version used in previous build phase.
> [WARNING] If you just upgraded to plugin-tools >= 3.2 you must run a clean
> build at least once.
> [WARNING] Trying default location: target\generated-sources\plugin
>
> - Eric L
>
> On Tue, May 14, 2019 at 11:04 AM Eric Lilja  wrote:
>
> > I tried bumping checkstyle to 8.20, plus a few of the plexus
> dependencies,
> > but that just brought an additional failure... (to
> > MCHECKSTYLE-70-multi-sourcefolder\pom.xml)  :-)
> >
> > I suppose the problem might be that the files has linux-style line breaks
> > (this is desired for me, I don't want to convert to windows-style line
> > breaks locally), but the test think I should have windows-style line
> > separators. It seems these files are generated by the tests because I
> tried
> > changing them to Windows style line breaks for re-running just to see if
> > that would work, but those changes were overwritten)
> >
> > - Eric L
> >
> > On Tue, May 14, 2019 at 10:38 AM Eric Lilja 
> wrote:
> >
> >> I also see a failure for MCHECKSTYLE-54 on Windows. (Sorry, I didn't try
> >> the source zip, just cloned master)
> >>
> >> I tested on one of our corporate laptops:
> >> Windows 10
> >> Cygwin 64-bit (I use it to clone the repo and use Maven)
> >> Maven 3.6.0
> >> Java 8 update 202
> >>
> >> The build log says:
> >> [INFO] There are 2 errors reported by Checkstyle 8.19 with
> sun_checks.xml
> >> ruleset.
> >> [ERROR]
> >>
> src\main\java\org\apache\maven\plugins\checkstyle\mcheckstyle54\Mcheckstyle54.java:[1]
> >> (misc) NewlineAtEndOfFile: File does not end with a newline.
> >> [ERROR]
> >>
> src\main\java\org\apache\maven\plugins\checkstyle\mcheckstyle54\package-info.java:[1]
> >> (misc) NewlineAtEndOfFile: File does not end with a newline.
> >>
> >> These two files end with unix-style line breaks (as expected with my
> >> setup).
> >>
> >> - Eric L
> >>
> >>
> >> On Tue, May 14, 2019 at 8:10 AM Enrico Olivelli 
> >> wrote:
> >>
> >>> Il lun 13 mag 2019, 23:48 Tibor Digana  ha
> >>> scritto:
> >>>
> >>> > Robert, I did *not* use the source zip.
> >>> >
> >>>
> >>> IMHO we should vote on the staged zip
> >>>
> >>>
> >>> > git clone
> https://gitbox.apache.org/repos/asf/maven-checkstyle-plugin
> >>> > Oracle jdk 1.8.0u212, Maven 3.3.9, Windows 10
> >>> >
> >>>
> >>> This is what CI does and tests are passing.
> >>>
> >>> Do you have some global git configuration?
> >>>
> >>> Enrico
> >>>
> >>> >
> >>> > I see there is a new line, but the checkstyle does not care if you
> put
> >>> one
> >>> > or two lines.
> >>> > No idea why.
> >>> >
> >>> > Even if you go to the target and run it from the folder
> >>> > c:\vcs\github\maven-checkstyle-plugin\target\it\MCHECKSTYLE-54\
> >>> > it's the same as if you run the project root - mvn verify -P

Re: [VOTE] Release Apache Maven Checkstyle Plugin version 3.1.0

2019-05-14 Thread Enrico Olivelli
Eric and Tibor,
Thank you so much for your effort in testing Maven Checkstyle Plugin.

This is the "official" VOTE thread, here we have to decide if the staged
artifacts are good to be released or not.

Feel free to cast a -1 if you think that the staged artifacts are not
"stable" or there is any showstopper problem for the release.

Let's move this discussion to a separate thread, something like "Validation
failures in Windows over current checkstyle plugin master branch")

Enrico




Il giorno mar 14 mag 2019 alle ore 13:51 Eric Lilja 
ha scritto:

> Tried overriding line.separator when running using -Dline.separator="\n",
> but then the builds fails (early) in maven-plugin-plugin:
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-plugin-plugin:3.5:descriptor
> (default-descriptor) on project maven-checkstyle-plugin: Execution
> default-descriptor of goal
> org.apache.maven.plugins:maven-plugin-plugin:3.5:descriptor failed:
> Requested line separator is invalid. -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [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/PluginExecutionException
>
> Tried upgrading maven-plugin-plugin to 3.6.0 (lots of stuff
> upgradeable...), but same error
>
> I also happened to notice this (probably unrelated, but wanted to bring it
> to attention anyway so it can be fixed) warning:
> [INFO] java-annotations mojo extractor found 4 mojo descriptors.
> [WARNING]
>
> Unexpected situation: destinationDirectory not defined in
> maven-plugin-help.properties during help mojo source generation but
> expected during XML descriptor generation.
> [WARNING] Please check helpmojo goal version used in previous build phase.
> [WARNING] If you just upgraded to plugin-tools >= 3.2 you must run a clean
> build at least once.
> [WARNING] Trying default location: target\generated-sources\plugin
>
> - Eric L
>
> On Tue, May 14, 2019 at 11:04 AM Eric Lilja  wrote:
>
> > I tried bumping checkstyle to 8.20, plus a few of the plexus
> dependencies,
> > but that just brought an additional failure... (to
> > MCHECKSTYLE-70-multi-sourcefolder\pom.xml)  :-)
> >
> > I suppose the problem might be that the files has linux-style line breaks
> > (this is desired for me, I don't want to convert to windows-style line
> > breaks locally), but the test think I should have windows-style line
> > separators. It seems these files are generated by the tests because I
> tried
> > changing them to Windows style line breaks for re-running just to see if
> > that would work, but those changes were overwritten)
> >
> > - Eric L
> >
> > On Tue, May 14, 2019 at 10:38 AM Eric Lilja 
> wrote:
> >
> >> I also see a failure for MCHECKSTYLE-54 on Windows. (Sorry, I didn't try
> >> the source zip, just cloned master)
> >>
> >> I tested on one of our corporate laptops:
> >> Windows 10
> >> Cygwin 64-bit (I use it to clone the repo and use Maven)
> >> Maven 3.6.0
> >> Java 8 update 202
> >>
> >> The build log says:
> >> [INFO] There are 2 errors reported by Checkstyle 8.19 with
> sun_checks.xml
> >> ruleset.
> >> [ERROR]
> >>
> src\main\java\org\apache\maven\plugins\checkstyle\mcheckstyle54\Mcheckstyle54.java:[1]
> >> (misc) NewlineAtEndOfFile: File does not end with a newline.
> >> [ERROR]
> >>
> src\main\java\org\apache\maven\plugins\checkstyle\mcheckstyle54\package-info.java:[1]
> >> (misc) NewlineAtEndOfFile: File does not end with a newline.
> >>
> >> These two files end with unix-style line breaks (as expected with my
> >> setup).
> >>
> >> - Eric L
> >>
> >>
> >> On Tue, May 14, 2019 at 8:10 AM Enrico Olivelli 
> >> wrote:
> >>
> >>> Il lun 13 mag 2019, 23:48 Tibor Digana  ha
> >>> scritto:
> >>>
> >>> > Robert, I did *not* use the source zip.
> >>> >
> >>>
> >>> IMHO we should vote on the staged zip
> >>>
> >>>
> >>> > git clone
> https://gitbox.apache.org/repos/asf/maven-checkstyle-plugin
> >>> > Oracle jdk 1.8.0u212, Maven 3.3.9, Windows 10
> >>> >
> >>>
> >>> This is what CI does and tests are passing.
> >>>
> >>> Do you have some global git configuration?
> >>>
> >>> Enrico
> >>>
> >>> >
> >>> > I see there is a new line, but the checkstyle does not care if you
> put
> >>> one
> >>> > or two lines.
> >>> > No idea why.
> >>> >
> >>> > Even if you go to the target and run it from the folder
> >>> > c:\vcs\github\maven-checkstyle-plugin\target\it\MCHECKSTYLE-54\
> >>> > it's the same as if you run the project root - mvn verify -P
> >>> > run-its,quality-checks
> >>> >
> >>> >
> >>> > *mvn -nsu checkstyle:check*
> >>> >
> >>> > [INFO] --- maven-checkstyle-plugin:3.1.1-SNAPSHOT:check
> (default-cli) @
> >>> > mcheckstyle-54 ---
> >>> > [INFO] There are 2 errors reported by Checkstyle 8.19 with
> >>> sun_checks.xml
> >>> > ruleset.
> >>> > 

Re: [VOTE] Release Apache Maven Checkstyle Plugin version 3.1.0

2019-05-14 Thread Eric Lilja
Tried overriding line.separator when running using -Dline.separator="\n",
but then the builds fails (early) in maven-plugin-plugin:
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-plugin-plugin:3.5:descriptor
(default-descriptor) on project maven-checkstyle-plugin: Execution
default-descriptor of goal
org.apache.maven.plugins:maven-plugin-plugin:3.5:descriptor failed:
Requested line separator is invalid. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[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/PluginExecutionException

Tried upgrading maven-plugin-plugin to 3.6.0 (lots of stuff
upgradeable...), but same error

I also happened to notice this (probably unrelated, but wanted to bring it
to attention anyway so it can be fixed) warning:
[INFO] java-annotations mojo extractor found 4 mojo descriptors.
[WARNING]

Unexpected situation: destinationDirectory not defined in
maven-plugin-help.properties during help mojo source generation but
expected during XML descriptor generation.
[WARNING] Please check helpmojo goal version used in previous build phase.
[WARNING] If you just upgraded to plugin-tools >= 3.2 you must run a clean
build at least once.
[WARNING] Trying default location: target\generated-sources\plugin

- Eric L

On Tue, May 14, 2019 at 11:04 AM Eric Lilja  wrote:

> I tried bumping checkstyle to 8.20, plus a few of the plexus dependencies,
> but that just brought an additional failure... (to
> MCHECKSTYLE-70-multi-sourcefolder\pom.xml)  :-)
>
> I suppose the problem might be that the files has linux-style line breaks
> (this is desired for me, I don't want to convert to windows-style line
> breaks locally), but the test think I should have windows-style line
> separators. It seems these files are generated by the tests because I tried
> changing them to Windows style line breaks for re-running just to see if
> that would work, but those changes were overwritten)
>
> - Eric L
>
> On Tue, May 14, 2019 at 10:38 AM Eric Lilja  wrote:
>
>> I also see a failure for MCHECKSTYLE-54 on Windows. (Sorry, I didn't try
>> the source zip, just cloned master)
>>
>> I tested on one of our corporate laptops:
>> Windows 10
>> Cygwin 64-bit (I use it to clone the repo and use Maven)
>> Maven 3.6.0
>> Java 8 update 202
>>
>> The build log says:
>> [INFO] There are 2 errors reported by Checkstyle 8.19 with sun_checks.xml
>> ruleset.
>> [ERROR]
>> src\main\java\org\apache\maven\plugins\checkstyle\mcheckstyle54\Mcheckstyle54.java:[1]
>> (misc) NewlineAtEndOfFile: File does not end with a newline.
>> [ERROR]
>> src\main\java\org\apache\maven\plugins\checkstyle\mcheckstyle54\package-info.java:[1]
>> (misc) NewlineAtEndOfFile: File does not end with a newline.
>>
>> These two files end with unix-style line breaks (as expected with my
>> setup).
>>
>> - Eric L
>>
>>
>> On Tue, May 14, 2019 at 8:10 AM Enrico Olivelli 
>> wrote:
>>
>>> Il lun 13 mag 2019, 23:48 Tibor Digana  ha
>>> scritto:
>>>
>>> > Robert, I did *not* use the source zip.
>>> >
>>>
>>> IMHO we should vote on the staged zip
>>>
>>>
>>> > git clone https://gitbox.apache.org/repos/asf/maven-checkstyle-plugin
>>> > Oracle jdk 1.8.0u212, Maven 3.3.9, Windows 10
>>> >
>>>
>>> This is what CI does and tests are passing.
>>>
>>> Do you have some global git configuration?
>>>
>>> Enrico
>>>
>>> >
>>> > I see there is a new line, but the checkstyle does not care if you put
>>> one
>>> > or two lines.
>>> > No idea why.
>>> >
>>> > Even if you go to the target and run it from the folder
>>> > c:\vcs\github\maven-checkstyle-plugin\target\it\MCHECKSTYLE-54\
>>> > it's the same as if you run the project root - mvn verify -P
>>> > run-its,quality-checks
>>> >
>>> >
>>> > *mvn -nsu checkstyle:check*
>>> >
>>> > [INFO] --- maven-checkstyle-plugin:3.1.1-SNAPSHOT:check (default-cli) @
>>> > mcheckstyle-54 ---
>>> > [INFO] There are 2 errors reported by Checkstyle 8.19 with
>>> sun_checks.xml
>>> > ruleset.
>>> > [ERROR]
>>> >
>>> >
>>> src\main\java\org\apache\maven\plugins\checkstyle\mcheckstyle54\Mcheckstyle54.java:[1]
>>> > (misc) NewlineAtEndOfFile: File does not end with a newline.
>>> > [ERROR]
>>> >
>>> >
>>> src\main\java\org\apache\maven\plugins\checkstyle\mcheckstyle54\package-info.java:[1]
>>> > (misc) NewlineAtEndOfFile: File does not end with a newline.
>>> > [INFO]
>>> >
>>> 
>>> > [INFO] BUILD FAILURE
>>> > [INFO]
>>> >
>>> 
>>> > [INFO] Total time: 3.450 s
>>> > [INFO] Finished at: 2019-05-13T23:42:55+02:00
>>> > [INFO] Final Memory: 12M/193M
>>> > [INFO]
>>> >
>>> 
>>> > [ERROR] 

Re: [VOTE] Release Apache Maven Checkstyle Plugin version 3.1.0

2019-05-14 Thread Eric Lilja
I tried bumping checkstyle to 8.20, plus a few of the plexus dependencies,
but that just brought an additional failure... (to
MCHECKSTYLE-70-multi-sourcefolder\pom.xml)  :-)

I suppose the problem might be that the files has linux-style line breaks
(this is desired for me, I don't want to convert to windows-style line
breaks locally), but the test think I should have windows-style line
separators. It seems these files are generated by the tests because I tried
changing them to Windows style line breaks for re-running just to see if
that would work, but those changes were overwritten)

- Eric L

On Tue, May 14, 2019 at 10:38 AM Eric Lilja  wrote:

> I also see a failure for MCHECKSTYLE-54 on Windows. (Sorry, I didn't try
> the source zip, just cloned master)
>
> I tested on one of our corporate laptops:
> Windows 10
> Cygwin 64-bit (I use it to clone the repo and use Maven)
> Maven 3.6.0
> Java 8 update 202
>
> The build log says:
> [INFO] There are 2 errors reported by Checkstyle 8.19 with sun_checks.xml
> ruleset.
> [ERROR]
> src\main\java\org\apache\maven\plugins\checkstyle\mcheckstyle54\Mcheckstyle54.java:[1]
> (misc) NewlineAtEndOfFile: File does not end with a newline.
> [ERROR]
> src\main\java\org\apache\maven\plugins\checkstyle\mcheckstyle54\package-info.java:[1]
> (misc) NewlineAtEndOfFile: File does not end with a newline.
>
> These two files end with unix-style line breaks (as expected with my
> setup).
>
> - Eric L
>
>
> On Tue, May 14, 2019 at 8:10 AM Enrico Olivelli 
> wrote:
>
>> Il lun 13 mag 2019, 23:48 Tibor Digana  ha
>> scritto:
>>
>> > Robert, I did *not* use the source zip.
>> >
>>
>> IMHO we should vote on the staged zip
>>
>>
>> > git clone https://gitbox.apache.org/repos/asf/maven-checkstyle-plugin
>> > Oracle jdk 1.8.0u212, Maven 3.3.9, Windows 10
>> >
>>
>> This is what CI does and tests are passing.
>>
>> Do you have some global git configuration?
>>
>> Enrico
>>
>> >
>> > I see there is a new line, but the checkstyle does not care if you put
>> one
>> > or two lines.
>> > No idea why.
>> >
>> > Even if you go to the target and run it from the folder
>> > c:\vcs\github\maven-checkstyle-plugin\target\it\MCHECKSTYLE-54\
>> > it's the same as if you run the project root - mvn verify -P
>> > run-its,quality-checks
>> >
>> >
>> > *mvn -nsu checkstyle:check*
>> >
>> > [INFO] --- maven-checkstyle-plugin:3.1.1-SNAPSHOT:check (default-cli) @
>> > mcheckstyle-54 ---
>> > [INFO] There are 2 errors reported by Checkstyle 8.19 with
>> sun_checks.xml
>> > ruleset.
>> > [ERROR]
>> >
>> >
>> src\main\java\org\apache\maven\plugins\checkstyle\mcheckstyle54\Mcheckstyle54.java:[1]
>> > (misc) NewlineAtEndOfFile: File does not end with a newline.
>> > [ERROR]
>> >
>> >
>> src\main\java\org\apache\maven\plugins\checkstyle\mcheckstyle54\package-info.java:[1]
>> > (misc) NewlineAtEndOfFile: File does not end with a newline.
>> > [INFO]
>> > 
>> > [INFO] BUILD FAILURE
>> > [INFO]
>> > 
>> > [INFO] Total time: 3.450 s
>> > [INFO] Finished at: 2019-05-13T23:42:55+02:00
>> > [INFO] Final Memory: 12M/193M
>> > [INFO]
>> > 
>> > [ERROR] Failed to execute goal
>> > org.apache.maven.plugins:maven-checkstyle-plugin:3.1.1-SNAPSHOT:check
>> > (default-cli) on project mcheckstyle-54: You have 2 Checkstyle
>> violations.
>> > -> [Help 1]
>> > [ERROR]
>> > [ERROR] To see the full stack trace of the errors, re-run Maven with
>> the -e
>> > switch.
>> > [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
>> >
>> >
>> > On Mon, May 13, 2019 at 10:29 PM Robert Scholte 
>> > wrote:
>> >
>> > > This can happen when source-release.zip was created on a different OS
>> > > compared to the verifying OS.
>> > >
>> > > With Git it will switch to the line endings of the operating system,
>> but
>> > > with a zip that's not possible.
>> > >
>> > > I'd say not blocking, but the IT needs to be fixed to handle these
>> > > situations.
>> > >
>> > > Robert
>> > >
>> > >
>> > > On Mon, 13 May 2019 21:55:27 +0200, Enrico Olivelli <
>> eolive...@gmail.com
>> > >
>> > >
>> > > wrote:
>> > >
>> > > > Tibor
>> > > > It is strage all its are passing on CI.
>> > > > Are you sure you have correcly unpacked the package?
>> > > >
>> > > >
>> > > > Il lun 13 mag 2019, 21:23 Tibor Digana  ha
>> > > > scritto:
>> > > >
>> > > >> checked the sha512 of src zip, ok
>> > > >> checked the build, failed (mvn verify -P run-its,quality-checks)
>> > > >>
>> > > >
>> > > > What is 'quality-checks' profile? I have never heard about it
>> > > >
>> > > > Enrico
>> > > >
>> > > >
>> > > >> [INFO] Building: 

Re: [VOTE] Release Apache Maven Checkstyle Plugin version 3.1.0

2019-05-14 Thread Eric Lilja
I also see a failure for MCHECKSTYLE-54 on Windows. (Sorry, I didn't try
the source zip, just cloned master)

I tested on one of our corporate laptops:
Windows 10
Cygwin 64-bit (I use it to clone the repo and use Maven)
Maven 3.6.0
Java 8 update 202

The build log says:
[INFO] There are 2 errors reported by Checkstyle 8.19 with sun_checks.xml
ruleset.
[ERROR]
src\main\java\org\apache\maven\plugins\checkstyle\mcheckstyle54\Mcheckstyle54.java:[1]
(misc) NewlineAtEndOfFile: File does not end with a newline.
[ERROR]
src\main\java\org\apache\maven\plugins\checkstyle\mcheckstyle54\package-info.java:[1]
(misc) NewlineAtEndOfFile: File does not end with a newline.

These two files end with unix-style line breaks (as expected with my setup).

- Eric L


On Tue, May 14, 2019 at 8:10 AM Enrico Olivelli  wrote:

> Il lun 13 mag 2019, 23:48 Tibor Digana  ha
> scritto:
>
> > Robert, I did *not* use the source zip.
> >
>
> IMHO we should vote on the staged zip
>
>
> > git clone https://gitbox.apache.org/repos/asf/maven-checkstyle-plugin
> > Oracle jdk 1.8.0u212, Maven 3.3.9, Windows 10
> >
>
> This is what CI does and tests are passing.
>
> Do you have some global git configuration?
>
> Enrico
>
> >
> > I see there is a new line, but the checkstyle does not care if you put
> one
> > or two lines.
> > No idea why.
> >
> > Even if you go to the target and run it from the folder
> > c:\vcs\github\maven-checkstyle-plugin\target\it\MCHECKSTYLE-54\
> > it's the same as if you run the project root - mvn verify -P
> > run-its,quality-checks
> >
> >
> > *mvn -nsu checkstyle:check*
> >
> > [INFO] --- maven-checkstyle-plugin:3.1.1-SNAPSHOT:check (default-cli) @
> > mcheckstyle-54 ---
> > [INFO] There are 2 errors reported by Checkstyle 8.19 with sun_checks.xml
> > ruleset.
> > [ERROR]
> >
> >
> src\main\java\org\apache\maven\plugins\checkstyle\mcheckstyle54\Mcheckstyle54.java:[1]
> > (misc) NewlineAtEndOfFile: File does not end with a newline.
> > [ERROR]
> >
> >
> src\main\java\org\apache\maven\plugins\checkstyle\mcheckstyle54\package-info.java:[1]
> > (misc) NewlineAtEndOfFile: File does not end with a newline.
> > [INFO]
> > 
> > [INFO] BUILD FAILURE
> > [INFO]
> > 
> > [INFO] Total time: 3.450 s
> > [INFO] Finished at: 2019-05-13T23:42:55+02:00
> > [INFO] Final Memory: 12M/193M
> > [INFO]
> > 
> > [ERROR] Failed to execute goal
> > org.apache.maven.plugins:maven-checkstyle-plugin:3.1.1-SNAPSHOT:check
> > (default-cli) on project mcheckstyle-54: You have 2 Checkstyle
> violations.
> > -> [Help 1]
> > [ERROR]
> > [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e
> > switch.
> > [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
> >
> >
> > On Mon, May 13, 2019 at 10:29 PM Robert Scholte 
> > wrote:
> >
> > > This can happen when source-release.zip was created on a different OS
> > > compared to the verifying OS.
> > >
> > > With Git it will switch to the line endings of the operating system,
> but
> > > with a zip that's not possible.
> > >
> > > I'd say not blocking, but the IT needs to be fixed to handle these
> > > situations.
> > >
> > > Robert
> > >
> > >
> > > On Mon, 13 May 2019 21:55:27 +0200, Enrico Olivelli <
> eolive...@gmail.com
> > >
> > >
> > > wrote:
> > >
> > > > Tibor
> > > > It is strage all its are passing on CI.
> > > > Are you sure you have correcly unpacked the package?
> > > >
> > > >
> > > > Il lun 13 mag 2019, 21:23 Tibor Digana  ha
> > > > scritto:
> > > >
> > > >> checked the sha512 of src zip, ok
> > > >> checked the build, failed (mvn verify -P run-its,quality-checks)
> > > >>
> > > >
> > > > What is 'quality-checks' profile? I have never heard about it
> > > >
> > > > Enrico
> > > >
> > > >
> > > >> [INFO] Building: MCHECKSTYLE-54\pom.xml
> > > >> [INFO]   MCHECKSTYLE-54\pom.xml ...
> > > >> FAILED
> > > >> (5.3 s)
> > > >>
> > > >> *Mcheckstyle54.java:[1] (misc) NewlineAtEndOfFile: File does not end
> > > >> with a
> > > >> newline.*
> > > >>
> > > >> but I checkted this file and it ends with a new line. Is it bug in
> the
> > > >> Checkstyle dependency?
> > > >>
> > > >> [INFO] BUILD FAILURE
> > > >> [ERROR] Failed to execute goal
> > > >> org.apache.maven.plugins:maven-pmd-plugin:3.8:cpd-check (cpd-check)
> on
> > > >> project maven-checkstyle-plugin: You have 1 CPD duplication.
> > > >>
> > > >> There are exactly the same methods. That's why CPD fails, see
> > > >> CheckstyleViolationCheckMojo L813
> > > >> AbstractCheckstyleReportL581
> > > >>
> > > >>
> > > >>
> > > >>
> > > >>

Re: [VOTE] Release Apache Maven Checkstyle Plugin version 3.1.0

2019-05-14 Thread Enrico Olivelli
Il lun 13 mag 2019, 23:48 Tibor Digana  ha scritto:

> Robert, I did *not* use the source zip.
>

IMHO we should vote on the staged zip


> git clone https://gitbox.apache.org/repos/asf/maven-checkstyle-plugin
> Oracle jdk 1.8.0u212, Maven 3.3.9, Windows 10
>

This is what CI does and tests are passing.

Do you have some global git configuration?

Enrico

>
> I see there is a new line, but the checkstyle does not care if you put one
> or two lines.
> No idea why.
>
> Even if you go to the target and run it from the folder
> c:\vcs\github\maven-checkstyle-plugin\target\it\MCHECKSTYLE-54\
> it's the same as if you run the project root - mvn verify -P
> run-its,quality-checks
>
>
> *mvn -nsu checkstyle:check*
>
> [INFO] --- maven-checkstyle-plugin:3.1.1-SNAPSHOT:check (default-cli) @
> mcheckstyle-54 ---
> [INFO] There are 2 errors reported by Checkstyle 8.19 with sun_checks.xml
> ruleset.
> [ERROR]
>
> src\main\java\org\apache\maven\plugins\checkstyle\mcheckstyle54\Mcheckstyle54.java:[1]
> (misc) NewlineAtEndOfFile: File does not end with a newline.
> [ERROR]
>
> src\main\java\org\apache\maven\plugins\checkstyle\mcheckstyle54\package-info.java:[1]
> (misc) NewlineAtEndOfFile: File does not end with a newline.
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 3.450 s
> [INFO] Finished at: 2019-05-13T23:42:55+02:00
> [INFO] Final Memory: 12M/193M
> [INFO]
> 
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-checkstyle-plugin:3.1.1-SNAPSHOT:check
> (default-cli) on project mcheckstyle-54: You have 2 Checkstyle violations.
> -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [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
>
>
> On Mon, May 13, 2019 at 10:29 PM Robert Scholte 
> wrote:
>
> > This can happen when source-release.zip was created on a different OS
> > compared to the verifying OS.
> >
> > With Git it will switch to the line endings of the operating system, but
> > with a zip that's not possible.
> >
> > I'd say not blocking, but the IT needs to be fixed to handle these
> > situations.
> >
> > Robert
> >
> >
> > On Mon, 13 May 2019 21:55:27 +0200, Enrico Olivelli  >
> >
> > wrote:
> >
> > > Tibor
> > > It is strage all its are passing on CI.
> > > Are you sure you have correcly unpacked the package?
> > >
> > >
> > > Il lun 13 mag 2019, 21:23 Tibor Digana  ha
> > > scritto:
> > >
> > >> checked the sha512 of src zip, ok
> > >> checked the build, failed (mvn verify -P run-its,quality-checks)
> > >>
> > >
> > > What is 'quality-checks' profile? I have never heard about it
> > >
> > > Enrico
> > >
> > >
> > >> [INFO] Building: MCHECKSTYLE-54\pom.xml
> > >> [INFO]   MCHECKSTYLE-54\pom.xml ...
> > >> FAILED
> > >> (5.3 s)
> > >>
> > >> *Mcheckstyle54.java:[1] (misc) NewlineAtEndOfFile: File does not end
> > >> with a
> > >> newline.*
> > >>
> > >> but I checkted this file and it ends with a new line. Is it bug in the
> > >> Checkstyle dependency?
> > >>
> > >> [INFO] BUILD FAILURE
> > >> [ERROR] Failed to execute goal
> > >> org.apache.maven.plugins:maven-pmd-plugin:3.8:cpd-check (cpd-check) on
> > >> project maven-checkstyle-plugin: You have 1 CPD duplication.
> > >>
> > >> There are exactly the same methods. That's why CPD fails, see
> > >> CheckstyleViolationCheckMojo L813
> > >> AbstractCheckstyleReportL581
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >> On Mon, May 13, 2019 at 11:52 AM Enrico Olivelli  >
> > >> wrote:
> > >>
> > >> > Hi,
> > >> >
> > >> > We solved 13 issues:
> > >> >
> > >> >
> > >>
> >
> https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12342397=Text=12317223
> > >> >
> > >> > Please note that this version now only supports CheckStyle 8+ and
> > >> Java 8
> > >> > (as required by latest Checkstyle)
> > >> >
> > >> > There are still a couple of issues left in JIRA:
> > >> >
> > >> >
> > >>
> >
> https://issues.apache.org/jira/issues/?jql=project%20%3D%20XX%20AND%20status%20%3D%20Open%20ORDER%20BY%20key%20DESC%2C%20priority%20DESC
> > >> >
> > >> > Staging repo:
> > >> > https://repository.apache.org/content/repositories/maven-1503/
> > >> >
> > >> >
> > >>
> >
> https://repository.apache.org/content/repositories/maven-1503/org/apache/maven/plugins/maven-checkstyle-plugin/3.1.0/maven-checkstyle-plugin-3.1.0-source-release.zip
> > >> >
> > >> > Source release checksum(s):
> > >> > maven-checkstyle-plugin-3.1.0-source-release.zip sha512:
> > >> >
> > >> >
> > >>
> >
>