From 24cc881495bb5c3fd25ca2067f8e4afd760c2e76 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Wed, 15 Dec 2010 13:12:37 +0100 Subject: [PATCH] remove unused class --- .../maven3/launcher/Maven3Launcher.java | 2 - .../listeners/HudsonMavenBuildHelper.java | 65 ------------------- 2 files changed, 67 deletions(-) delete mode 100644 maven3-interceptor/src/main/java/org/jvnet/hudson/maven3/listeners/HudsonMavenBuildHelper.java diff --git a/maven3-interceptor/src/main/java/org/jvnet/hudson/maven3/launcher/Maven3Launcher.java b/maven3-interceptor/src/main/java/org/jvnet/hudson/maven3/launcher/Maven3Launcher.java index d111b79e5f..4fe5db37ab 100755 --- a/maven3-interceptor/src/main/java/org/jvnet/hudson/maven3/launcher/Maven3Launcher.java +++ b/maven3-interceptor/src/main/java/org/jvnet/hudson/maven3/launcher/Maven3Launcher.java @@ -31,7 +31,6 @@ import org.codehaus.plexus.DefaultContainerConfiguration; import org.codehaus.plexus.DefaultPlexusContainer; import org.codehaus.plexus.classworlds.realm.ClassRealm; import org.codehaus.plexus.component.repository.exception.ComponentLookupException; -import org.jvnet.hudson.maven3.listeners.HudsonMavenBuildHelper; import org.jvnet.hudson.maven3.listeners.HudsonMavenExecutionResult; /** @@ -102,7 +101,6 @@ public class Maven3Launcher private static MavenExecutionRequest getMavenExecutionRequest( String[] args, DefaultPlexusContainer container ) throws Exception { - HudsonMavenBuildHelper hudsonMavenBuildHelper = container.lookup( HudsonMavenBuildHelper.class ); MavenExecutionRequestBuilder mavenExecutionRequestBuilder = container .lookup( MavenExecutionRequestBuilder.class ); MavenExecutionRequest request = mavenExecutionRequestBuilder.getMavenExecutionRequest( args, System.out ); diff --git a/maven3-interceptor/src/main/java/org/jvnet/hudson/maven3/listeners/HudsonMavenBuildHelper.java b/maven3-interceptor/src/main/java/org/jvnet/hudson/maven3/listeners/HudsonMavenBuildHelper.java deleted file mode 100644 index 3d4d77636f..0000000000 --- a/maven3-interceptor/src/main/java/org/jvnet/hudson/maven3/listeners/HudsonMavenBuildHelper.java +++ /dev/null @@ -1,65 +0,0 @@ -package org.jvnet.hudson.maven3.listeners; - -/* - * Olivier Lamy - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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 javax.inject.Inject; - -import org.codehaus.plexus.PlexusContainer; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable; -import org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException; - -/** - * simple helper to get various stuff from maven builds - * @author Olivier Lamy - */ -@Component(role=HudsonMavenBuildHelper.class) -public class HudsonMavenBuildHelper implements Initializable -{ - - // must be available in a static way weird - // and not really good design ! - //private static MavenPluginManager mavenPluginManager; - - @Inject - private PlexusContainer plexusContainer; - - public void initialize() - throws InitializationException - { - /* - try - { - mavenPluginManager = plexusContainer.lookup( MavenPluginManager.class ); - } - catch ( ComponentLookupException e ) - { - throw new InitializationException(e.getMessage(), e); - } - */ - } - - /*public static MavenPluginManager getMavenPluginManager() - { - return mavenPluginManager; - }*/ - -}