From c8bd83c848681a9f59d29f4cd23dad1e4ce5e103 Mon Sep 17 00:00:00 2001 From: Brett Leslie Porter Date: Thu, 3 Mar 2005 11:21:57 +0000 Subject: [PATCH] add temporary war:war as it is set as the package goal git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163452 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/maven/plugin/war/WarMojo.java | 120 ++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100644 maven-plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/WarMojo.java diff --git a/maven-plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/WarMojo.java b/maven-plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/WarMojo.java new file mode 100644 index 0000000000..90d3e4d2c8 --- /dev/null +++ b/maven-plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/WarMojo.java @@ -0,0 +1,120 @@ +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 war + * @phase package + * + * @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 Emmanuel Venisse + * @version $Id$ + */ +public class WarMojo + extends AbstractPlugin +{ + public void execute( PluginExecutionRequest request, PluginExecutionResponse response ) + throws Exception + { + // ---------------------------------------------------------------------- + // + // ---------------------------------------------------------------------- +System.out.println("war"); + + } +}