Ross Laidlaw created OODT-640:
---------------------------------

             Summary: Build warnings for maven-war-plugin version number for 
CAS-Product POM
                 Key: OODT-640
                 URL: https://issues.apache.org/jira/browse/OODT-640
             Project: OODT
          Issue Type: Bug
          Components: product server
    Affects Versions: 0.7
            Reporter: Ross Laidlaw
            Assignee: Ross Laidlaw
            Priority: Trivial
             Fix For: 0.7


When building CAS-Product with Maven 3, Maven complains about a missing version 
number for the maven-war-plugin.

{panel}
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for 
org.apache.oodt:cas-product:war:0.6-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for 
org.apache.maven.plugins:maven-war-plugin is missing. @ line 35, column 15
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten 
the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support 
building such malformed projects.
[WARNING] 
{panel}

Later during the build it picks up the default version for the plugin:

{panel}
[INFO] --- maven-war-plugin:2.1.1:war (default-war) @ cas-product ---
{panel}

Explicitly stating this version number for the plugin in the POM, as shown 
below, clears the above warnings:

{code:xml|title=pom.xml}
<plugin>
  <artifactId>maven-war-plugin</artifactId>
  <version>2.1.1</version>
  ...
</plugin>
{code}


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to