在版本21.0.0.7之前,可以通过使用以下Maven坐标包含Maven依赖项来编译项目源代码:
<dependency>
<groupId>io.openliberty.features</groupId>
<artifactId>microProfile-4.0</artifactId>
<version>21.0.0.7</version>
<type>esa</type>
<scope>provided</scope>
</dependency>但是,如果我切换到版本21.0.0.8,Maven没有下载任何依赖项,构建就会立即失败。
然后我比较了版本21.0.0.7和21.0.0.8 (public repo)的pom文件,但由于pom文件中没有列出依赖项,因此没有任何东西真正工作也就不足为奇了。
那么我需要做些什么才能让它再次运行呢?
编辑:
来自Maven的输出(命令行不是来自IDE):
Downloading from central: https://repo.maven.apache.org/maven2/io/openliberty/features/microProfile-4.0/21.0.0.8/microProfile-4.0-21.0.0.8.pom
Downloaded from central: https://repo.maven.apache.org/maven2/io/openliberty/features/microProfile-4.0/21.0.0.8/microProfile-4.0-21.0.0.8.pom (1.2 kB at 5.6 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/io/openliberty/features/microProfile-4.0/21.0.0.8/microProfile-4.0-21.0.0.8.esa
Downloaded from central: https://repo.maven.apache.org/maven2/io/openliberty/features/microProfile-4.0/21.0.0.8/microProfile-4.0-21.0.0.8.esa (16 kB at 40 kB/s)在21.0.0.7中,有106个依赖项下载到本地Maven存储库文件夹。对于21.0.0.8,只包含上面显示的文件,其中只包含esa文件和pom文件,其中包含属性文件和不列出任何依赖项。
发布于 2021-09-01 13:03:13
感谢您找到这个问题--这确实是一个倒退,并且已经打开了一个bug来尽快解决这个问题。https://github.com/OpenLiberty/open-liberty/issues/18244
现在,当使用所有特性bom时,请使用21.0.0.7
谢谢- Chuck
https://stackoverflow.com/questions/68989833
复制相似问题