Dependencies tree broken in relation to commons-path3 and common-pool2 regarding jmeter-plugins-standard?

76 views
Skip to first unread message

corentill...@gmail.com

unread,
Aug 18, 2017, 4:10:38 AM8/18/17
to jmeter-plugins
Hi,

I am running in to a problem with use of jmeter-plugins in a jmeter maven project. I added the POM file to this topic.

When running the maven project with clean verify, the following occurs:

Downloading: http://<mydomain>/artifactory/maven-global-repo/commons-math3/commons-math3/3.4.1/commons-math3-3.4.1.pom
[WARNING] The POM for commons-math3:commons-math3:jar:3.4.1 is missing, no dependency information available
Downloading: http://<mydomain>/artifactory/maven-global-repo/commons-pool2/commons-pool2/2.3/commons-pool2-2.3.pom
[WARNING] The POM for commons-pool2:commons-pool2:jar:2.3 is missing, no dependency information available

In the error you can see the location for commons-math3 en commons-pool2 is directly in the root of the repo, but this is not correct.. this should be http://<mydomain>/artifactory/maven-global-repo/org/apache/commons/commons-math3/ and http://<mydomain>/artifactory/maven-global-repo/org/apache/commons/commons-pool2/.

How can I fix this? :) And is this not a bug in the dependencies tree from jmeter-plugin-standard or in de jmeter-maven-plugin?

Kind regards,

Cor Westerman

 
pom.xml

corentill...@gmail.com

unread,
Aug 18, 2017, 4:20:34 AM8/18/17
to jmeter-plugins, corentill...@gmail.com

Andrey Pokhilko

unread,
Aug 18, 2017, 4:29:15 AM8/18/17
to jmeter-...@googlegroups.com

AFAIK, it's JMeter's POM transitional dependency problem. To avoid it, you'd need to specify explicit JMeter libraries dependency in your pom with exclusion of problematic dependencies.

Here's example: https://github.com/undera/jmeter-plugins/blob/master/infra/common/pom.xml#L52

Pay attention to "exclusions".

Andrey Pokhilko

On 08/18/2017 11:20 AM, corentill...@gmail.com wrote:
--
You received this message because you are subscribed to the Google Groups "jmeter-plugins" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jmeter-plugin...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

corentill...@gmail.com

unread,
Aug 18, 2017, 6:07:13 AM8/18/17
to jmeter-plugins
Hi Andrey,

In this case I think it is only needed to change the pom files of jmeter-plugins-X. So that these both jars are downloaded from the correct location in a maven repo, or am I think not correct?

I understand the solution you came up, but I really find it annoying that it doesn't work out of the box. :-(


Kind regards,

Cor




Op vrijdag 18 augustus 2017 10:29:15 UTC+2 schreef Andrey Pokhilko:

corentill...@gmail.com

unread,
Aug 18, 2017, 7:13:24 AM8/18/17
to jmeter-plugins


Op vrijdag 18 augustus 2017 10:29:15 UTC+2 schreef Andrey Pokhilko:

AFAIK, it's JMeter's POM transitional dependency problem. To avoid it, you'd need to specify explicit JMeter libraries dependency in your pom with exclusion of problematic dependencies.

Message has been deleted

corentill...@gmail.com

unread,
Aug 18, 2017, 8:25:05 AM8/18/17
to jmeter-plugins, corentill...@gmail.com
Hi Andrey,

The problem occurs because jmeter-plugins are still using the 2.13 version of ApacheJmeter_components and ApacheJmeter_http and not the available 3.1/3.2. So the ApacheJMeter_parent-3.2.pom isn't used with the correct groupId org.apache.commons instead of commons-math3/commons-pool2 for these dependencies

Are there plans to upgrade the jmeter-plugins to ApacheJmeter 3.2 dependencies?

Kind Regards,

Cor
Reply all
Reply to author
Forward
0 new messages