Difference between revisions of "MNG-6189"

From BITPlan Wiki
Jump to navigation Jump to search
Line 16: Line 16:
 
= What to do? =
 
= What to do? =
 
You get this error if your configuration looks like this:
 
You get this error if your configuration looks like this:
<source lang='xml' highlight="5-7,14-15">
+
<source lang='xml' highlight="9-11,18-19">
<build>
+
<project>
  <plugins>
+
  <build>
    ...
+
    <plugins>
    <plugin>
+
      ...
      <groupId>org.apache.maven.plugins</groupId>
+
      <plugin>
      <artifactId>maven-site-plugin</artifactId>
+
        <groupId>org.apache.maven.plugins</groupId>
      <version>3.0</version>
+
        <artifactId>maven-site-plugin</artifactId>
      <configuration>
+
        <version>3.0</version>
        <!-- configuration of reports to be included in site -->
+
        <configuration>
        <reportPlugins>
+
          <!-- configuration of reports to be included in site -->
 +
          <reportPlugins>
 +
            <plugin>
 +
            ...
 +
            </plugin>
 
           <plugin>
 
           <plugin>
 
           ...
 
           ...
 
           </plugin>
 
           </plugin>
        <plugin>
+
          <reportPlugins>
        ...
+
         </configuration>
         </plugin>
+
       </plugin>
        <reportPlugins>
+
     <plugins>
       </configuration>
+
   </build>
     </plugin>
+
</project>
   <plugins>
 
</build>
 
 
</source>
 
</source>

Revision as of 16:07, 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>
            ...
            </plugin>
          <plugin>
          ...
          </plugin>
          <reportPlugins>
        </configuration>
      </plugin>
    <plugins>
  </build>
</project>