[英]Maven Site Plugin with Java9
I have a problem running my CI builds on Travis with Java9 (Oracle JDK 9). 我在使用Java9(Oracle JDK 9)在Travis上运行CI构建时遇到问题。
I fails on maven-site-plugin
- after removing it everything works smothly. 我在
maven-site-plugin
上失败了 - 删除之后一切都工作得很顺利。
I tried removing everything else to check for possible dependencies collisions, left out with just this one plugin build still fails. 我尝试删除其他所有内容以检查可能存在依赖性冲突,只剩下这一个插件构建仍然失败。 It is just a pom container, still failing with just a simple site plugin (updated to latest version that claimed to be java9 ready).
它只是一个pom容器,仍然失败只有一个简单的站点插件(更新到声称已准备好java9的最新版本)。
Here are all of the resources: 以下是所有资源:
Looking for similar problems on the web I found that usually it's plugin compatibility (all of the plugins ware updated) or different dependencies versions, but I removed all of them and it still fails. 在Web上寻找类似的问题我发现通常它的插件兼容性(所有插件更新)或不同的依赖版本,但我删除了所有这些并且它仍然失败。
The builds run locally on OpenJDK 9 perfectly fine. 构建在OpenJDK 9上本地运行完全正常。
-edit- -编辑-
After applying hint from @nullpointer : 从@nullpointer应用提示后:
You should probably wait and update to using version 3.7
of site plugin as mentioned here . 您应该等待并更新为使用此处提到的
3.7
版网站插件。
Seems like you are encountering something similar to #MSITE-796 好像你遇到类似#MSITE-796的东西
Quoting further from the same link:- 从同一链接进一步引述: -
The release will need a little bit more time due to pending
SNAPSHOT
-dependencies which need to be released first.由于需要首先释放的待处理
SNAPSHOT
-dependencies,该版本需要更多时间。 So either have a little bit more patience or adddoxia-sitetools
1.7.5
as a dependency to the maven-site-plugin in your own project.所以要么有一点耐心,要么添加
doxia-sitetools
1.7.5
作为你自己项目中maven-site-plugin的依赖。
<dependency>
<groupId>org.apache.maven.doxia</groupId>
<artifactId>doxia-sitetools</artifactId>
<version>1.7.5</version>
</dependency>
-edit- -编辑-
As doxia-sitetools
is just a pom
container project one needs to update all of it's modules directly: 由于
doxia-sitetools
只是一个pom
容器项目,因此需要直接更新所有模块:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.6</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.doxia</groupId>
<artifactId>doxia-decoration-model</artifactId>
<version>1.7.5</version>
</dependency>
<dependency>
<groupId>org.apache.maven.doxia</groupId>
<artifactId>doxia-skin-model</artifactId>
<version>1.7.5</version>
</dependency>
<dependency>
<groupId>org.apache.maven.doxia</groupId>
<artifactId>doxia-integration-tools</artifactId>
<version>1.7.5</version>
</dependency>
<dependency>
<groupId>org.apache.maven.doxia</groupId>
<artifactId>doxia-site-renderer</artifactId>
<version>1.7.5</version>
</dependency>
<dependency>
<groupId>org.apache.maven.doxia</groupId>
<artifactId>doxia-doc-renderer</artifactId>
<version>1.7.5</version>
</dependency>
</dependencies>
</plugin>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.