我有一个通过maven执行JMeter测试套件的项目。
我使用com.lazerycode.jmeter的jmeter maven-plugin。
在2.0.3版本中,我的项目运行良好。但是当我将插件版本更新到2.1.0时,抛出了以下错误。
[ERROR] Failed to execute goal com.lazerycode.jmeter:jmeter-maven-plugin:2.1.0:configure (configure) on project my-regression: Could not find artifact commons-math3:commons-math3:jar:3.4.1 in central (https://repo.maven.apache.org/maven2) -> [Help 1]通过阅读像this这样的文章,我知道这可以通过排除依赖项来解决。
但这只是我不知道如何配置这种依赖性。
我尝试了下面的方法。
<dependencies>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-math3</artifactId>
<version>3.4.1</version>
</dependency>
<dependency>
<groupId>commons-math3</groupId>
<artifactId>commons-math3</artifactId>
<version>3.4.1</version>
<exclusions>
<exclusion>
<groupId>commons-math3</groupId>
<artifactId>commons-math3</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>但这并不管用。
将很乐意提供更多信息。
发布于 2017-12-02 06:25:35
使用2.6.0版本的plugin,并在configuration节点下添加:
<excludedArtifacts>
<exclusion>commons-pool2:commons-pool2</exclusion>
<exclusion>commons-math3:commons-math3</exclusion>
</excludedArtifacts>https://stackoverflow.com/questions/42663577
复制相似问题