我有一个POM文件
<repositories>
<repository>
<id>bedatadriven</id>
<name>bedatadriven public repo</name>
<url>https://nexus.bedatadriven.com/content/groups/public/</url>
</repository>
<repository>
<id>cloudera.repo</id>
<url>https://repository.cloudera.com/artifactory/cloudera-repos</url>
<name>Cloudera Repositories</name>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>vroc</id>
<url>http://repo.vroc.ai:8081/repository/maven-vroc/</url>
<name>VROC Repo</name>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<distributionManagement>
<repository>
<id>vroc</id>
<name>Releases</name>
<url>http://repo.vroc.ai:8081/repository/maven-vroc/</url>
</repository>
<snapshotRepository>
<id>vroc</id>
<name>Snapshot</name>
<url>http://repo.vroc.ai:8081/repository/maven-vroc/</url>
</snapshotRepository>
</distributionManagement>
<dependencies>
<dependency>
<groupId>org.renjin</groupId>
<artifactId>renjin-script-engine</artifactId>
<version>0.8.2527</version>
</dependency>
....
当我运行我的项目时,它给出了以下异常。我不知道如何解决它
[ERROR] Failed to execute goal on project mdm: Could not resolve dependencies for project ai.vroc:mdm:jar:2.0.0-SNAPSHOT: Could not find artifact org.renjin:renjin-script-engine:jar:0.8.2527 in vroc (http://repo.vroc.ai:8081/repository/maven-public/) -> [Help 1]
[ERROR]
给出错误的依赖项是在“bedatadriven”存储库中但它无法找到它。我不知道如何解决这个错误。
答案 0 :(得分:0)
您需要将其更改为maven repo中的版本
<version>0.8.2527</version>
您需要自己浏览http://repo.vroc.ai:8081/repository/maven-public,因为这不公开(至少对我而言)
转到org&gt; renjin> renjin-script-engine,然后看看有什么版本