首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何解决找不到工件commons-math3:commons-math3:jar:3.4.1

如何解决找不到工件commons-math3:commons-math3:jar:3.4.1
EN

Stack Overflow用户
提问于 2017-03-08 13:22:51
回答 1查看 916关注 0票数 1

我有一个通过maven执行JMeter测试套件的项目。

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

在2.0.3版本中,我的项目运行良好。但是当我将插件版本更新到2.1.0时,抛出了以下错误。

代码语言:javascript
复制
[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这样的文章,我知道这可以通过排除依赖项来解决。

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

我尝试了下面的方法。

代码语言:javascript
复制
<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>

但这并不管用。

将很乐意提供更多信息。

EN

回答 1

Stack Overflow用户

发布于 2017-12-02 06:25:35

使用2.6.0版本的plugin,并在configuration节点下添加:

代码语言:javascript
复制
 <excludedArtifacts>
      <exclusion>commons-pool2:commons-pool2</exclusion>
      <exclusion>commons-math3:commons-math3</exclusion>
 </excludedArtifacts>
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42663577

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档