You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by jv...@apache.org on 2009/05/21 18:56:36 UTC
svn commit: r777173 -
/maven/components/branches/MNG-2766/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java
Author: jvanzyl
Date: Thu May 21 16:56:35 2009
New Revision: 777173
URL: http://svn.apache.org/viewvc?rev=777173&view=rev
Log:
o notes on dealing with CLI invocations
Modified:
maven/components/branches/MNG-2766/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java
Modified: maven/components/branches/MNG-2766/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java
URL: http://svn.apache.org/viewvc/maven/components/branches/MNG-2766/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java?rev=777173&r1=777172&r2=777173&view=diff
==============================================================================
--- maven/components/branches/MNG-2766/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java (original)
+++ maven/components/branches/MNG-2766/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java Thu May 21 16:56:35 2009
@@ -236,6 +236,33 @@
if ( task.indexOf( ":" ) > 0 )
{
+ // If this is a goal like "mvn modello:java" and the POM looks like the following:
+
+ // <project>
+ // <modelVersion>4.0.0</modelVersion>
+ // <groupId>org.apache.maven.plugins</groupId>
+ // <artifactId>project-plugin-level-configuration-only</artifactId>
+ // <version>1.0.1</version>
+ // <build>
+ // <plugins>
+ // <plugin>
+ // <groupId>org.codehaus.modello</groupId>
+ // <artifactId>modello-maven-plugin</artifactId>
+ // <version>1.0.1</version>
+ // <configuration>
+ // <version>1.1.0</version>
+ // <models>
+ // <model>src/main/mdo/remote-resources.mdo</model>
+ // </models>
+ // </configuration>
+ // </plugin>
+ // </plugins>
+ // </build>
+ // </project>
+ //
+ // We want to take the plugin/configuration and attach it to the MojoExecution we are creating. We are also
+ // going to give the MojoExecution an id of default-<goal>.
+
MojoDescriptor mojoDescriptor = getMojoDescriptor( task, session );
MojoExecution mojoExecution = new MojoExecution( mojoDescriptor, "default-" + mojoDescriptor.getGoal() );