Maven Website Plugin with Java9

I have a problem with my CI builds on Travis with Java9 (Oracle JDK 9).

I fail on the maven-site-plugin - after removal everything works voraciously.

I tried to remove everything else to check for possible dependency conflicts left only with this plugin assembly. This is just a pom container that still does not work with a simple site plugin (updated to the latest version, which was allegedly ready for java9).

Here are all the resources:

Looking for similar problems on the Internet, I found that it is usually plug-in compatibility (all updated versions of plug-ins) or different versions of dependencies, but I removed them all and still failed.

Lines run locally on OpenJDK 9 perfectly.

-edit -

After applying the prompts from @nullpointer:

+5
source share
1 answer

You should probably wait and upgrade to version 3.7 the site plugin, as mentioned here .

Looks like you are facing something similar to # MSITE-796

Further quote from the same link: -

The release will take a little longer due to the expectation of the SNAPSHOT dependency, which should be released first. Therefore, either a little more patience or add doxia-sitetools 1.7.5 as a dependency to the maven-site plugin in your own project.

 <dependency> <groupId>org.apache.maven.doxia</groupId> <artifactId>doxia-sitetools</artifactId> <version>1.7.5</version> </dependency> 

-edit -

Since doxia-sitetools is just a pom container project, you must immediately update all its modules:

  <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> 
+4
source

Source: https://habr.com/ru/post/1273007/


All Articles