提交 24cc8814 编写于 作者: O Olivier Lamy

remove unused class

上级 0a4f1f3e
...@@ -31,7 +31,6 @@ import org.codehaus.plexus.DefaultContainerConfiguration; ...@@ -31,7 +31,6 @@ import org.codehaus.plexus.DefaultContainerConfiguration;
import org.codehaus.plexus.DefaultPlexusContainer; import org.codehaus.plexus.DefaultPlexusContainer;
import org.codehaus.plexus.classworlds.realm.ClassRealm; import org.codehaus.plexus.classworlds.realm.ClassRealm;
import org.codehaus.plexus.component.repository.exception.ComponentLookupException; import org.codehaus.plexus.component.repository.exception.ComponentLookupException;
import org.jvnet.hudson.maven3.listeners.HudsonMavenBuildHelper;
import org.jvnet.hudson.maven3.listeners.HudsonMavenExecutionResult; import org.jvnet.hudson.maven3.listeners.HudsonMavenExecutionResult;
/** /**
...@@ -102,7 +101,6 @@ public class Maven3Launcher ...@@ -102,7 +101,6 @@ public class Maven3Launcher
private static MavenExecutionRequest getMavenExecutionRequest( String[] args, DefaultPlexusContainer container ) private static MavenExecutionRequest getMavenExecutionRequest( String[] args, DefaultPlexusContainer container )
throws Exception throws Exception
{ {
HudsonMavenBuildHelper hudsonMavenBuildHelper = container.lookup( HudsonMavenBuildHelper.class );
MavenExecutionRequestBuilder mavenExecutionRequestBuilder = container MavenExecutionRequestBuilder mavenExecutionRequestBuilder = container
.lookup( MavenExecutionRequestBuilder.class ); .lookup( MavenExecutionRequestBuilder.class );
MavenExecutionRequest request = mavenExecutionRequestBuilder.getMavenExecutionRequest( args, System.out ); MavenExecutionRequest request = mavenExecutionRequestBuilder.getMavenExecutionRequest( args, System.out );
......
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;
}*/
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册