Difference between revisions of "MNG-6189"
Jump to navigation
Jump to search
Line 43: | Line 43: | ||
</project> | </project> | ||
</source> | </source> | ||
+ | You first might want to upgrade your plugin version: | ||
+ | <source lang='xml' highlight="8"> | ||
+ | <project> | ||
+ | <build> | ||
+ | <plugins> | ||
+ | ... | ||
+ | <plugin> | ||
+ | <groupId>org.apache.maven.plugins</groupId> | ||
+ | <artifactId>maven-site-plugin</artifactId> | ||
+ | <version>3.6</version> | ||
+ | <configuration> | ||
+ | <!-- configuration of reports to be included in site --> | ||
+ | <reportPlugins> | ||
+ | <plugin> | ||
+ | <!-- report plugin 1 --> | ||
+ | ... | ||
+ | </plugin> | ||
+ | <plugin> | ||
+ | <!-- report plugin 1 --> | ||
+ | ... | ||
+ | </plugin> | ||
+ | <reportPlugins> | ||
+ | </configuration> | ||
+ | </plugin> | ||
+ | <plugins> | ||
+ | </build> | ||
+ | </project> | ||
+ | </source> | ||
+ | |||
Then you might want to create a new node '''<reporting></reporting>''' (it it does not exist yet) directly unter the '''<project><project>''' node: | Then you might want to create a new node '''<reporting></reporting>''' (it it does not exist yet) directly unter the '''<project><project>''' node: | ||
<source lang='xml' highlight="2-3"> | <source lang='xml' highlight="2-3"> | ||
Line 98: | Line 127: | ||
</project> | </project> | ||
</source> | </source> | ||
+ | |||
= Example = | = Example = | ||
See https://github.com/BITPlan/com.bitplan.antlr/blob/master/pom.xml for a complete pom.xml example | See https://github.com/BITPlan/com.bitplan.antlr/blob/master/pom.xml for a complete pom.xml example |
Revision as of 15:20, 14 October 2017
As discussed in:
https://stackoverflow.com/questions/46742407/some-problems-were-encountered-while-building-the-effective-model-for when you see the warning:
[WARNING] [WARNING] Some problems were encountered while building the effective model for com.bitplan.antlr:com.bitplan.antlr:jar:0.0.1 [WARNING] Reporting configuration should be done in <reporting> section, not in maven-site-plugin <configuration> as reportPlugins parameter. @ line 213, column 20 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING]
You have run into an issue that is explained in:
What to do?
You get this error if your configuration looks like this:
<project>
<build>
<plugins>
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.0</version>
<configuration>
<!-- configuration of reports to be included in site -->
<reportPlugins>
<plugin>
<!-- report plugin 1 -->
...
</plugin>
<plugin>
<!-- report plugin 1 -->
...
</plugin>
<reportPlugins>
</configuration>
</plugin>
<plugins>
</build>
</project>
You first might want to upgrade your plugin version:
<project>
<build>
<plugins>
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.6</version>
<configuration>
<!-- configuration of reports to be included in site -->
<reportPlugins>
<plugin>
<!-- report plugin 1 -->
...
</plugin>
<plugin>
<!-- report plugin 1 -->
...
</plugin>
<reportPlugins>
</configuration>
</plugin>
<plugins>
</build>
</project>
Then you might want to create a new node <reporting></reporting> (it it does not exist yet) directly unter the <project><project> node:
<project>
<reporting>
</reporting>
</project>
Now cut&paste the list of report plugins from the configuration above into it like this:
<project>
<reporting>
<plugin>
<!-- report plugin 1 -->
...
</plugin>
<plugin>
<!-- report plugin 1 -->
...
</plugin>
</reporting>
</project>
In the plugins list in the build part only:
<project>
<build>
<plugins>
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.0</version>
</plugin>
<plugins>
</build>
</project>
is needed or if you have any non report configurations:
<project>
<build>
<plugins>
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.6</version>
<configuration>
...
</configuration>
</plugin>
<plugins>
</build>
</project>
Example
See https://github.com/BITPlan/com.bitplan.antlr/blob/master/pom.xml for a complete pom.xml example