You are viewing a plain text version of this content. The canonical link for it is here.
Posted to m2-dev@maven.apache.org by jv...@apache.org on 2004/06/14 17:19:44 UTC
cvs commit: maven-components/maven-core/src/main/java/org/apache/maven/lifecycle/phase PluginDownloadPhase.java
jvanzyl 2004/06/14 08:19:44
Modified: . pom.xml
maven-core/src/main/java/org/apache/maven/lifecycle/phase
PluginDownloadPhase.java
Log:
Revision Changes Path
1.3 +0 -28 maven-components/pom.xml
Index: pom.xml
===================================================================
RCS file: /home/cvs/maven-components/pom.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- pom.xml 10 Jun 2004 20:27:50 -0000 1.2
+++ pom.xml 14 Jun 2004 15:19:44 -0000 1.3
@@ -82,32 +82,4 @@
<version>3.8.1</version>
</dependency>
</dependencies>
-
- <build>
- <nagEmailAddress>turbine-maven-dev@jakarta.apache.org</nagEmailAddress>
- <sourceDirectory>src/main/java</sourceDirectory>
- <unitTestSourceDirectory>src/test/java</unitTestSourceDirectory>
- <unitTest>
- <includes>
- <include>**/*Test.java</include>
- </includes>
- <resources>
- <resource>
- <directory>src/test/resources</directory>
- </resource>
- <resource>
- <directory>src/test/java</directory>
- <includes>
- <include>**/*.xml</include>
- </includes>
- </resource>
- </resources>
- </unitTest>
- <resources>
- <resource>
- <directory>src/main/resources</directory>
- </resource>
- </resources>
- </build>
- <reports/>
</project>
1.2 +14 -1 maven-components/maven-core/src/main/java/org/apache/maven/lifecycle/phase/PluginDownloadPhase.java
Index: PluginDownloadPhase.java
===================================================================
RCS file: /home/cvs/maven-components/maven-core/src/main/java/org/apache/maven/lifecycle/phase/PluginDownloadPhase.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- PluginDownloadPhase.java 11 Jun 2004 15:11:54 -0000 1.1
+++ PluginDownloadPhase.java 14 Jun 2004 15:19:44 -0000 1.2
@@ -4,6 +4,12 @@
import org.apache.maven.lifecycle.MavenLifecycleContext;
/**
+ * From the name of the goal we can determine the plugin that houses the
+ * goal. The goal will be in the form pluginId:goalName so we take the pluginId
+ * portion of the name and with that we can determine if the plugin is installed
+ * or not. If the plugin is not installed then we can use the pluginId to retrieve
+ * the plugin and install it for use.
+ *
* @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
* @version $Id$
*/
@@ -13,5 +19,12 @@
public void execute( MavenLifecycleContext context )
throws Exception
{
+ String pluginId = context.getGoal().substring( 0, context.getGoal().indexOf( ":" ) - 1 );
+
+ // Now with the id of the plugin we can go searching for it.
+
+ // We should have a quick way of knowing whether it exists or not. Something
+ // needs to be place in the context at startup and during runtime when
+ // additions are made.
}
}