2017-08-25 98 views
0

我在Mac上使用IntelliJ IDEA,並且想要導入Apache Velocity。在我的pom.xml文件:在IntelliJ主題中導入Apache Velocity

<dependencies> 
    <!-- https://mvnrepository.com/artifact/org.apache.velocity/velocity --> 
    <dependency> 
     <groupId>org.apache.velocity</groupId> 
     <artifactId>velocity</artifactId> 
     <version>1.7</version> 
    </dependency> 
</dependencies> 

我收到錯誤

Failed to read artifact descriptor for org.apache.velocity:jar:1.7

是否有我需要添加其他設置?

+1

無法重現。請檢查日誌中的錯誤,請參閱http://stackoverflow.com/a/42427510/104891。 – CrazyCoder

+0

檢查https://stackoverflow.com/questions/35105667/failed-to-read-artifact-descriptor-intellij – user7294900

回答

0

這是一個新安裝的Itellij理念,我不得不設置如下:

IntelliJ Idea -> Preferences -> Build, Execution, Deployment -> 
Build Tools -> Maven -> Always update snapshots -> Apply -> Ok 

當然你也可以只下載jar文件並導入它作爲一個模塊來代替。