有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

jira插件项目中的java maven依赖项错误

我的jira插件项目运行良好。我已经执行了“atlas clean”,因为变化没有反映在JIRA中。 现在,当我执行-atlas run时,它会给出如下依赖项错误:

org.apache.http does not exists.
org.apache.http.client does not exists.
org.apache.http.client does not exists.
org.apache.http.client.methods does not exists.
.....

在pom中。xml,它已经存在了

      <dependency>
        <groupId>org.apache.httpcomponents</groupId>
        <artifactId>httpclient</artifactId>
        <version>4.1.1</version>
        <scope>test</scope>
    </dependency>

任何想法。。如何解决


共 (1) 个答案

  1. # 1 楼答案

    您已经在测试范围中添加了依赖项,如果在测试阶段以外的其他阶段需要依赖项,则必须更改范围