在设置新的春季项目时,我在
期间面临问题maven compile
以下是我的准系统pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.taobao</groupId>
<artifactId>toughlib</artifactId>
<version>1.0-SNAPSHOT</version>
<distributionManagement>
<repository>
<id>some-random-id</id>
<name>some random name</name>
<url>http://internal-repo:8081/artifactory/internal</url>
</repository>
</distributionManagement>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>4.2.1-RELEASE</version>
</dependency>
</dependencies>
</project>
我尝试了以下组合
所有这些都会导致同样的错误
[ERROR] Failed to execute goal on project toughlib: Could not resolve dependencies for project com.taobao:toughlib:jar:1.0-SNAPSHOT: Could not find artifact org.springframework:spring-webmvc:jar:4.2.1-RELEASE in myorg (https://artifactory.myenv.com/repo) -> [Help 1]
我可以看到所需的依赖项在〜/ .m2目录中可用 库/组织/ springframework的/弹簧webmvc / 4.2.1-RELEASE /
有关如何修复它的任何线索?
以下是涉及的事物的版本