Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jmeter 2.13 support #121

Closed
Ardesco opened this issue Feb 28, 2015 · 16 comments
Closed

Jmeter 2.13 support #121

Ardesco opened this issue Feb 28, 2015 · 16 comments

Comments

@Ardesco
Copy link
Contributor

Ardesco commented Feb 28, 2015

Looks like we have some missing external dependencies again:

  • event:event:jar:1.0
  • d-haven-managed-pool:d-haven-managed-pool:jar:1.0

I need to do some more investigation but I think this is it at the moment.

@PascalSchumacher
Copy link

It's a bug in JMeter 2.12: https://bz.apache.org/bugzilla/show_bug.cgi?id=57555

You can fix it by adding adding maven exclusions (see bug for details), or wait for JMeter 2.13 to be released (which will hopefully happens in a few days).

By the way thanks for providing jmeter-maven-pluging. :)

@Ardesco
Copy link
Contributor Author

Ardesco commented Mar 1, 2015

I'm aware hence the External Dependency tag.

I don't want to put exclusions into the plugin POM really since there is no guarantee that those exclusions won't cause problem in the future. Looks like we will skip 2.12 support if 2.13 is out very soon.

@PascalSchumacher
Copy link

They took a longer than I expected, but JMeter 2.13 was released last week: https://jmeter.apache.org/changes.html

@Ardesco Ardesco changed the title Jmeter 2.12 support Jmeter 2.13 support Mar 22, 2015
@Ardesco
Copy link
Contributor Author

Ardesco commented Mar 22, 2015

We are going to skip 2.12 support due to missing dependencies and go directly to 2.13.

2.13 has issues as well (see https://bz.apache.org/bugzilla/show_bug.cgi?id=57734) but I can work around these for now.

@hemantsonu20
Copy link

still getting warning for missing dependency in plugin version 1.10.1
plugin name: d-haven-managed-pool:d-haven-managed-pool:jar:1.0

@Ardesco
Copy link
Contributor Author

Ardesco commented Aug 11, 2015

Can you provide your POM.

@bindubudha
Copy link

I am getting the same issue as hemantsonu20.

Here is my POM
pom.txt

@Ardesco
Copy link
Contributor Author

Ardesco commented Feb 11, 2016

@bindubudha You are using version 1.4.1 in that POM which is drastically out of date.

@pashau
Copy link

pashau commented Jan 16, 2017

@Ardesco im getting the same Error with JMeter 3.0:
[INFO] --- jmeter-maven-plugin:2.0.3:configure (configure) @ mvn-jmeter --- [WARNING] The POM for d-haven-managed-pool:d-haven-managed-pool:jar:1.0 is missing, no dependency information available [WARNING] The POM for event:event:jar:1.0 is missing, no dependency informationavailable [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.lazerycode.jmeter:jmeter-maven-plugin:2.0.3:configure (configure) on project mvn-jmeter: Execution configure of goal com.lazerycode.jmeter:jmeter-maven-plugin:2.0.3:configure failed: Plugin com.lazerycode.jmeter:jmeter-maven-plugin:2.0.3 or one of its dependencies could not be resolved: Failure to find d-haven-managed-pool:d-haven-managed-pool:jar:1.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]

my pom.xml
pom.txt

@Ardesco
Copy link
Contributor Author

Ardesco commented Jan 16, 2017

That's because you have added an explicit dependency for d-haven-managed-pool:d-haven-managed-pool:jar:1.0 to the plugin.

<dependency>
    <groupId>d-haven-mpool</groupId>
    <artifactId>managed-pool</artifactId>
    <version>1.0</version>
</dependency>	

Remove the dependencies block it's obsolete in version 2.x of the plugin.

You also need to have a look at https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/wiki/Adding%20Additional%20Libraries%20To%20The%20Classpath

The following section is also obsolete, it's 1.x configuration and no longer used in 2.x:

<jmeterPlugins>
    <plugin>
        <groupId>kg.apc</groupId>
        <artifactId>jmeter-plugins-common</artifactId>
    </plugin>
    <plugin>
        <groupId>kg.apc</groupId>
        <artifactId>jmeter-plugins-standard</artifactId>
    </plugin>
    <plugin>
        <groupId>kg.apc</groupId>
        <artifactId>jmeter-plugins-extras</artifactId>
    </plugin>
    <plugin>
        <groupId>kg.apc</groupId>
        <artifactId>jmeter-plugins-extras-libs</artifactId>
    </plugin>
    <plugin>
        <groupId>kg.apc</groupId>
        <artifactId>jmeter-plugins-webdriver</artifactId>
    </plugin>
</jmeterPlugins>

@pashau
Copy link

pashau commented Jan 17, 2017

@Ardesco oh thank you very much! i was wondering if there are some parts obsolete. is there a documentation of a valid pom file with all valid options? i could only find old examples or examples with minimum configuration.

@Ardesco
Copy link
Contributor Author

Ardesco commented Jan 17, 2017

The wiki documents most of it:

https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/wiki

Also check the CHANGELOG:

https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/blob/master/CHANGELOG.md

The CHANGELOG is the most up to date, there may be some bits in the changeling that aren't in the wiki yet.

@pashau
Copy link

pashau commented Jan 17, 2017

i'm not sure if this is the right place to ask but i tried to add some jmeterExtensions like jmeter.plugins-extras etc. because i need things like parameterized Controller and JSON Path Assertions but i'm getting an error again: [WARNING] The POM for commons-math3:commons-math3:jar:3.4.1 is missing, no dependency information available [WARNING] The POM for commons-pool2:commons-pool2:jar:2.3 is missing, no dependency information available

i tried to add dependencies for commons-math3 and commons-pool2 but that didn't worked out.

updated pom.xml
pom.txt

@Ardesco
Copy link
Contributor Author

Ardesco commented Jan 17, 2017

Again you have started adding dependencies to the plugin. This will not do anything in version 2.x of the plugin, the dependencies block is obsolete.

If you want to add these dependencies You will need to do them this way:

https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/wiki/Adding%20Additional%20Libraries%20To%20The%20Classpath.

The error you are seeing is because jmeter-plugins depends upon JMeter 2.13 which has a broken maven dependency tree. This is something the jmeter-plugins team needs to fix (they need to release a version of jmeter plugins that depends upon JMeter 3.1). You can hack round this by adding explicit dependencies to <jmeterExtensions>.

However the build will still break because the plugin will still try and download some dependencies for jmeter-plugins that don't exist, you can work around this by setting:

<downloadExtensionDependencies>false</downloadExtensionDependencies>

This does however mean that you will need to manually set all the dependencies that jmeter-plugins depends upon in your <jmeterExtensions> block.

(Basically we are hacking around the fact that other libraries have a broken dependency tree)

@pashau
Copy link

pashau commented Jan 17, 2017

ok that downloadExtensionDependencies setting in the jmeter-maven-plugin configuration tag helped to remove the dependency errors. and after i removed the ":pom" in the artifact tag the appropriate jar file was in my /lib/ext/ Folder.
Thank you very much for your effort!

maybe my pom.xml will help someone else.
pom.txt

@eostermueller
Copy link

@pashau, your pom.txt saved me, thanks for sharing! Any ideas on how to load a specific .jmx file into the GUI?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants