diff --git a/activemq-tooling/maven-dependency-plugin/.classpath b/activemq-tooling/maven-dependency-plugin/.classpath deleted file mode 100644 index 12149c4e77..0000000000 --- a/activemq-tooling/maven-dependency-plugin/.classpath +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/activemq-tooling/maven-dependency-plugin/.project b/activemq-tooling/maven-dependency-plugin/.project deleted file mode 100644 index 0902cf209e..0000000000 --- a/activemq-tooling/maven-dependency-plugin/.project +++ /dev/null @@ -1,18 +0,0 @@ - - maven-dependency-plugin - The Apache Software Foundation provides support for the Apache community of open-source software projects. - The Apache projects are characterized by a collaborative, consensus based development process, an open and - pragmatic software license, and a desire to create high quality software that leads the way in its field. - We consider ourselves not simply a group of projects sharing a server, but rather a community of developers - and users. - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.jdt.core.javanature - - \ No newline at end of file diff --git a/activemq-tooling/maven-dependency-plugin/.settings/org.eclipse.jdt.core.prefs b/activemq-tooling/maven-dependency-plugin/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index bb98e11d90..0000000000 --- a/activemq-tooling/maven-dependency-plugin/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,5 +0,0 @@ -#Tue Jun 13 01:49:56 EDT 2006 -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.4 -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.source=1.4 -org.eclipse.jdt.core.compiler.compliance=1.4 diff --git a/activemq-tooling/maven-dependency-plugin/pom.xml b/activemq-tooling/maven-dependency-plugin/pom.xml deleted file mode 100644 index 69a80ea1d9..0000000000 --- a/activemq-tooling/maven-dependency-plugin/pom.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - 4.0.0 - - org.apache.activemq - maven-dependency-plugin - 1.0-SNAPSHOT - maven-plugin - ActiveMQ :: Dependency Plugin - - - - apache-repo - Apache CVS Repository - scp://minotaur.apache.org/www/cvs.apache.org/maven-snapshot-repository - - - apache-snapshots - Apache CVS Development Repository - scp://minotaur.apache.org/www/cvs.apache.org/maven-snapshot-repository - - - apache-website - scpexe://people.apache.org/www/incubator.apache.org/activemq/maven/tooling/maven-dependency-plugin/ - - - - - scm:svn:http://svn.apache.org/repos/asf/incubator/activemq/trunk/tooling/maven-dependency-plugin - scm:svn:http://svn.apache.org/repos/asf/incubator/activemq/trunk/tooling/maven-dependency-plugin - http://svn.apache.org/viewcvs.cgi/incubator/activemq/trunk/tooling/maven-dependency-plugin/ - - - - - org.apache.maven - maven-plugin-api - 2.0 - - - junit - junit - test - 3.8.1 - - - org.codehaus.plexus - plexus-archiver - 1.0-alpha-3 - - - org.apache.maven - maven-plugin-api - 2.0 - - - org.apache.maven - maven-artifact - 2.0 - - - org.apache.maven - maven-project - 2.0 - - - diff --git a/activemq-tooling/maven-dependency-plugin/src/main/java/org/apache/activemq/maven/DeployDependenciesMojo.java b/activemq-tooling/maven-dependency-plugin/src/main/java/org/apache/activemq/maven/DeployDependenciesMojo.java deleted file mode 100644 index cec597b378..0000000000 --- a/activemq-tooling/maven-dependency-plugin/src/main/java/org/apache/activemq/maven/DeployDependenciesMojo.java +++ /dev/null @@ -1,152 +0,0 @@ -/** - * - * 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. - */ -package org.apache.activemq.maven; - -import java.io.File; -import java.util.HashSet; -import java.util.Iterator; -import java.util.List; -import java.util.Set; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.deployer.ArtifactDeployer; -import org.apache.maven.artifact.deployer.ArtifactDeploymentException; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.repository.DefaultArtifactRepository; -import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout; -import org.apache.maven.artifact.repository.layout.DefaultRepositoryLayout; -import org.apache.maven.plugin.AbstractMojo; -import org.apache.maven.plugin.MojoExecutionException; -import org.apache.maven.project.MavenProject; - -/** - * This is a useful little mojo that allows you to copy all the transitive - * dependencies to a specified deployment repository. Great if you want to create - * a new repo for your project's dependencies. - * - * @goal deploy-dependencies - * @requiresDependencyResolution compile - * @phase process-sources - */ -public class DeployDependenciesMojo extends AbstractMojo { - - /** - * @parameter expression="${project}" - * @readonly - * @required - */ - private MavenProject project; - - /** - * @parameter expression="${reactorProjects}" - * @required - * @readonly - */ - private List reactorProjects; - - /** - * @parameter expression="${component.org.apache.maven.artifact.deployer.ArtifactDeployer}" - * @required - * @readonly - */ - private ArtifactDeployer deployer; - - /** - * @parameter expression="${localRepository}" - * @required - * @readonly - */ - private ArtifactRepository localRepository; - - /** - * @parameter - */ - private ArtifactRepository deploymentRepository; - - /** - * @parameter - */ - private String deploymentRepositoryId; - - /** - * @parameter - */ - private String deploymentRepositoryUrl; - - /** - * @parameter - */ - private ArtifactRepositoryLayout deploymentRepositoryLayout = new DefaultRepositoryLayout(); - - - /** - * - */ - public void execute() throws MojoExecutionException { - - if ( deploymentRepository == null ) - { - deploymentRepository = new DefaultArtifactRepository(deploymentRepositoryId, deploymentRepositoryUrl, deploymentRepositoryLayout); - } - - - getLog().info("repo type="+deploymentRepository.getClass()); - - String protocol = deploymentRepository.getProtocol(); - - if( protocol.equals( "scp" ) ) - { - File sshFile = new File( System.getProperty( "user.home" ), ".ssh" ); - - if( !sshFile.exists() ) - { - sshFile.mkdirs(); - } - } - - Set dependencies = new HashSet(); - - for (Iterator i = reactorProjects.iterator(); i.hasNext();) { - MavenProject p = (MavenProject) i.next(); - List dependencyArtifacts = p.getTestArtifacts(); - - if( dependencyArtifacts !=null ) - dependencies.addAll(dependencyArtifacts); - } - - for (Iterator iter = dependencies.iterator(); iter.hasNext();) { - Artifact artifact = (Artifact) iter.next(); - deploy( artifact ); - } - - } - - private void deploy(Artifact artifact) throws MojoExecutionException { - try - { - getLog().info( "Copying " + artifact.getFile().getAbsolutePath() + " to " + deploymentRepository ); - deployer.deploy( artifact.getFile(), artifact, deploymentRepository, localRepository ); - } - catch ( ArtifactDeploymentException e ) - { - throw new MojoExecutionException( e.getMessage(), e ); - } - } - - -} diff --git a/activemq-tooling/pom.xml b/activemq-tooling/pom.xml index 3e4613dd57..f06959d333 100644 --- a/activemq-tooling/pom.xml +++ b/activemq-tooling/pom.xml @@ -33,7 +33,6 @@ maven-activemq-memtest-plugin maven-activemq-perf-plugin maven-activemq-plugin - maven-dependency-plugin maven-bundle-plugin maven-gram-plugin