Open bobtins opened 9 years ago
is that because they are really getting dependencies from the parent POM
The POM exclusions are exactly to get around this. Last I tested, it seemed to work fine. Will try and reproduce this. Only difference that stands out is gradle version. Can you check with gradle v2.3 please?
Just downloaded gradle 2.3, switched my path to it, tried again, and got the same result. I agree that the POM exclusions should fix this. The confusing thing is that there are a whole lot more ApacheJMeter_* POMs that use the problematic ApacheJMeter_parent which work (like _ftp, _ldap, etc.), but only _core, _http, _components, and jorphan seem to ignore the exclusion. Should I try blowing away my cache? I just turned on --debug so I'm going to see if I can make any sense of it. BTW, I am just getting started with Gradle, but I have a lot of experience with Maven and Groovy. This "dependency hell" is what I hate about Maven...someone screws up a POM file and wastes days of people's time. :rage: Also, is there another way to discuss the plugin besides logging an issue? I'm a newbie at Github too. :baby: Thanks for the quick response!
Hit this same issue in Maven with:
<dependency>
<groupId>org.apache.jmeter</groupId>
<artifactId>ApacheJMeter_core</artifactId>
<version>2.13</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.jmeter</groupId>
<artifactId>ApacheJMeter_java</artifactId>
<version>2.13</version>
<scope>provided</scope>
</dependency>
@dkirrane are you facing this problem while using this plugin? Or do you mean with jmeter 2.13 and maven in general?
for jmeter and maven, adding these exclusions helps:
<exclusions>
<exclusion>
<artifactId>commons-math3</artifactId>
<groupId>commons-math3</groupId>
</exclusion>
<exclusion>
<artifactId>commons-pool2</artifactId>
<groupId>commons-pool2</groupId>
</exclusion>
</exclusions>
As for this plugin, since we cant find the project owner, I started maintaining a fork over at https://github.com/jmeter-gradle-plugin/jmeter-gradle-plugin This issue is currently fixed, with some additional enhancements as well. If you face any issues with it, feel free to raise a new issue over there - I'll try to help you out.
Using gradle 2.4.
build.gradle:
output:
It's not a bug in the plugin code or config, it's a problem with the ApacheJMeter_parent POM file. I saw the exclusions in the plugin POM, but for some reason they are not taking effect for the JMeter core, http, or components...is that because they are really getting dependencies from the parent POM?
Workaround was to create a local filesystem Maven repo with the fixed ApacheJMeter_parent POM file, and configure it in build.gradle: