How To Ignore Maven's Plugin Execution Non Covered Past Times Lifecycle Configuration Warning

There are times when yous desire to ignore closed to of maven warnings or errors. To produce so, ordinarily nosotros add together the ff code inwards the bring upward project's pom.xml.

For illustration to ignore liferay's theme-merge together with build-thumbnail finish warning.

<pluginManagement>  <plugins>   <plugin>    <groupId>org.eclipse.m2e</groupId>    <artifactId>lifecycle-mapping</artifactId>    <version>1.0.0</version>    <configuration>     <lifecycleMappingMetadata>      <pluginExecutions>       <pluginExecution>        <pluginExecutionFilter>         <groupId>org.apache.maven.plugins</groupId>         <artifactId>maven-antrun-plugin</artifactId>         <versionRange>[1.7,)</versionRange>         <goals>          <goal>run</goal>         </goals>        </pluginExecutionFilter>        <action>         <ignore />        </action>       </pluginExecution>       <pluginExecution>        <pluginExecutionFilter>         <groupId>com.liferay.maven.plugins</groupId>         <artifactId>liferay-maven-plugin</artifactId>         <versionRange>[6.1.0,)</versionRange>         <goals>          <goal>theme-merge</goal>          <goal>build-thumbnail</goal>         </goals>        </pluginExecutionFilter>        <action>         <ignore />        </action>       </pluginExecution>      </pluginExecutions>     </lifecycleMappingMetadata>    </configuration>   </plugin>  </plugins> </pluginManagement> 
Next
Previous
Click here for Comments

0 komentar:

Please comment if there are any that need to be asked.