0
我無法正確地將庫導入到正在運行的項目中。我在.pom
中添加了該庫作爲依賴項,刷新了pom,運行mvn clean install
,並且已經設置了auto-import
以便項目得到正確更新,但項目不會作爲外部庫添加,而且我也不能在我的項目中使用它。我沒有得到任何錯誤。我究竟做錯了什麼?Maven在添加到Intellij中的.pom文件後沒有將外部庫導入到項目中
這裏是我的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
沒什麼,不幸的是 – Rafa
在maven central或任何其他您在settings.xml中引用的repo中存在此依賴項。 [mvnrepository.com](http://mvnrepository.com/artifact/com.atlassian.crowd/crowd-integration-springsecurity)顯示了一些瘋狂的依賴版本:-)。 –
@CrazyCoder我試過'編譯'和'測試'基於你的建議,但它沒有奏效。 – Rafa