解决方法无法找到伪影Consons-Math3:Commons-Math3:JAR:3.4.1



我有一个项目,该项目通过maven执行Jmeter测试套件。

我使用com.lazerycode.jmeter s jmeter-maven-plugin。

版本2.0.3我的项目运行良好。但是,当我将TEH插件版本更新为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]

我知道通过这样的文章,可以通过排除依赖项来解决这。

但这只是我不知道如何配置该依赖性。

我尝试了以下。

<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>

不起作用。

很高兴提供更多信息。

使用插件的2.6.0版本,并在配置节点下添加:

 <excludedArtifacts>
      <exclusion>commons-pool2:commons-pool2</exclusion>
      <exclusion>commons-math3:commons-math3</exclusion>
 </excludedArtifacts>

最新更新