【发布时间】:2019-03-17 17:44:23
【问题描述】:
我无法将库正确导入到我正在运行的项目中。我已将库作为依赖项添加到 .pom 中,刷新了 pom,运行 mvn clean install,并设置了 auto-import,以便项目正确更新,但项目未添加为外部库,我不能在我的项目中使用它。我没有错误。我做错了什么?
这是我的 pom 的相关部分
..properties
<crowd.version>2.5.0</crowd.version>
.. end properties
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.atlassian.crowd</groupId>
<artifactId>crowd-integration-springsecurity</artifactId>
<version>${crowd.version}</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</dependencyManagement>
这是我调试错误时所遵循的问题: Import Maven dependencies in IntelliJ IDEA
【问题讨论】:
-
没什么,很遗憾
-
这个依赖关系是在 maven Central 还是您在 settings.xml 中引用的任何其他 repo 中。 mvnrepository.com 显示了一些疯狂的依赖版本:-)。
-
@CrazyCoder 根据您的建议,我尝试了
compile和test,但没有奏效。
标签: maven intellij-idea