Re: Strange maven sonar download warning?

2020-08-29 Thread Dan Tran
don't see similar warnings when using with sonar-maven-plugin-3.6.x

-D

On Sat, Aug 29, 2020 at 8:13 PM Dan Tran  wrote:

>
> Hello to all
>
> I am seeing the bellow warning at my build with no build failure.  Wonder
> if anyone else sees the same thing?
>
> *19:22:30*  [WARNING] The POM for 
> org.sonarsource.scanner.maven:sonar-maven-plugin:jar:?3.7.0.1746 is missing, 
> no dependency information available*19:22:30*  [WARNING] Failed to retrieve 
> plugin descriptor for 
> org.sonarsource.scanner.maven:sonar-maven-plugin:?3.7.0.1746: Plugin 
> org.sonarsource.scanner.maven:sonar-maven-plugin:?3.7.0.1746 or one of its 
> dependencies could not be resolved: Failure to find 
> org.sonarsource.scanner.maven:sonar-maven-plugin:jar:?3.7.0.1746 in 
> https://my.inernal.maven .repo 
> was cached in the local repository, resolution will not be reattempted until 
> the update interval of brs has elapsed or updates are forced
>
>
> Thanks
>
>
> -D
>
>


Strange maven sonar download warning?

2020-08-29 Thread Dan Tran
Hello to all

I am seeing the bellow warning at my build with no build failure.  Wonder
if anyone else sees the same thing?

*19:22:30*  [WARNING] The POM for
org.sonarsource.scanner.maven:sonar-maven-plugin:jar:?3.7.0.1746 is
missing, no dependency information available*19:22:30*  [WARNING]
Failed to retrieve plugin descriptor for
org.sonarsource.scanner.maven:sonar-maven-plugin:?3.7.0.1746: Plugin
org.sonarsource.scanner.maven:sonar-maven-plugin:?3.7.0.1746 or one of
its dependencies could not be resolved: Failure to find
org.sonarsource.scanner.maven:sonar-maven-plugin:jar:?3.7.0.1746 in
https://my.inernal.maven
.repo was cached in the
local repository, resolution will not be reattempted until the update
interval of brs has elapsed or updates are forced


Thanks


-D


Re: Issue using common Velocity template with version 3.2.0 of Maven Archetype Plugin

2020-08-29 Thread Martin Kanters
Hi Matt,

Thanks a lot for your extensive bug report including sample project. Could
you please create a bug in Jira? [1]
It will make it easier to pick up the issue and assign the potential fix to
a future release.

Regards, Martin

[1] https://issues.apache.org/jira/projects/ARCHETYPE/issues/

Op do 27 aug. 2020 om 21:41 schreef Matthew Compton :

> Hello all,
>
> The recently released version 3.2.0 of the Maven Archetype Plugin has
> broken an archetype I created. I have confirmed my archetype still works
> with version 3.1.2 of the plugin but my team and I normally run "mvn
> archetype:generate …” just so we don’t have to specify a particular version
> of the plugin, but now Maven will pick up the 3.2.0 version of the plugin
> and fail. I am aware that using "mvn
> org.apache.maven.plugins:maven-archetype-plugin:3.1.2:generate …” will work
> around the problem, but I’d still like to fix my archetype to work with the
> latest version of the plugin.
>
> The problem appears to be that something has changed with how the class
> path/resources are setup with the velocity template engine when rendering
> templates. I tried looking through the release notes but it just looks like
> version numbers were bumped, so I doesn’t seem like this was an intentional
> change in behavior.
>
> The source of the problem is my archetype has a common
> 'META-INF/common-variable-definitions.vm’ that contains variables that are
> used in multiple files within the archetype. This worked great with earlier
> versions of the archetype plugin, each template that needed the common
> variable definitions simply needed  a #parse(
> "META-INF/common-variable-definitions.vm” ) at the top of the file and then
> all of the usual replacements that were needed are available. Now, with the
> 3.2.0 version of the plugin I get the following error:
>
>
> [ERROR] ResourceManager : unable to find resource
> 'archetype-resources/META-INF/common-variable-definitions.vm' in any
> resource loader.
> [ERROR] #parse(): cannot find template
> 'archetype-resources/META-INF/common-variable-definitions.vm', called at
> archetype-resources/pom.xml[line 1, column 1]
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time:  1.327 s
> [INFO] Finished at: 2020-08-26T16:28:24-07:00
> [INFO]
> 
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-archetype-plugin:3.2.0:integration-test
> (default-integration-test) on project demo-archetype:
> [ERROR] Archetype IT 'basic' failed: Error merging velocity templates:
> Unable to find resource
> 'archetype-resources/META-INF/common-variable-definitions.vm'
> [ERROR] -> [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/MojoExecutionException
>
>
> The issue is that the Velocity engine now expects the common definitions
> file in 'archetype-resources/META-INF' instead of a top-level 'META-INF'
> directory. I tried moving the file to
> 'archetype-resources/META-INF/common-variable-definitions.vm', but I found
> that only worked for the “first level”, and it essentially expected that
> file to copied into every level of the directory hierarchy of the archetype
> resources that had templates to render, which makes trying to do this
> totally pointless, I might as well copy the definitions into the top of
> each file like I had done in a very early version of my archetype. I also
> tried using “../“ relative paths (like #parse(
> “../META-INF/common-variable-definitions.vm” )) in files deeper into the
> directory hierarchy to reference back up to a single common velocity
> template, but could not get that to work either.
>
> Is there something I can do to get this working again with version 3.2.0?
> Or is this no something that is actually supported and I was just getting
> lucky before?
>
> To help reproduce the problem I created a simple example project to
> demonstrate this change in behavior between the two versions of the Maven
> Archetype Plugin. The top-level pom.xml in the attach tar has the following
> properties which you can comment/uncomment to switch between a working and
> failing version.
>
>  
>UTF-8
>
>
>  
>
>3.2.0
>  
>
> If you uncompress the attached tar and call ‘mvn clean verify’ you can see
> how it works with 3.1.2 and fails with 3.2.0.
>
> Thank you for the help,
>
> Matt
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional 

Re: Maven enforcer plugin failing with maven 3.6.1 but passing with maven 3.6.3

2020-08-29 Thread Debraj Manna
I am observing the same behavior with maven docker also. It is passing with
3.6.3 but failing with 3.6.1.

Used the below commands

Debrajs-MacBook-Air:es-plugins debrajmanna$ docker run -it --rm --name
es-plugins -v "$(pwd)":/Users/debrajmanna/code/vnera/es-plugins -w
/Users/debrajmanna/code/vnera/es-plugins maven:3.6.1 mvn validate

Debrajs-MacBook-Air:es-plugins debrajmanna$ docker run -it --rm --name
es-plugins -v "$(pwd)":/Users/debrajmanna/code/vnera/es-plugins -w
/Users/debrajmanna/code/vnera/es-plugins maven:3.6.3 mvn validate

On Sat, Aug 29, 2020 at 5:32 PM Debraj Manna 
wrote:

> It is failing consistently in our environment. Can you let me know what
> can cause this difference in behavior?
>
> Any other log I can provide that may help in debugging this issue further?
>
> On Sat, Aug 29, 2020 at 4:45 PM Karl Heinz Marbaise 
> wrote:
>
>> Hi,
>>
>> as already mentioned on SO the behaviour can't be reproduced with the
>> example project.
>>
>> Tested with Maven 3.6.0, 3.6.1, 3.6.2 and 3.6.3...
>>
>> Kind regards
>> Karl Heinz Marbaise
>> On 29.08.20 08:34, Debraj Manna wrote:
>> > Hi
>> >
>> > In one of my project I am trying to use DependencyConvergence rule with
>> > maven enforcer plugin. I am observing that if I use maven 3.6.1 then the
>> > enforcer is failing with the below error but the same has been working
>> fine
>> > with maven 3.6.3. Can someone let me know if this expected? If yes can
>> > someone point me to the relevant jira under which this issue is fixed in
>> > maven 3.6.3.
>> >
>> > I have placed a sample project in
>> https://github.com/debraj-manna/es-plugins
>> > where this issue can be reproduced.
>> >
>> > maven-enforcer-plugin - 3.0.0-M2
>> >
>> > Debrajs-MacBook-Air:es-plugins debrajmanna$
>> > ~/Downloads/apache-maven-3.6.1/bin/mvn validate
>> > [INFO] Scanning for projects...
>> > [INFO]
>> > 
>> > [INFO] Reactor Build Order:
>> > [INFO]
>> > [INFO] es-plugins
>> > [pom]
>> > [INFO] dedup
>> >   [jar]
>> > [INFO]
>> > [INFO] ---< org.example:es-plugins
>> >> ---
>> > [INFO] Building es-plugins 1.0-SNAPSHOT
>> > [1/2]
>> > [INFO] [ pom
>> > ]-
>> > [INFO]
>> > [INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce
>> > (javaversion-dependencyconvergence) @ es-plugins ---
>> > [INFO]
>> > [INFO] -< org.example:dedup
>> >> --
>> > [INFO] Building dedup 1.0-SNAPSHOT
>> >   [2/2]
>> > [INFO] [ jar
>> > ]-
>> > [INFO]
>> > [INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce
>> > (javaversion-dependencyconvergence) @ dedup ---
>> > [WARNING]
>> > Dependency convergence error for
>> > com.carrotsearch.randomizedtesting:randomizedtesting-runner:2.7.1 paths
>> to
>> > dependency are:
>> > +-org.example:dedup:1.0-SNAPSHOT
>> >+-org.elasticsearch.test:framework:7.7.1
>> >  +-com.carrotsearch.randomizedtesting:randomizedtesting-runner:2.7.1
>> > and
>> > +-org.example:dedup:1.0-SNAPSHOT
>> >+-org.elasticsearch.test:framework:7.7.1
>> >  +-org.apache.lucene:lucene-test-framework:8.5.1
>> >
>> +-com.carrotsearch.randomizedtesting:randomizedtesting-runner:2.7.2
>> >
>> > [WARNING]
>> > Dependency convergence error for commons-logging:commons-logging:1.2
>> paths
>> > to dependency are:
>> > +-org.example:dedup:1.0-SNAPSHOT
>> >+-org.elasticsearch.test:framework:7.7.1
>> >  +-org.elasticsearch.client:elasticsearch-rest-client:7.7.1
>> >+-org.apache.httpcomponents:httpclient:4.5.10
>> >  +-commons-logging:commons-logging:1.2
>> > and
>> > +-org.example:dedup:1.0-SNAPSHOT
>> >+-org.elasticsearch.test:framework:7.7.1
>> >  +-org.elasticsearch.client:elasticsearch-rest-client:7.7.1
>> >+-org.apache.httpcomponents:httpasyncclient:4.1.4
>> >  +-commons-logging:commons-logging:1.2
>> > and
>> > +-org.example:dedup:1.0-SNAPSHOT
>> >+-org.elasticsearch.test:framework:7.7.1
>> >  +-org.elasticsearch.client:elasticsearch-rest-client:7.7.1
>> >+-commons-logging:commons-logging:1.1.3
>> > and
>> > +-org.example:dedup:1.0-SNAPSHOT
>> >+-org.elasticsearch.test:framework:7.7.1
>> >  +-org.elasticsearch.client:elasticsearch-rest-client-sniffer:7.7.1
>> >+-commons-logging:commons-logging:1.1.3
>> > and
>> > +-org.example:dedup:1.0-SNAPSHOT
>> >+-org.elasticsearch.test:framework:7.7.1
>> >  +-commons-logging:commons-logging:1.1.3
>> >
>> > [WARNING]
>> > Dependency convergence error for
>> org.apache.httpcomponents:httpcore:4.4.12
>> > paths to dependency are:
>> > +-org.example:dedup:1.0-SNAPSHOT
>> >+-org.elasticsearch.test:framework:7.7.1
>> >  +-org.elasticsearch.client:elasticsearch-rest-client:7.7.1
>> >+-org.apache.httpcomponents:httpclient:4.5.10
>> >  +-org.apache.httpcomponents:httpcore:4.4.12

Re: Maven enforcer plugin failing with maven 3.6.1 but passing with maven 3.6.3

2020-08-29 Thread Debraj Manna
It is failing consistently in our environment. Can you let me know what can
cause this difference in behavior?

Any other log I can provide that may help in debugging this issue further?

On Sat, Aug 29, 2020 at 4:45 PM Karl Heinz Marbaise 
wrote:

> Hi,
>
> as already mentioned on SO the behaviour can't be reproduced with the
> example project.
>
> Tested with Maven 3.6.0, 3.6.1, 3.6.2 and 3.6.3...
>
> Kind regards
> Karl Heinz Marbaise
> On 29.08.20 08:34, Debraj Manna wrote:
> > Hi
> >
> > In one of my project I am trying to use DependencyConvergence rule with
> > maven enforcer plugin. I am observing that if I use maven 3.6.1 then the
> > enforcer is failing with the below error but the same has been working
> fine
> > with maven 3.6.3. Can someone let me know if this expected? If yes can
> > someone point me to the relevant jira under which this issue is fixed in
> > maven 3.6.3.
> >
> > I have placed a sample project in
> https://github.com/debraj-manna/es-plugins
> > where this issue can be reproduced.
> >
> > maven-enforcer-plugin - 3.0.0-M2
> >
> > Debrajs-MacBook-Air:es-plugins debrajmanna$
> > ~/Downloads/apache-maven-3.6.1/bin/mvn validate
> > [INFO] Scanning for projects...
> > [INFO]
> > 
> > [INFO] Reactor Build Order:
> > [INFO]
> > [INFO] es-plugins
> > [pom]
> > [INFO] dedup
> >   [jar]
> > [INFO]
> > [INFO] ---< org.example:es-plugins
> >> ---
> > [INFO] Building es-plugins 1.0-SNAPSHOT
> > [1/2]
> > [INFO] [ pom
> > ]-
> > [INFO]
> > [INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce
> > (javaversion-dependencyconvergence) @ es-plugins ---
> > [INFO]
> > [INFO] -< org.example:dedup
> >> --
> > [INFO] Building dedup 1.0-SNAPSHOT
> >   [2/2]
> > [INFO] [ jar
> > ]-
> > [INFO]
> > [INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce
> > (javaversion-dependencyconvergence) @ dedup ---
> > [WARNING]
> > Dependency convergence error for
> > com.carrotsearch.randomizedtesting:randomizedtesting-runner:2.7.1 paths
> to
> > dependency are:
> > +-org.example:dedup:1.0-SNAPSHOT
> >+-org.elasticsearch.test:framework:7.7.1
> >  +-com.carrotsearch.randomizedtesting:randomizedtesting-runner:2.7.1
> > and
> > +-org.example:dedup:1.0-SNAPSHOT
> >+-org.elasticsearch.test:framework:7.7.1
> >  +-org.apache.lucene:lucene-test-framework:8.5.1
> >
> +-com.carrotsearch.randomizedtesting:randomizedtesting-runner:2.7.2
> >
> > [WARNING]
> > Dependency convergence error for commons-logging:commons-logging:1.2
> paths
> > to dependency are:
> > +-org.example:dedup:1.0-SNAPSHOT
> >+-org.elasticsearch.test:framework:7.7.1
> >  +-org.elasticsearch.client:elasticsearch-rest-client:7.7.1
> >+-org.apache.httpcomponents:httpclient:4.5.10
> >  +-commons-logging:commons-logging:1.2
> > and
> > +-org.example:dedup:1.0-SNAPSHOT
> >+-org.elasticsearch.test:framework:7.7.1
> >  +-org.elasticsearch.client:elasticsearch-rest-client:7.7.1
> >+-org.apache.httpcomponents:httpasyncclient:4.1.4
> >  +-commons-logging:commons-logging:1.2
> > and
> > +-org.example:dedup:1.0-SNAPSHOT
> >+-org.elasticsearch.test:framework:7.7.1
> >  +-org.elasticsearch.client:elasticsearch-rest-client:7.7.1
> >+-commons-logging:commons-logging:1.1.3
> > and
> > +-org.example:dedup:1.0-SNAPSHOT
> >+-org.elasticsearch.test:framework:7.7.1
> >  +-org.elasticsearch.client:elasticsearch-rest-client-sniffer:7.7.1
> >+-commons-logging:commons-logging:1.1.3
> > and
> > +-org.example:dedup:1.0-SNAPSHOT
> >+-org.elasticsearch.test:framework:7.7.1
> >  +-commons-logging:commons-logging:1.1.3
> >
> > [WARNING]
> > Dependency convergence error for
> org.apache.httpcomponents:httpcore:4.4.12
> > paths to dependency are:
> > +-org.example:dedup:1.0-SNAPSHOT
> >+-org.elasticsearch.test:framework:7.7.1
> >  +-org.elasticsearch.client:elasticsearch-rest-client:7.7.1
> >+-org.apache.httpcomponents:httpclient:4.5.10
> >  +-org.apache.httpcomponents:httpcore:4.4.12
> > and
> > +-org.example:dedup:1.0-SNAPSHOT
> >+-org.elasticsearch.test:framework:7.7.1
> >  +-org.elasticsearch.client:elasticsearch-rest-client:7.7.1
> >+-org.apache.httpcomponents:httpcore:4.4.12
> > and
> > +-org.example:dedup:1.0-SNAPSHOT
> >+-org.elasticsearch.test:framework:7.7.1
> >  +-org.elasticsearch.client:elasticsearch-rest-client:7.7.1
> >+-org.apache.httpcomponents:httpasyncclient:4.1.4
> >  +-org.apache.httpcomponents:httpcore:4.4.10
> > and
> > +-org.example:dedup:1.0-SNAPSHOT
> >+-org.elasticsearch.test:framework:7.7.1
> >  +-org.elasticsearch.client:elasticsearch-rest-client-sniffer:7.7.1
> >+-org.apache.httpcomponents:httpcore:4.4.12

Re: Maven enforcer plugin failing with maven 3.6.1 but passing with maven 3.6.3

2020-08-29 Thread Karl Heinz Marbaise

Hi,

as already mentioned on SO the behaviour can't be reproduced with the
example project.

Tested with Maven 3.6.0, 3.6.1, 3.6.2 and 3.6.3...

Kind regards
Karl Heinz Marbaise
On 29.08.20 08:34, Debraj Manna wrote:

Hi

In one of my project I am trying to use DependencyConvergence rule with
maven enforcer plugin. I am observing that if I use maven 3.6.1 then the
enforcer is failing with the below error but the same has been working fine
with maven 3.6.3. Can someone let me know if this expected? If yes can
someone point me to the relevant jira under which this issue is fixed in
maven 3.6.3.

I have placed a sample project in https://github.com/debraj-manna/es-plugins
where this issue can be reproduced.

maven-enforcer-plugin - 3.0.0-M2

Debrajs-MacBook-Air:es-plugins debrajmanna$
~/Downloads/apache-maven-3.6.1/bin/mvn validate
[INFO] Scanning for projects...
[INFO]

[INFO] Reactor Build Order:
[INFO]
[INFO] es-plugins
[pom]
[INFO] dedup
  [jar]
[INFO]
[INFO] ---< org.example:es-plugins

---

[INFO] Building es-plugins 1.0-SNAPSHOT
[1/2]
[INFO] [ pom
]-
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce
(javaversion-dependencyconvergence) @ es-plugins ---
[INFO]
[INFO] -< org.example:dedup

--

[INFO] Building dedup 1.0-SNAPSHOT
  [2/2]
[INFO] [ jar
]-
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce
(javaversion-dependencyconvergence) @ dedup ---
[WARNING]
Dependency convergence error for
com.carrotsearch.randomizedtesting:randomizedtesting-runner:2.7.1 paths to
dependency are:
+-org.example:dedup:1.0-SNAPSHOT
   +-org.elasticsearch.test:framework:7.7.1
 +-com.carrotsearch.randomizedtesting:randomizedtesting-runner:2.7.1
and
+-org.example:dedup:1.0-SNAPSHOT
   +-org.elasticsearch.test:framework:7.7.1
 +-org.apache.lucene:lucene-test-framework:8.5.1
   +-com.carrotsearch.randomizedtesting:randomizedtesting-runner:2.7.2

[WARNING]
Dependency convergence error for commons-logging:commons-logging:1.2 paths
to dependency are:
+-org.example:dedup:1.0-SNAPSHOT
   +-org.elasticsearch.test:framework:7.7.1
 +-org.elasticsearch.client:elasticsearch-rest-client:7.7.1
   +-org.apache.httpcomponents:httpclient:4.5.10
 +-commons-logging:commons-logging:1.2
and
+-org.example:dedup:1.0-SNAPSHOT
   +-org.elasticsearch.test:framework:7.7.1
 +-org.elasticsearch.client:elasticsearch-rest-client:7.7.1
   +-org.apache.httpcomponents:httpasyncclient:4.1.4
 +-commons-logging:commons-logging:1.2
and
+-org.example:dedup:1.0-SNAPSHOT
   +-org.elasticsearch.test:framework:7.7.1
 +-org.elasticsearch.client:elasticsearch-rest-client:7.7.1
   +-commons-logging:commons-logging:1.1.3
and
+-org.example:dedup:1.0-SNAPSHOT
   +-org.elasticsearch.test:framework:7.7.1
 +-org.elasticsearch.client:elasticsearch-rest-client-sniffer:7.7.1
   +-commons-logging:commons-logging:1.1.3
and
+-org.example:dedup:1.0-SNAPSHOT
   +-org.elasticsearch.test:framework:7.7.1
 +-commons-logging:commons-logging:1.1.3

[WARNING]
Dependency convergence error for org.apache.httpcomponents:httpcore:4.4.12
paths to dependency are:
+-org.example:dedup:1.0-SNAPSHOT
   +-org.elasticsearch.test:framework:7.7.1
 +-org.elasticsearch.client:elasticsearch-rest-client:7.7.1
   +-org.apache.httpcomponents:httpclient:4.5.10
 +-org.apache.httpcomponents:httpcore:4.4.12
and
+-org.example:dedup:1.0-SNAPSHOT
   +-org.elasticsearch.test:framework:7.7.1
 +-org.elasticsearch.client:elasticsearch-rest-client:7.7.1
   +-org.apache.httpcomponents:httpcore:4.4.12
and
+-org.example:dedup:1.0-SNAPSHOT
   +-org.elasticsearch.test:framework:7.7.1
 +-org.elasticsearch.client:elasticsearch-rest-client:7.7.1
   +-org.apache.httpcomponents:httpasyncclient:4.1.4
 +-org.apache.httpcomponents:httpcore:4.4.10
and
+-org.example:dedup:1.0-SNAPSHOT
   +-org.elasticsearch.test:framework:7.7.1
 +-org.elasticsearch.client:elasticsearch-rest-client-sniffer:7.7.1
   +-org.apache.httpcomponents:httpcore:4.4.12

[WARNING]
Dependency convergence error for
org.apache.httpcomponents:httpclient:4.5.10 paths to dependency are:
+-org.example:dedup:1.0-SNAPSHOT
   +-org.elasticsearch.test:framework:7.7.1
 +-org.elasticsearch.client:elasticsearch-rest-client:7.7.1
   +-org.apache.httpcomponents:httpclient:4.5.10
and
+-org.example:dedup:1.0-SNAPSHOT
   +-org.elasticsearch.test:framework:7.7.1
 +-org.elasticsearch.client:elasticsearch-rest-client:7.7.1
   +-org.apache.httpcomponents:httpasyncclient:4.1.4
 +-org.apache.httpcomponents:httpclient:4.5.6
and
+-org.example:dedup:1.0-SNAPSHOT
   +-org.elasticsearch.test:framework:7.7.1
 

Re: Maven enforcer plugin failing with maven 3.6.1 but passing with maven 3.6.3

2020-08-29 Thread Debraj Manna
Just to be more explicit with maven versions. I tried with maven version
3.6.1, 3.6.3 and 3.5.3. It worked fine only with 3.6.3.

On Sat, Aug 29, 2020 at 12:04 PM Debraj Manna 
wrote:

> Hi
>
> In one of my project I am trying to use DependencyConvergence rule with
> maven enforcer plugin. I am observing that if I use maven 3.6.1 then the
> enforcer is failing with the below error but the same has been working fine
> with maven 3.6.3. Can someone let me know if this expected? If yes can
> someone point me to the relevant jira under which this issue is fixed in
> maven 3.6.3.
>
> I have placed a sample project in
> https://github.com/debraj-manna/es-plugins where this issue can be
> reproduced.
>
> maven-enforcer-plugin - 3.0.0-M2
>
> Debrajs-MacBook-Air:es-plugins debrajmanna$
> ~/Downloads/apache-maven-3.6.1/bin/mvn validate
> [INFO] Scanning for projects...
> [INFO]
> 
> [INFO] Reactor Build Order:
> [INFO]
> [INFO] es-plugins
> [pom]
> [INFO] dedup
>  [jar]
> [INFO]
> [INFO] ---< org.example:es-plugins
> >---
> [INFO] Building es-plugins 1.0-SNAPSHOT
> [1/2]
> [INFO] [ pom
> ]-
> [INFO]
> [INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce
> (javaversion-dependencyconvergence) @ es-plugins ---
> [INFO]
> [INFO] -< org.example:dedup
> >--
> [INFO] Building dedup 1.0-SNAPSHOT
>  [2/2]
> [INFO] [ jar
> ]-
> [INFO]
> [INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce
> (javaversion-dependencyconvergence) @ dedup ---
> [WARNING]
> Dependency convergence error for
> com.carrotsearch.randomizedtesting:randomizedtesting-runner:2.7.1 paths to
> dependency are:
> +-org.example:dedup:1.0-SNAPSHOT
>   +-org.elasticsearch.test:framework:7.7.1
> +-com.carrotsearch.randomizedtesting:randomizedtesting-runner:2.7.1
> and
> +-org.example:dedup:1.0-SNAPSHOT
>   +-org.elasticsearch.test:framework:7.7.1
> +-org.apache.lucene:lucene-test-framework:8.5.1
>   +-com.carrotsearch.randomizedtesting:randomizedtesting-runner:2.7.2
>
> [WARNING]
> Dependency convergence error for commons-logging:commons-logging:1.2 paths
> to dependency are:
> +-org.example:dedup:1.0-SNAPSHOT
>   +-org.elasticsearch.test:framework:7.7.1
> +-org.elasticsearch.client:elasticsearch-rest-client:7.7.1
>   +-org.apache.httpcomponents:httpclient:4.5.10
> +-commons-logging:commons-logging:1.2
> and
> +-org.example:dedup:1.0-SNAPSHOT
>   +-org.elasticsearch.test:framework:7.7.1
> +-org.elasticsearch.client:elasticsearch-rest-client:7.7.1
>   +-org.apache.httpcomponents:httpasyncclient:4.1.4
> +-commons-logging:commons-logging:1.2
> and
> +-org.example:dedup:1.0-SNAPSHOT
>   +-org.elasticsearch.test:framework:7.7.1
> +-org.elasticsearch.client:elasticsearch-rest-client:7.7.1
>   +-commons-logging:commons-logging:1.1.3
> and
> +-org.example:dedup:1.0-SNAPSHOT
>   +-org.elasticsearch.test:framework:7.7.1
> +-org.elasticsearch.client:elasticsearch-rest-client-sniffer:7.7.1
>   +-commons-logging:commons-logging:1.1.3
> and
> +-org.example:dedup:1.0-SNAPSHOT
>   +-org.elasticsearch.test:framework:7.7.1
> +-commons-logging:commons-logging:1.1.3
>
> [WARNING]
> Dependency convergence error for org.apache.httpcomponents:httpcore:4.4.12
> paths to dependency are:
> +-org.example:dedup:1.0-SNAPSHOT
>   +-org.elasticsearch.test:framework:7.7.1
> +-org.elasticsearch.client:elasticsearch-rest-client:7.7.1
>   +-org.apache.httpcomponents:httpclient:4.5.10
> +-org.apache.httpcomponents:httpcore:4.4.12
> and
> +-org.example:dedup:1.0-SNAPSHOT
>   +-org.elasticsearch.test:framework:7.7.1
> +-org.elasticsearch.client:elasticsearch-rest-client:7.7.1
>   +-org.apache.httpcomponents:httpcore:4.4.12
> and
> +-org.example:dedup:1.0-SNAPSHOT
>   +-org.elasticsearch.test:framework:7.7.1
> +-org.elasticsearch.client:elasticsearch-rest-client:7.7.1
>   +-org.apache.httpcomponents:httpasyncclient:4.1.4
> +-org.apache.httpcomponents:httpcore:4.4.10
> and
> +-org.example:dedup:1.0-SNAPSHOT
>   +-org.elasticsearch.test:framework:7.7.1
> +-org.elasticsearch.client:elasticsearch-rest-client-sniffer:7.7.1
>   +-org.apache.httpcomponents:httpcore:4.4.12
>
> [WARNING]
> Dependency convergence error for
> org.apache.httpcomponents:httpclient:4.5.10 paths to dependency are:
> +-org.example:dedup:1.0-SNAPSHOT
>   +-org.elasticsearch.test:framework:7.7.1
> +-org.elasticsearch.client:elasticsearch-rest-client:7.7.1
>   +-org.apache.httpcomponents:httpclient:4.5.10
> and
> +-org.example:dedup:1.0-SNAPSHOT
>   +-org.elasticsearch.test:framework:7.7.1
> +-org.elasticsearch.client:elasticsearch-rest-client:7.7.1
>   +-org.apache.httpcomponents:httpasyncclient:4.1.4
> 

Maven enforcer plugin failing with maven 3.6.1 but passing with maven 3.6.3

2020-08-29 Thread Debraj Manna
Hi

In one of my project I am trying to use DependencyConvergence rule with
maven enforcer plugin. I am observing that if I use maven 3.6.1 then the
enforcer is failing with the below error but the same has been working fine
with maven 3.6.3. Can someone let me know if this expected? If yes can
someone point me to the relevant jira under which this issue is fixed in
maven 3.6.3.

I have placed a sample project in https://github.com/debraj-manna/es-plugins
where this issue can be reproduced.

maven-enforcer-plugin - 3.0.0-M2

Debrajs-MacBook-Air:es-plugins debrajmanna$
~/Downloads/apache-maven-3.6.1/bin/mvn validate
[INFO] Scanning for projects...
[INFO]

[INFO] Reactor Build Order:
[INFO]
[INFO] es-plugins
[pom]
[INFO] dedup
 [jar]
[INFO]
[INFO] ---< org.example:es-plugins
>---
[INFO] Building es-plugins 1.0-SNAPSHOT
[1/2]
[INFO] [ pom
]-
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce
(javaversion-dependencyconvergence) @ es-plugins ---
[INFO]
[INFO] -< org.example:dedup
>--
[INFO] Building dedup 1.0-SNAPSHOT
 [2/2]
[INFO] [ jar
]-
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce
(javaversion-dependencyconvergence) @ dedup ---
[WARNING]
Dependency convergence error for
com.carrotsearch.randomizedtesting:randomizedtesting-runner:2.7.1 paths to
dependency are:
+-org.example:dedup:1.0-SNAPSHOT
  +-org.elasticsearch.test:framework:7.7.1
+-com.carrotsearch.randomizedtesting:randomizedtesting-runner:2.7.1
and
+-org.example:dedup:1.0-SNAPSHOT
  +-org.elasticsearch.test:framework:7.7.1
+-org.apache.lucene:lucene-test-framework:8.5.1
  +-com.carrotsearch.randomizedtesting:randomizedtesting-runner:2.7.2

[WARNING]
Dependency convergence error for commons-logging:commons-logging:1.2 paths
to dependency are:
+-org.example:dedup:1.0-SNAPSHOT
  +-org.elasticsearch.test:framework:7.7.1
+-org.elasticsearch.client:elasticsearch-rest-client:7.7.1
  +-org.apache.httpcomponents:httpclient:4.5.10
+-commons-logging:commons-logging:1.2
and
+-org.example:dedup:1.0-SNAPSHOT
  +-org.elasticsearch.test:framework:7.7.1
+-org.elasticsearch.client:elasticsearch-rest-client:7.7.1
  +-org.apache.httpcomponents:httpasyncclient:4.1.4
+-commons-logging:commons-logging:1.2
and
+-org.example:dedup:1.0-SNAPSHOT
  +-org.elasticsearch.test:framework:7.7.1
+-org.elasticsearch.client:elasticsearch-rest-client:7.7.1
  +-commons-logging:commons-logging:1.1.3
and
+-org.example:dedup:1.0-SNAPSHOT
  +-org.elasticsearch.test:framework:7.7.1
+-org.elasticsearch.client:elasticsearch-rest-client-sniffer:7.7.1
  +-commons-logging:commons-logging:1.1.3
and
+-org.example:dedup:1.0-SNAPSHOT
  +-org.elasticsearch.test:framework:7.7.1
+-commons-logging:commons-logging:1.1.3

[WARNING]
Dependency convergence error for org.apache.httpcomponents:httpcore:4.4.12
paths to dependency are:
+-org.example:dedup:1.0-SNAPSHOT
  +-org.elasticsearch.test:framework:7.7.1
+-org.elasticsearch.client:elasticsearch-rest-client:7.7.1
  +-org.apache.httpcomponents:httpclient:4.5.10
+-org.apache.httpcomponents:httpcore:4.4.12
and
+-org.example:dedup:1.0-SNAPSHOT
  +-org.elasticsearch.test:framework:7.7.1
+-org.elasticsearch.client:elasticsearch-rest-client:7.7.1
  +-org.apache.httpcomponents:httpcore:4.4.12
and
+-org.example:dedup:1.0-SNAPSHOT
  +-org.elasticsearch.test:framework:7.7.1
+-org.elasticsearch.client:elasticsearch-rest-client:7.7.1
  +-org.apache.httpcomponents:httpasyncclient:4.1.4
+-org.apache.httpcomponents:httpcore:4.4.10
and
+-org.example:dedup:1.0-SNAPSHOT
  +-org.elasticsearch.test:framework:7.7.1
+-org.elasticsearch.client:elasticsearch-rest-client-sniffer:7.7.1
  +-org.apache.httpcomponents:httpcore:4.4.12

[WARNING]
Dependency convergence error for
org.apache.httpcomponents:httpclient:4.5.10 paths to dependency are:
+-org.example:dedup:1.0-SNAPSHOT
  +-org.elasticsearch.test:framework:7.7.1
+-org.elasticsearch.client:elasticsearch-rest-client:7.7.1
  +-org.apache.httpcomponents:httpclient:4.5.10
and
+-org.example:dedup:1.0-SNAPSHOT
  +-org.elasticsearch.test:framework:7.7.1
+-org.elasticsearch.client:elasticsearch-rest-client:7.7.1
  +-org.apache.httpcomponents:httpasyncclient:4.1.4
+-org.apache.httpcomponents:httpclient:4.5.6
and
+-org.example:dedup:1.0-SNAPSHOT
  +-org.elasticsearch.test:framework:7.7.1
+-org.elasticsearch.client:elasticsearch-rest-client-sniffer:7.7.1
  +-org.apache.httpcomponents:httpclient:4.5.10

[WARNING]
Dependency convergence error for
org.apache.httpcomponents:httpcore-nio:4.4.10 paths to dependency are:
+-org.example:dedup:1.0-SNAPSHOT
  +-org.elasticsearch.test:framework:7.7.1