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 ev...@apache.org on 2005/03/03 10:04:36 UTC
cvs commit: maven-components/maven-plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war ExplodedMojo.java
evenisse 2005/03/03 01:04:36
Modified: maven-mboot2/src/main/java MBoot.java
Added: maven-plugins/maven-war-plugin .cvsignore pom.xml
maven-plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war
ExplodedMojo.java
Log:
Initialization of war plugin.
It doesn't work but don't break ci.sh and it's for Brett debugging.
Revision Changes Path
1.54 +2 -1 maven-components/maven-mboot2/src/main/java/MBoot.java
Index: MBoot.java
===================================================================
RCS file: /home/cvs/maven-components/maven-mboot2/src/main/java/MBoot.java,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -r1.53 -r1.54
--- MBoot.java 2 Mar 2005 13:40:00 -0000 1.53
+++ MBoot.java 3 Mar 2005 09:04:36 -0000 1.54
@@ -97,7 +97,8 @@
"maven-plugins/maven-plugin-plugin",
"maven-plugins/maven-pom-plugin",
"maven-plugins/maven-resources-plugin",
- "maven-plugins/maven-surefire-plugin" };
+ "maven-plugins/maven-surefire-plugin",
+ "maven-plugins/maven-war-plugin" };
// ----------------------------------------------------------------------
// Standard locations for resources in Maven projects.
1.1 maven-components/maven-plugins/maven-war-plugin/.cvsignore
Index: .cvsignore
===================================================================
target
*~
*.log
.classpath
.project
*.ipr
*.iws
*.iml
1.1 maven-components/maven-plugins/maven-war-plugin/pom.xml
Index: pom.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>maven</groupId>
<artifactId>maven-plugin-parent</artifactId>
<version>2.0-SNAPSHOT</version>
</parent>
<groupId>maven</groupId>
<artifactId>maven-war-plugin</artifactId>
<type>plugin</type>
<name>Maven War Plugin</name>
<version>1.0-SNAPSHOT</version>
<package>org.apache.maven.plugin.war</package>
<dependencies>
<dependency>
<groupId>maven</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<type>plugin</type>
</dependency>
<dependency>
<groupId>plexus</groupId>
<artifactId>plexus-container-default</artifactId>
<version>1.0-alpha-2-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>plexus</groupId>
<artifactId>plexus-archiver</artifactId>
<version>1.0-alpha-1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>maven</groupId>
<artifactId>maven-artifact</artifactId>
<version>2.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>maven</groupId>
<artifactId>maven-core</artifactId>
<version>2.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>maven</groupId>
<artifactId>maven-model</artifactId>
<version>2.0-SNAPSHOT</version>
</dependency>
</dependencies>
</project>
1.1 maven-components/maven-plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/ExplodedMojo.java
Index: ExplodedMojo.java
===================================================================
package org.apache.maven.plugin.war;
/*
* Copyright 2001-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.apache.maven.plugin.AbstractPlugin;
import org.apache.maven.plugin.PluginExecutionRequest;
import org.apache.maven.plugin.PluginExecutionResponse;
import org.apache.maven.project.MavenProject;
/**
* @goal exploded
* @phase process-classes
*
* @description build a jar
*
* @parameter
* name="jarName"
* type="String"
* required="true"
* validator=""
* expression="#project.build.finalName"
* description=""
* @parameter
* name="compress"
* type="String"
* required="false"
* validator=""
* expression="#maven.jar.compress"
* default="true"
* description=""
* @parameter
* name="index"
* type="String"
* required="false"
* validator=""
* expression="#maven.jar.index"
* default="false"
* description=""
* @parameter
* name="manifest"
* type="String"
* required="false"
* validator=""
* expression="#maven.jar.manifest"
* description=""
* @parameter
* name="mainClass"
* type="String"
* required="false"
* validator=""
* expression="#maven.jar.mainClass"
* description=""
* @parameter
* name="addClasspath"
* type="String"
* required="false"
* validator=""
* expression="#maven.jar.addClasspath"
* default="false"
* description=""
* @parameter
* name="addExtensions"
* type="String"
* required="false"
* validator=""
* expression="#maven.jar.addExtensions"
* default="false"
* description=""
* @parameter
* name="outputDirectory"
* type="String"
* required="true"
* validator=""
* expression="#project.build.output"
* description=""
* @parameter
* name="basedir"
* type="String"
* required="true"
* validator=""
* expression="#project.build.directory"
* description=""
* @parameter
* name="project"
* type="org.apache.maven.project.MavenProject"
* required="true"
* validator=""
* expression="#project"
* description="current MavenProject instance"
*
* @author <a href="evenisse@apache.org">Emmanuel Venisse</a>
* @version $Id: ExplodedMojo.java,v 1.1 2005/03/03 09:04:36 evenisse Exp $
*/
public class ExplodedMojo
extends AbstractPlugin
{
public void execute( PluginExecutionRequest request, PluginExecutionResponse response )
throws Exception
{
// ----------------------------------------------------------------------
//
// ----------------------------------------------------------------------
System.out.println("webapp");
}
}