看起来存储库有问题:
[ERROR] Failed to execute goal on project demo: Could not resolve dependencies for project com.demo:demo:jar:1.0-SNAPSHOT:
Failed to collect dependencies for [de.lab4inf:Lab4Math:jar:1.0.5 (compile)]:
Failed to read artifact descriptor for de.lab4inf:Lab4Math:jar:1.0.5:
Could not transfer artifact de.lab4inf:Lab4Math:pom:1.0.5 from/to
Lab4Inf (http://www.lab4inf.fh-muenster.de/lab4inf/maven-repository):
Access denied to: http://www.lab4inf.fh-muenster.de/lab4inf/maven-repository/de/lab4inf/Lab4Math/1.0.5/Lab4Math-1.0.5.pom ,
ReasonPhrase:Forbidden. -> [Help 1]
尝试检索模块元数据文件并收到 HTTP 403 错误....
我试图按照集成 Math4Lab的说明进行操作,但发现它已经过时了。Maven 3 强制指定依赖版本号,底部有一点注释:
...这样,如果启用了快照,您将始终拥有最新版本。目前没有最终的 Lab4Math 版本可用。
我的结论是这个软件是废弃软件......
例子
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.demo</groupId>
<artifactId>demo</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>de.lab4inf</groupId>
<artifactId>Lab4Math</artifactId>
<version>1.0.5</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>Lab4Inf</id>
<url>http://www.lab4inf.fh-muenster.de/lab4inf/maven-repository</url>
</repository>
</repositories>
</project>