Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
issue NEXUS-3789: Remove runtime dependency on nexus-test-harness-lau…
Browse files Browse the repository at this point in the history
…ncher for IT's

https://issues.sonatype.org/browse/NEXUS-3789

git-svn-id: file:///opt/svn/repositories/sonatype.org/plugins/trunk/nexus-test-environment-maven-plugin@523 c2a14038-686d-4adc-8740-a14e5738cb64
  • Loading branch information
velo committed Sep 27, 2010
1 parent 8b06083 commit 9d42bf6
Showing 1 changed file with 18 additions and 16 deletions.
Expand Up @@ -102,7 +102,7 @@ public class AbstractEnvironmentMojo

/**
* The maven project.
*
*
* @parameter expression="${project}"
* @required
* @readonly
Expand All @@ -111,81 +111,81 @@ public class AbstractEnvironmentMojo

/**
* Where nexus instance should be extracted
*
*
* @parameter default-value="${project.build.directory}/nexus"
* @required
*/
private File destination;

/**
* Artifact file containing nexus bundle
*
*
* @parameter
*/
protected MavenArtifact nexusBundleArtifact;

/**
* Name of teh directory created out of nexus artifact bundle. Default is
* ${nexusBundleArtifactId}-${nexusBundleArtifactVersion}.
*
*
* @parameter
*/
protected String nexusBundleName;

/**
* Emma used on ITs
*
*
* @parameter
*/
private MavenArtifact emmaArtifact;

/**
* Nexus plugin artifacts to be installed into the Nexus instance under test.
*
*
* @parameter
*/
private MavenArtifact[] nexusPluginsArtifacts;

/**
* Resources to be unpacked and then contents copied into Nexus default-configs
*
*
* @parameter
*/
private MavenArtifact[] extraResourcesArtifacts;

/**
* When true setup a maven instance
*
*
* @parameter default-value="true"
*/
private boolean setupMaven;

/**
* When true setup emma
*
*
* @parameter default-value="true"
*/
private boolean setupEmma;

/**
* Maven used on ITs
*
*
* @parameter
* @see EnvironmentMojo#setupMaven
*/
private MavenArtifact mavenArtifact;

/**
* Where Maven instance should be created
*
*
* @parameter default-value="${project.build.directory}/maven"
* @see EnvironmentMojo#setupMaven
*/
private File mavenLocation;

/**
* Resources in the test project can be added beneath this directory so that
*
*
* @parameter default-value="${basedir}/resources"
*/
protected File resourcesSourceLocation;
Expand All @@ -194,7 +194,7 @@ public class AbstractEnvironmentMojo
* This directory is where the default-configs included inside the this plugin will be extracted to BEFORE they are
* copied into the nexus work dir. A project property 'test-resources-folder' contains the absolute path of this
* directory.
*
*
* @parameter default-value="${project.build.directory}/resources"
*/
private File resourcesDestinationLocation;
Expand Down Expand Up @@ -231,7 +231,7 @@ public class AbstractEnvironmentMojo

/**
* Known ports can be manually set as part of the configuration
*
*
* @parameter
*/
@SuppressWarnings( "rawtypes" )
Expand Down Expand Up @@ -817,8 +817,10 @@ private void setupPlugins( File nexusBaseDir, Collection<MavenArtifact> nexusPlu
Collection<Artifact> nonTransitivePlugins = getNonTransitivePlugins( plugins );
for ( Artifact artifact : nonTransitivePlugins )
{
nexusPluginsArtifacts.add( new MavenArtifact( artifact.getGroupId(), artifact.getArtifactId(),
artifact.getClassifier(), artifact.getType() ) );
final MavenArtifact ma = new MavenArtifact( artifact.getGroupId(), artifact.getArtifactId(),
artifact.getClassifier(), artifact.getType() );
ma.setVersion( artifact.getVersion() );
nexusPluginsArtifacts.add( ma );
}

for ( MavenArtifact plugin : nexusPluginsArtifacts )
Expand Down

0 comments on commit 9d42bf6

Please sign in to comment.