在IntelliJ idea中导入Apache Velocity



我在Mac上使用IntelliJ IDEA,想要导入Apache Velocity。在我的pom.xml文件中:

<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

我是否需要添加其他设置?

这是Itellij Idea的全新安装,我必须设置以下内容:

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

当然,您可以下载 jar 文件并将其作为模块导入。

最新更新