我得到这个:
Failed to execute goal on project boot: Could not resolve dependencies for project xxx:boot:jar:1.0.0-SNAPSHOT: Could not find artifact xxx:xxx:jar:1.0.0-SNAPSHOT in central (http://xxx/artifactory/all/) -> [Help 1]
Run Code Online (Sandbox Code Playgroud)
该文物仅在我的本地仓库中。(是的,我可以在那里看到它)Maven 没有恢复。
我看到了很多关于 SO 的想法,但没有一个有效。
我已经尝试过所有的建议:
find ~/.m2/repository -name _maven.repositories -exec rm -v {} \;
find ~/.m2/repository -name _remote.repositories -exec rm -v {} \;
Run Code Online (Sandbox Code Playgroud)
我删除了存储库并重新构建(即 mvn install)所有需要的依赖项。
我添加了
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</snapshots>
Run Code Online (Sandbox Code Playgroud)
到 POM
我尝试过 mvn -o install
我不知道接下来要尝试什么!我在 Ubuntu 16.04 上使用 mvn 3.3.9
根据您的信息,我想说您可能必须运行完整的命令(特别是对于 Maven 2.5 版本之前构建的 jar),它应该是(替换为方便的命令):mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> \
-DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging>
请参阅:https ://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
| 归档时间: |
|
| 查看次数: |
6436 次 |
| 最近记录: |