我将版本依赖项更新pom.xml
为:
<dependency>
<groupId>com.twelvemonkeys.imageio</groupId>
<artifactId>imageio</artifactId>
<version>3.2.1</version>
</dependency>
<dependency>
<groupId>com.twelvemonkeys.imageio</groupId>
<artifactId>imageio-jpeg</artifactId>
<version>3.2.1</version>
</dependency>
跑步时
mvn package
我们看到正在下载的新版本:
[INFO] ------------------------------------------------------------------------
Downloading: https://repository.apache.org/content/repositories/snapshots/com/twelvemonkeys/imageio/imageio-jpeg/3.2.1/imageio-jpeg-3.2.1.pom
Downloading: https://repo.maven.apache.org/maven2/com/twelvemonkeys/imageio/imageio-jpeg/3.2.1/imageio-jpeg-3.2.1.pom
Downloaded: https://repo.maven.apache.org/maven2/com/twelvemonkeys/imageio/imageio-jpeg/3.2.1/imageio-jpeg-3.2.1.pom (2 KB at 8.0 KB/sec)
Downloading: https://repository.apache.org/content/repositories/snapshots/com/twelvemonkeys/imageio/imageio-core/3.2.1/imageio-core-3.2.1.pom
Downloading: https://repo.maven.apache.org/maven2/com/twelvemonkeys/imageio/imageio-core/3.2.1/imageio-core-3.2.1.pom
Downloaded: https://repo.maven.apache.org/maven2/com/twelvemonkeys/imageio/imageio-core/3.2.1/imageio-core-3.2.1.pom (1004 B at 22.3 KB/sec)
Downloading: https://repository.apache.org/content/repositories/snapshots/com/twelvemonkeys/imageio/imageio-metadata/3.2.1/imageio-metadata-3.2.1.pom
Downloading: https://repo.maven.apache.org/maven2/com/twelvemonkeys/imageio/imageio-metadata/3.2.1/imageio-metadata-3.2.1.pom
Downloaded: https://repo.maven.apache.org/maven2/com/twelvemonkeys/imageio/imageio-metadata/3.2.1/imageio-metadata-3.2.1.pom (974 B at 20.7 KB/sec)
Downloading: https://repository.apache.org/content/repositories/snapshots/com/twelvemonkeys/imageio/imageio-jpeg/3.2.1/imageio-jpeg-3.2.1.jar
Downloading: https://repository.apache.org/content/repositories/snapshots/com/twelvemonkeys/imageio/imageio-core/3.2.1/imageio-core-3.2.1.jar
Downloading: https://repository.apache.org/content/repositories/snapshots/com/twelvemonkeys/imageio/imageio-metadata/3.2.1/imageio-metadata-3.2.1.jar
Downloading: https://repo.maven.apache.org/maven2/com/twelvemonkeys/imageio/imageio-jpeg/3.2.1/imageio-jpeg-3.2.1.jar
Downloading: https://repo.maven.apache.org/maven2/com/twelvemonkeys/imageio/imageio-core/3.2.1/imageio-core-3.2.1.jar
Downloading: https://repo.maven.apache.org/maven2/com/twelvemonkeys/imageio/imageio-metadata/3.2.1/imageio-metadata-3.2.1.jar
Downloaded: https://repo.maven.apache.org/maven2/com/twelvemonkeys/imageio/imageio-jpeg/3.2.1/imageio-jpeg-3.2.1.jar (58 KB at 145.8 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/com/twelvemonkeys/imageio/imageio-core/3.2.1/imageio-core-3.2.1.jar (64 KB at 152.0 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/com/twelvemonkeys/imageio/imageio-metadata/3.2.1/imageio-metadata-3.2.1.jar (72 KB at 171.7 KB/sec)
然而,package
目标仍然失败..当无法解决这些相同的依赖项之一时(imageio.jar:3.2.1
)?
[信息] --------------------------------------------- ------------------------- [信息] 构建失败 [信息] ----------------- -------------------------------------------------- ----- [INFO] 总时间:2.911 s [INFO] 完成时间:2016-06-21T13:21:39-07:00 [INFO] 最终内存:17M/221M [INFO] ------ -------------------------------------------------- ---------------- [错误] 无法在项目 sparknet 上执行目标:无法解析项目 org.amplab:sparknet:jar:1.0 的依赖项:找不到 com.twelvemonkeys。https://repository.apache.org/content/repositories/snapshots中的imageio:imageio:jar:3.2.1 已缓存在本地存储库中,直到 Maven 快照存储库的更新间隔已过或更新完成后才会重新尝试解析强制 -> [帮助 1] [错误]