jira-importer opened a new issue, #148:
URL: https://github.com/apache/maven-war-plugin/issues/148

   **[Karl Heinz 
Marbaise](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=khmarbaise)**
 opened 
**[MWAR-316](https://issues.apache.org/jira/browse/MWAR-316?redirect=false)** 
and commented
   
   The following:
   
   ```java
   @Component
   protected MavenProject project;
   ```
   
   has to be replaced by the following:
   
   ```java
   @Parameter( defaultValue = "${project}", readonly = true, required = true )
   protected MavenProject project;
   ```
   
   The following:
   
   ```java
   @Component
   private MavenSession session;
   ```
   
   has to be replaced by the following:
   
   ```java
   @Parameter( defaultValue = "${session}", readonly = true, required = true )
   private MavenSession session;
   ```
   
   The following:
   
   ```java
   @Component
   private Settings settings;
   ```
   
   has to be replaced by the following:
   
   ```java
   @Parameter( defaultValue = "${settings}", readonly = true, required = true )
   private Settings settings;
   ```
   
   Reference: 
http://maven.apache.org/ref/3.1.1/maven-core/apidocs/org/apache/maven/plugin/PluginParameterExpressionEvaluator.html
   
   
   ---
   
   **Affects:** 2.5
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to