.setArtifactId( "artifactId" + count )
.setVersion( "version" + count )
.setPackage( "package" + count )
.setOutputDirectory( outputDirectory.getPath() )
.setLocalRepository( localRepository );
ArchetypeGenerationResult generationResult = archetype.generateProjectFromArchetype( request );
if ( generationResult != null && generationResult.getCause() != null )
{
ar.setVersion( a.getVersion() );
request =
new ArchetypeGenerationRequest( ar )
.setGroupId( "groupId" + count )
.setArtifactId( "artifactId" + count )
.setVersion( "version" + count )
.setPackage( "package" + count )
.setOutputDirectory( outputDirectory.getPath() )
.setLocalRepository( localRepository );
generationResult = archetype.generateProjectFromArchetype( request );
if ( generationResult != null && generationResult.getCause() != null )
{
archetypesRemoved.add( a );
}
else
{