From db347aab214e34c349ae216e9a60c3f145d3b62d Mon Sep 17 00:00:00 2001 From: Trygve Laugstol Date: Tue, 7 Jun 2005 19:14:34 +0000 Subject: [PATCH] o Adding handler for Plexus applications. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@188848 13f79535-47bb-0310-9956-ffa450edef68 --- .../handler/PlexusApplicationHandler.java | 30 +++++++++++++++++++ .../resources/META-INF/plexus/components.xml | 6 ++++ 2 files changed, 36 insertions(+) create mode 100644 maven-artifact/src/main/java/org/apache/maven/artifact/handler/PlexusApplicationHandler.java diff --git a/maven-artifact/src/main/java/org/apache/maven/artifact/handler/PlexusApplicationHandler.java b/maven-artifact/src/main/java/org/apache/maven/artifact/handler/PlexusApplicationHandler.java new file mode 100644 index 0000000000..bcc2587bef --- /dev/null +++ b/maven-artifact/src/main/java/org/apache/maven/artifact/handler/PlexusApplicationHandler.java @@ -0,0 +1,30 @@ +package org.apache.maven.artifact.handler; + +/* + * 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. + */ + +/** + * @author Jason van Zyl + * @version $Id$ + */ +public class PlexusApplicationHandler + extends JarHandler +{ + public String packageGoal() + { + return "plexus:app"; + } +} diff --git a/maven-artifact/src/main/resources/META-INF/plexus/components.xml b/maven-artifact/src/main/resources/META-INF/plexus/components.xml index 4f7cff097d..6e6ebc7233 100644 --- a/maven-artifact/src/main/resources/META-INF/plexus/components.xml +++ b/maven-artifact/src/main/resources/META-INF/plexus/components.xml @@ -151,6 +151,12 @@ org.apache.maven.artifact.handler.EjbHandler + + org.apache.maven.artifact.handler.ArtifactHandler + plexus-application + org.apache.maven.artifact.handler.PlexusApplicationHandler + + org.apache.maven.artifact.handler.ArtifactHandler plexus-service