diff --git a/maven-model-converter/pom.xml b/maven-model-converter/pom.xml
deleted file mode 100755
index 9d3b69f576..0000000000
--- a/maven-model-converter/pom.xml
+++ /dev/null
@@ -1,70 +0,0 @@
-
-
-
-
-${basedir}/pom.xml
. If the file exists it
- * will be overwritten.
- *
- * @param v4Model
- * @throws ProjectConverterException
- */
- private void writeV4Pom( Model v4Model )
- throws ProjectConverterException, IOException
- {
- if ( outputdir == null )
- {
- outputdir = basedir;
- }
-
- if ( !outputdir.exists() && !outputdir.mkdirs() )
- {
- throw new IOException( "Failed to create directory " + outputdir );
- }
-
- File pomxml = new File( outputdir, "pom.xml" );
-
- if ( pomxml.exists() )
- {
- sendWarnMessage( "pom.xml in " + outputdir.getAbsolutePath() + " already exists, overwriting" );
- }
-
- MavenXpp3Writer v4Writer = new MavenXpp3Writer();
-
- // write the new pom.xml
- sendInfoMessage( "Writing new pom to: " + pomxml.getAbsolutePath() );
-
- Writer output = null;
- try
- {
- output = new FileWriter( pomxml );
- v4Writer.write( output, v4Model );
- output.close();
- }
- catch ( IOException e )
- {
- throw new ProjectConverterException( "Unable to write pom.xml. " + e.getMessage(), e );
- }
- finally
- {
- IOUtil.close( output );
- }
- }
-
- public File getBasedir()
- {
- return basedir;
- }
-
- public void setBasedir( File basedir )
- {
- this.basedir = basedir;
- }
-
- public String getProjectFileName()
- {
- return fileName;
- }
-
- public void setProjectFileName( String projectFileName )
- {
- this.fileName = projectFileName;
- }
-
- public void setProjectFile( File projectFile )
- {
- if ( projectFile != null )
- {
- basedir = projectFile.getParentFile();
- fileName = projectFile.getName();
- }
- }
-
- public File getOutputdir()
- {
- return outputdir;
- }
-
- public void setOutputdir( File outputdir )
- {
- this.outputdir = outputdir;
- }
-
- public void addListener( ConverterListener listener )
- {
- if ( !listeners.contains( listener ) )
- {
- listeners.add( listener );
- }
- }
-
- private void sendInfoMessage( String message )
- {
- getLogger().info( message );
-
- for ( Iterator i = listeners.iterator(); i.hasNext(); )
- {
- ConverterListener listener = (ConverterListener) i.next();
- listener.info( message );
- }
- }
-
- private void sendWarnMessage( String message )
- {
- getLogger().warn( message );
-
- for ( Iterator i = listeners.iterator(); i.hasNext(); )
- {
- ConverterListener listener = (ConverterListener) i.next();
- listener.warn( message );
- }
- }
-}
diff --git a/maven-model-converter/src/main/java/org/apache/maven/model/converter/ModelConverter.java b/maven-model-converter/src/main/java/org/apache/maven/model/converter/ModelConverter.java
deleted file mode 100644
index 9ac70c8444..0000000000
--- a/maven-model-converter/src/main/java/org/apache/maven/model/converter/ModelConverter.java
+++ /dev/null
@@ -1,39 +0,0 @@
-package org.apache.maven.model.converter;
-
-/*
- * Copyright 2005-2005 The Apache Software Foundation.
- *
- * Licensed 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 org.apache.maven.model.Model;
-
-import java.util.List;
-
-/**
- * Model conversion interface.
- *
- * @author Brett Porter
- * @version $Id$
- */
-public interface ModelConverter
-{
- String ROLE = ModelConverter.class.getName();
-
- Model translate( org.apache.maven.model.v3_0_0.Model v3Model )
- throws PomTranslationException;
-
- void validateV4Basics( Model model, String groupId, String artifactId, String version, String packaging );
-
- List getWarnings();
-}
diff --git a/maven-model-converter/src/main/java/org/apache/maven/model/converter/ModelUtils.java b/maven-model-converter/src/main/java/org/apache/maven/model/converter/ModelUtils.java
deleted file mode 100644
index 63cb2d91db..0000000000
--- a/maven-model-converter/src/main/java/org/apache/maven/model/converter/ModelUtils.java
+++ /dev/null
@@ -1,86 +0,0 @@
-package org.apache.maven.model.converter;
-
-import org.apache.maven.model.Model;
-import org.apache.maven.model.Plugin;
-import org.apache.maven.model.ReportPlugin;
-
-import java.util.Iterator;
-
-/*
- * Copyright 2006 The Apache Software Foundation.
- *
- * Licensed 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.
- */
-
-/**
- * Utility class which features various methods associated with Maven model.
- *
- * @author Dennis Lundberg
- * @version $Id: PropertyUtils.java 410688 2006-05-31 22:21:07 +0000 (on, 31 maj 2006) carlos $
- */
-public class ModelUtils
-{
- /**
- * Try to find a build plugin in a model.
- *
- * @param model Look for the build plugin in this model
- * @param groupId The groupId for the build plugin to look for
- * @param artifactId The artifactId for the build plugin to look for
- * @return The requested build plugin if it exists, otherwise null
- */
- public static Plugin findBuildPlugin( Model model, String groupId, String artifactId )
- {
- if ( model.getBuild() == null || model.getBuild().getPlugins() == null )
- {
- return null;
- }
-
- Iterator iterator = model.getBuild().getPlugins().iterator();
- while ( iterator.hasNext() )
- {
- Plugin plugin = (Plugin) iterator.next();
- if ( plugin.getGroupId().equals( groupId ) && plugin.getArtifactId().equals( artifactId ) )
- {
- return plugin;
- }
- }
- return null;
- }
-
- /**
- * Try to find a report plugin in a model.
- *
- * @param model Look for the report plugin in this model
- * @param groupId The groupId for the report plugin to look for
- * @param artifactId The artifactId for the report plugin to look for
- * @return The requested report plugin if it exists, otherwise null
- */
- public static ReportPlugin findReportPlugin( Model model, String groupId, String artifactId )
- {
- if ( model.getReporting() == null || model.getReporting().getPlugins() == null )
- {
- return null;
- }
-
- Iterator iterator = model.getReporting().getPlugins().iterator();
- while ( iterator.hasNext() )
- {
- ReportPlugin plugin = (ReportPlugin) iterator.next();
- if ( plugin.getGroupId().equals( groupId ) && plugin.getArtifactId().equals( artifactId ) )
- {
- return plugin;
- }
- }
- return null;
- }
-}
diff --git a/maven-model-converter/src/main/java/org/apache/maven/model/converter/PomTranslationException.java b/maven-model-converter/src/main/java/org/apache/maven/model/converter/PomTranslationException.java
deleted file mode 100644
index 14fd1ffe06..0000000000
--- a/maven-model-converter/src/main/java/org/apache/maven/model/converter/PomTranslationException.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.apache.maven.model.converter;/*
- * Copyright 2001-2005 The Apache Software Foundation.
- *
- * Licensed 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.
- */
-
-/**
- * @author jdcasey
- */
-public class PomTranslationException
- extends Exception
-{
-
- private final String groupId;
-
- private final String artifactId;
-
- private final String version;
-
- public PomTranslationException( String groupId, String artifactId, String version, String message )
- {
- this( groupId, artifactId, version, message, null );
- }
-
- public PomTranslationException( String groupId, String artifactId, String version, Throwable cause )
- {
- this( groupId, artifactId, version, "[No message provided.]", cause );
- }
-
- public PomTranslationException( String groupId, String artifactId, String version, String message, Throwable cause )
- {
- super( "In POM{" + groupId + ":" + artifactId + ":" + version + "}: " + message, cause );
- this.groupId = groupId;
- this.artifactId = artifactId;
- this.version = version;
- }
-
- public String getGroupId()
- {
- return groupId;
- }
-
- public String getArtifactId()
- {
- return artifactId;
- }
-
- public String getVersion()
- {
- return version;
- }
-}
\ No newline at end of file
diff --git a/maven-model-converter/src/main/java/org/apache/maven/model/converter/PomV3ToV4Translator.java b/maven-model-converter/src/main/java/org/apache/maven/model/converter/PomV3ToV4Translator.java
deleted file mode 100644
index 4ed4b676de..0000000000
--- a/maven-model-converter/src/main/java/org/apache/maven/model/converter/PomV3ToV4Translator.java
+++ /dev/null
@@ -1,867 +0,0 @@
-package org.apache.maven.model.converter;
-
-/*
- * Copyright 2001-2005 The Apache Software Foundation.
- *
- * Licensed 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 org.apache.maven.model.Build;
-import org.apache.maven.model.CiManagement;
-import org.apache.maven.model.Contributor;
-import org.apache.maven.model.Dependency;
-import org.apache.maven.model.DeploymentRepository;
-import org.apache.maven.model.Developer;
-import org.apache.maven.model.DistributionManagement;
-import org.apache.maven.model.IssueManagement;
-import org.apache.maven.model.License;
-import org.apache.maven.model.MailingList;
-import org.apache.maven.model.Model;
-import org.apache.maven.model.Notifier;
-import org.apache.maven.model.Organization;
-import org.apache.maven.model.Plugin;
-import org.apache.maven.model.Resource;
-import org.apache.maven.model.Scm;
-import org.apache.maven.model.Site;
-import org.apache.maven.model.v3_0_0.UnitTest;
-import org.codehaus.plexus.util.StringUtils;
-import org.codehaus.plexus.util.xml.Xpp3Dom;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Properties;
-
-/**
- * @author jdcasey
- * @plexus.component role="org.apache.maven.model.converter.ModelConverter"
- */
-public class PomV3ToV4Translator
- implements ModelConverter
-{
- private transient List discoveredPlugins = new ArrayList();
-
- private List warnings;
-
- public Model translate( org.apache.maven.model.v3_0_0.Model v3Model )
- throws PomTranslationException
- {
- warnings = new ArrayList();
-
- try
- {
- String groupId = format( v3Model.getGroupId() );
- String artifactId = format( v3Model.getArtifactId() );
-
- String id = v3Model.getId();
-
- if ( StringUtils.isNotEmpty( id ) )
- {
- if ( StringUtils.isEmpty( groupId ) )
- {
- int plusIdx = id.indexOf( "+" );
- if ( plusIdx > -1 )
- {
- groupId = id.substring( 0, plusIdx );
- }
- else
- {
- groupId = id;
- }
- }
-
- if ( StringUtils.isEmpty( artifactId ) )
- {
- artifactId = format( id );
- }
- }
-
- String version = format( v3Model.getCurrentVersion() );
-
- if ( version == null )
- {
- version = format( v3Model.getVersion() );
- }
-
- PomKey pomKey = new PomKey( groupId, artifactId, version );
-
- warnOfUnsupportedMainModelElements( v3Model );
-
- Model model = new Model();
- model.setArtifactId( artifactId );
-
- // moved this above the translation of the build, to allow
- // additional plugins to be defined in v3 poms via
- // PluginConfigurationConverter
for the maven-changelog-plugin.
- *
- * @plexus.component role="org.apache.maven.model.converter.plugins.PluginConfigurationConverter" role-hint="changelog"
- *
- * @author Dennis Lundberg
- * @version $Id: PCCChangelog.java 409264 2006-05-24 23:13:13 +0000 (on, 24 maj 2006) carlos $
- */
-public class PCCChangelog
- extends AbstractPluginConfigurationConverter
-{
- /**
- * @see AbstractPluginConfigurationConverter#getArtifactId()
- */
- public String getArtifactId()
- {
- return "maven-changelog-plugin";
- }
-
- public String getType()
- {
- return TYPE_REPORT_PLUGIN;
- }
-
- protected void buildConfiguration( Xpp3Dom configuration, org.apache.maven.model.v3_0_0.Model v3Model,
- Properties projectProperties )
- throws ProjectConverterException
- {
- addConfigurationChild( configuration, projectProperties, "maven.changelog.commentFormat", "commentFormat" );
-
- addConfigurationChild( configuration, projectProperties, "maven.changelog.dateformat", "dateFormat" );
-
- addConfigurationChild( configuration, projectProperties, "maven.changelog.svn.baseurl", "tagBase" );
-
- addConfigurationChild( configuration, projectProperties, "maven.changelog.type", "type" );
-
- String type = projectProperties.getProperty( "maven.changelog.type" );
- if ( type != null )
- {
- if ( "date".equals( type ) )
- {
- Xpp3Dom dates = new Xpp3Dom( "dates" );
- addConfigurationChild( dates, projectProperties, "maven.changelog.date", "date" );
- if ( dates.getChildCount() > 0 )
- {
- configuration.addChild( dates );
- }
- }
- else if ( "range".equals( type ) )
- {
- addConfigurationChild( configuration, projectProperties, "maven.changelog.range", "range" );
- }
- else if ( "tag".equals( type ) )
- {
- Xpp3Dom tags = new Xpp3Dom( "tags" );
- addConfigurationChild( tags, projectProperties, "maven.changelog.tag", "tag" );
- if ( tags.getChildCount() > 0 )
- {
- configuration.addChild( tags );
- }
- }
- }
-
- // Only add this if we have any other configuration for the changelog-plugin
- if ( configuration.getChildCount() > 0 )
- {
- // The Maven 1 plugin uses the same outputencoding as the generated documentation.
- addConfigurationChild( configuration, projectProperties, "maven.docs.outputencoding", "outputEncoding" );
- }
- }
-}
diff --git a/maven-model-converter/src/main/java/org/apache/maven/model/converter/plugins/PCCChanges.java b/maven-model-converter/src/main/java/org/apache/maven/model/converter/plugins/PCCChanges.java
deleted file mode 100644
index 71a42db4af..0000000000
--- a/maven-model-converter/src/main/java/org/apache/maven/model/converter/plugins/PCCChanges.java
+++ /dev/null
@@ -1,54 +0,0 @@
-package org.apache.maven.model.converter.plugins;
-
-/*
- * Copyright 2006 The Apache Software Foundation.
- *
- * Licensed 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 org.apache.maven.model.converter.ProjectConverterException;
-import org.codehaus.plexus.util.xml.Xpp3Dom;
-
-import java.util.Properties;
-
-/**
- * A PluginConfigurationConverter
for the maven-changes-plugin.
- *
- * @plexus.component role="org.apache.maven.model.converter.plugins.PluginConfigurationConverter" role-hint="changes"
- *
- * @author Dennis Lundberg
- * @version $Id: PCCChanges.java 409264 2006-05-24 23:13:13 +0000 (on, 24 maj 2006) carlos $
- */
-public class PCCChanges
- extends AbstractPluginConfigurationConverter
-{
- /**
- * @see org.apache.maven.model.converter.plugins.AbstractPluginConfigurationConverter#getArtifactId()
- */
- public String getArtifactId()
- {
- return "maven-changes-plugin";
- }
-
- public String getType()
- {
- return TYPE_REPORT_PLUGIN;
- }
-
- protected void buildConfiguration( Xpp3Dom configuration, org.apache.maven.model.v3_0_0.Model v3Model,
- Properties projectProperties )
- throws ProjectConverterException
- {
- addConfigurationChild( configuration, projectProperties, "maven.changes.issue.template", "link_template" );
- }
-}
diff --git a/maven-model-converter/src/main/java/org/apache/maven/model/converter/plugins/PCCCheckstyle.java b/maven-model-converter/src/main/java/org/apache/maven/model/converter/plugins/PCCCheckstyle.java
deleted file mode 100644
index 5c3aad2461..0000000000
--- a/maven-model-converter/src/main/java/org/apache/maven/model/converter/plugins/PCCCheckstyle.java
+++ /dev/null
@@ -1,118 +0,0 @@
-package org.apache.maven.model.converter.plugins;
-
-/*
- * Copyright 2006 The Apache Software Foundation.
- *
- * Licensed 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 org.apache.maven.model.converter.ProjectConverterException;
-import org.codehaus.plexus.util.xml.Xpp3Dom;
-
-import java.util.Properties;
-
-/**
- * A PluginConfigurationConverter
for the maven-checkstyle-plugin.
- *
- * @plexus.component role="org.apache.maven.model.converter.plugins.PluginConfigurationConverter" role-hint="checkstyle"
- *
- * @author Dennis Lundberg
- * @version $Id: PCCCheckstyle.java 409264 2006-05-24 23:13:13 +0000 (on, 24 maj 2006) carlos $
- */
-public class PCCCheckstyle
- extends AbstractPluginConfigurationConverter
-{
- /**
- * @see AbstractPluginConfigurationConverter#getArtifactId()
- */
- public String getArtifactId()
- {
- return "maven-checkstyle-plugin";
- }
-
- public String getType()
- {
- return TYPE_REPORT_PLUGIN;
- }
-
- protected void buildConfiguration( Xpp3Dom configuration, org.apache.maven.model.v3_0_0.Model v3Model,
- Properties projectProperties )
- throws ProjectConverterException
- {
- addConfigurationChild( configuration, projectProperties, "maven.checkstyle.cache.file", "cacheFile" );
-
- String format = projectProperties.getProperty( "maven.checkstyle.format" );
- if ( format != null )
- {
- String mavenTwoformat = null;
- if ( format.equals( "avalon" ) )
- {
- mavenTwoformat = "config/avalon_checks.xml";
- }
- else if ( format.equals( "turbine" ) )
- {
- mavenTwoformat = "config/turbine_checks.xml";
- }
- else if ( format.equals( "sun" ) )
- {
- mavenTwoformat = "config/sun_checks.xml";
- }
- if ( mavenTwoformat != null )
- {
- addConfigurationChild( configuration, "configLocation", mavenTwoformat );
- }
- }
- else
- {
- String propertiesURL = projectProperties.getProperty( "maven.checkstyle.propertiesURL" );
- if ( propertiesURL != null )
- {
- addConfigurationChild( configuration, "configLocation", propertiesURL );
- }
- else
- {
- addConfigurationChild( configuration, projectProperties, "maven.checkstyle.properties",
- "configLocation" );
- }
- }
-
- addConfigurationChild( configuration, projectProperties, "maven.checkstyle.excludes", "excludes" );
-
- addConfigurationChild( configuration, projectProperties, "maven.checkstyle.fail.on.violation", "failsOnError" );
-
- addConfigurationChild( configuration, projectProperties, "maven.checkstyle.header.file", "headerLocation" );
-
- addConfigurationChild( configuration, projectProperties, "maven.checkstyle.includes", "includes" );
-
- String outputText = projectProperties.getProperty( "maven.checkstyle.output.txt" );
- if ( outputText != null )
- {
- addConfigurationChild( configuration, "outputFile", outputText );
- addConfigurationChild( configuration, "outputFileFormat", "plain" );
- }
- else
- {
- String outputXml = projectProperties.getProperty( "maven.checkstyle.output.xml" );
- if ( outputXml != null )
- {
- addConfigurationChild( configuration, "outputFile", outputXml );
- addConfigurationChild( configuration, "outputFileFormat", "xml" );
- }
- }
-
- addConfigurationChild( configuration, projectProperties, "maven.checkstyle.suppressions.file",
- "suppressionsLocation" );
-
- addConfigurationChild( configuration, projectProperties, "maven.checkstyle.usefile", "useFile" );
- }
-}
diff --git a/maven-model-converter/src/main/java/org/apache/maven/model/converter/plugins/PCCCompiler.java b/maven-model-converter/src/main/java/org/apache/maven/model/converter/plugins/PCCCompiler.java
deleted file mode 100644
index f1b226e7bb..0000000000
--- a/maven-model-converter/src/main/java/org/apache/maven/model/converter/plugins/PCCCompiler.java
+++ /dev/null
@@ -1,103 +0,0 @@
-package org.apache.maven.model.converter.plugins;
-
-/*
- * Copyright 2001-2006 The Apache Software Foundation.
- *
- * Licensed 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 org.apache.maven.model.converter.ProjectConverterException;
-import org.codehaus.plexus.util.xml.Xpp3Dom;
-
-import java.util.Properties;
-
-/**
- * @plexus.component role="org.apache.maven.model.converter.plugins.PluginConfigurationConverter" role-hint="compiler"
- *
- * @author Fabrizio Giustina
- * @author Dennis Lundberg
- * @version $Id$
- */
-public class PCCCompiler
- extends AbstractPluginConfigurationConverter
-{
- /**
- * @see org.apache.maven.model.converter.plugins.AbstractPluginConfigurationConverter#getArtifactId()
- */
- public String getArtifactId()
- {
- return "maven-compiler-plugin";
- }
-
- public String getType()
- {
- return TYPE_BUILD_PLUGIN;
- }
-
- protected void addOnOffConfigurationChild( Xpp3Dom configuration, Properties projectProperties,
- String mavenOneProperty, String mavenTwoElement )
- throws ProjectConverterException
- {
- String value = projectProperties.getProperty( mavenOneProperty );
- if ( value != null )
- {
- addConfigurationChild( configuration, mavenTwoElement, PropertyUtils.convertOnOffToBoolean( value ) );
- }
- }
-
- protected void buildConfiguration( Xpp3Dom configuration, org.apache.maven.model.v3_0_0.Model v3Model,
- Properties projectProperties )
- throws ProjectConverterException
- {
- addOnOffConfigurationChild( configuration, projectProperties, "maven.compile.debug", "debug" );
-
- addConfigurationChild( configuration, projectProperties, "maven.compile.encoding", "encoding" );
-
- addConfigurationChild( configuration, projectProperties, "maven.compile.executable", "executable" );
-
- String fork = projectProperties.getProperty( "maven.compile.fork" );
- if ( fork != null )
- {
- addConfigurationChild( configuration, "fork", PropertyUtils.convertYesNoToBoolean( fork ) );
- }
-
- addConfigurationChild( configuration, projectProperties, "maven.compile.memoryMaximumSize", "maxmem" );
-
- addConfigurationChild( configuration, projectProperties, "maven.compile.memoryInitialSize", "meminitial" );
-
- addOnOffConfigurationChild( configuration, projectProperties, "maven.compile.optimize", "optimize" );
-
- addOnOffConfigurationChild( configuration, projectProperties, "maven.compile.deprecation", "showDeprecation" );
-
- String nowarn = projectProperties.getProperty( "maven.compile.nowarn" );
- if ( nowarn != null )
- {
- String convertedNowarn = PropertyUtils.convertOnOffToBoolean( nowarn );
- if ( convertedNowarn != null )
- {
- String showWarnings = PropertyUtils.invertBoolean( convertedNowarn );
- addConfigurationChild( configuration, "showWarnings", showWarnings );
- }
- }
-
- addConfigurationChild( configuration, projectProperties, "maven.compile.source", "source" );
-
- addConfigurationChild( configuration, projectProperties, "maven.compile.target", "target" );
-
- String value = projectProperties.getProperty( "maven.compile.verbose" );
- if ( value != null )
- {
- addConfigurationChild( configuration, "verbose", PropertyUtils.convertYesNoToBoolean( value ) );
- }
- }
-}
diff --git a/maven-model-converter/src/main/java/org/apache/maven/model/converter/plugins/PCCJar.java b/maven-model-converter/src/main/java/org/apache/maven/model/converter/plugins/PCCJar.java
deleted file mode 100644
index d685e1dde4..0000000000
--- a/maven-model-converter/src/main/java/org/apache/maven/model/converter/plugins/PCCJar.java
+++ /dev/null
@@ -1,95 +0,0 @@
-package org.apache.maven.model.converter.plugins;
-
-/*
- * Copyright 2006 The Apache Software Foundation.
- *
- * Licensed 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 org.apache.maven.model.converter.ProjectConverterException;
-import org.codehaus.plexus.util.xml.Xpp3Dom;
-
-import java.util.Properties;
-import java.util.StringTokenizer;
-
-/**
- * A PluginConfigurationConverter
for the maven-jar-plugin.
- *
- * @plexus.component role="org.apache.maven.model.converter.plugins.PluginConfigurationConverter" role-hint="jar"
- *
- * @author Dennis Lundberg
- * @version $Id: PCCJar.java 409264 2006-05-24 23:13:13 +0000 (on, 24 maj 2006) carlos $
- */
-public class PCCJar
- extends AbstractPluginConfigurationConverter
-{
- /**
- * @see org.apache.maven.model.converter.plugins.AbstractPluginConfigurationConverter#getArtifactId()
- */
- public String getArtifactId()
- {
- return "maven-jar-plugin";
- }
-
- public String getType()
- {
- return TYPE_BUILD_PLUGIN;
- }
-
- protected void buildConfiguration( Xpp3Dom configuration, org.apache.maven.model.v3_0_0.Model v3Model,
- Properties projectProperties )
- throws ProjectConverterException
- {
- Xpp3Dom archive = new Xpp3Dom( "archive" );
- addConfigurationChild( archive, projectProperties, "maven.jar.compress", "compress" );
- addConfigurationChild( archive, projectProperties, "maven.jar.index", "index" );
-
- Xpp3Dom manifest = new Xpp3Dom( "manifest" );
- addConfigurationChild( manifest, projectProperties, "maven.jar.manifest.classpath.add", "addClasspath" );
- addConfigurationChild( manifest, projectProperties, "maven.jar.manifest.extensions.add", "addExtensions" );
- if ( manifest.getChildCount() > 0 )
- {
- archive.addChild( manifest );
- }
- addConfigurationChild( manifest, projectProperties, "maven.jar.mainclass", "mainClass" );
-
- String manifestEntriesProperty = projectProperties.getProperty( "maven.jar.manifest.attributes.list" );
- if ( manifestEntriesProperty != null )
- {
- Xpp3Dom manifestEntries = new Xpp3Dom( "manifestEntries" );
-
- // Loop through property and add values to manifestEntries
- StringTokenizer tokenizer = new StringTokenizer( manifestEntriesProperty, "," );
- while ( tokenizer.hasMoreTokens() )
- {
- String attribute = tokenizer.nextToken();
- addConfigurationChild( manifestEntries, projectProperties, "maven.jar.manifest.attribute." + attribute,
- attribute );
- }
-
- if ( manifestEntries.getChildCount() > 0 )
- {
- archive.addChild( manifestEntries );
- }
- }
-
- addConfigurationChild( archive, projectProperties, "maven.jar.manifest", "manifestFile" );
-
- if ( archive.getChildCount() > 0 )
- {
- configuration.addChild( archive );
- }
-
- addConfigurationChild( configuration, projectProperties, "maven.jar.final.name", "finalName" );
- }
-}
diff --git a/maven-model-converter/src/main/java/org/apache/maven/model/converter/plugins/PCCJavadoc.java b/maven-model-converter/src/main/java/org/apache/maven/model/converter/plugins/PCCJavadoc.java
deleted file mode 100644
index 02729e4973..0000000000
--- a/maven-model-converter/src/main/java/org/apache/maven/model/converter/plugins/PCCJavadoc.java
+++ /dev/null
@@ -1,171 +0,0 @@
-package org.apache.maven.model.converter.plugins;
-
-/*
- * Copyright 2006 The Apache Software Foundation.
- *
- * Licensed 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 org.apache.maven.model.converter.ProjectConverterException;
-import org.codehaus.plexus.util.xml.Xpp3Dom;
-
-import java.util.Properties;
-import java.util.StringTokenizer;
-
-/**
- * A PluginConfigurationConverter
for the maven-javadoc-plugin.
- *
- * @plexus.component role="org.apache.maven.model.converter.plugins.PluginConfigurationConverter" role-hint="javadoc"
- *
- * @author Dennis Lundberg
- * @version $Id: PCCJavadoc.java 409264 2006-05-24 23:13:13 +0000 (on, 24 maj 2006) carlos $
- */
-public class PCCJavadoc
- extends AbstractPluginConfigurationConverter
-{
- /**
- * @see org.apache.maven.model.converter.plugins.AbstractPluginConfigurationConverter#getArtifactId()
- */
- public String getArtifactId()
- {
- return "maven-javadoc-plugin";
- }
-
- public String getType()
- {
- return TYPE_BUILD_PLUGIN;
- }
-
- protected void buildConfiguration( Xpp3Dom configuration, org.apache.maven.model.v3_0_0.Model v3Model,
- Properties projectProperties )
- throws ProjectConverterException
- {
- addConfigurationChild( configuration, projectProperties, "maven.javadoc.additionalparam", "additionalparam" );
-
- addConfigurationChild( configuration, projectProperties, "maven.javadoc.author", "author" );
-
- addConfigurationChild( configuration, projectProperties, "maven.javadoc.bottom", "bottom" );
-
- addConfigurationChild( configuration, projectProperties, "maven.javadoc.destdir", "destDir" );
-
- addConfigurationChild( configuration, projectProperties, "maven.javadoc.doclet", "doclet" );
- addConfigurationChild( configuration, projectProperties, "maven.javadoc.docletpath", "docletPath" );
-
- addConfigurationChild( configuration, projectProperties, "maven.javadoc.windowtitle", "doctitle" );
-
- addConfigurationChild( configuration, projectProperties, "maven.javadoc.excludepackagenames",
- "excludePackageNames" );
-
- addConfigurationChild( configuration, projectProperties, "maven.javadoc.footer", "footer" );
-
- addConfigurationChild( configuration, projectProperties, "maven.javadoc.header", "header" );
-
- String online = projectProperties.getProperty( "maven.javadoc.mode.online" );
- if ( online != null )
- {
- addConfigurationChild( configuration, "isOffline", PropertyUtils.invertBoolean( online ) );
- }
-
- addConfigurationChild( configuration, projectProperties, "maven.javadoc.links", "links" );
-
- addConfigurationChild( configuration, projectProperties, "maven.javadoc.locale", "locale" );
-
- addConfigurationChild( configuration, projectProperties, "maven.javadoc.maxmemory", "maxmemory" );
-
- addConfigurationChild( configuration, projectProperties, "maven.javadoc.offlineLinks", "offlineLinks" );
-
- addConfigurationChild( configuration, projectProperties, "maven.javadoc.overview", "overview" );
-
- String show = projectProperties.getProperty( "maven.javadoc.private" );
- if ( show != null && Boolean.valueOf( show ).booleanValue() )
- {
- addConfigurationChild( configuration, "show", "private" );
- }
- else
- {
- show = projectProperties.getProperty( "maven.javadoc.package" );
- if ( show != null && Boolean.valueOf( show ).booleanValue() )
- {
- addConfigurationChild( configuration, "show", "package" );
- }
- else
- {
- show = projectProperties.getProperty( "maven.javadoc.public" );
- if ( show != null && Boolean.valueOf( show ).booleanValue() )
- {
- addConfigurationChild( configuration, "show", "public" );
- }
- }
- }
-
- addConfigurationChild( configuration, projectProperties, "maven.javadoc.source", "source" );
-
- addConfigurationChild( configuration, projectProperties, "maven.javadoc.stylesheet", "stylesheetfile" );
-
- addConfigurationChild( configuration, projectProperties, "maven.javadoc.taglets", "taglet" );
- addConfigurationChild( configuration, projectProperties, "maven.javadoc.tagletpath", "tagletpath" );
-
- String customtags = projectProperties.getProperty( "maven.javadoc.customtags" );
- if ( customtags != null )
- {
- StringTokenizer tokenizer = new StringTokenizer( customtags );
- if ( tokenizer.hasMoreTokens() )
- {
- Xpp3Dom tagsConfiguration = new Xpp3Dom( "tags" );
- while ( tokenizer.hasMoreTokens() )
- {
- String tag = tokenizer.nextToken();
- Xpp3Dom tagConfiguration = new Xpp3Dom( "tag" );
- addConfigurationChild( tagConfiguration, projectProperties, tag + ".description", "head" );
- addConfigurationChild( tagConfiguration, projectProperties, tag + ".name", "name" );
- String placement = "";
- String enabled = projectProperties.getProperty( tag + ".enabled" );
- if ( !Boolean.valueOf( enabled ).booleanValue() )
- {
- placement = "X";
- }
- String scope = projectProperties.getProperty( tag + ".scope" );
- if ( "all".equals( scope ) )
- {
- placement += "a";
- }
- if ( placement.length() > 0 )
- {
- addConfigurationChild( tagConfiguration, "placement", placement );
- }
- tagsConfiguration.addChild( tagConfiguration );
- }
- configuration.addChild( tagsConfiguration );
- }
- }
-
- addConfigurationChild( configuration, projectProperties, "maven.javadoc.use", "use" );
-
- addConfigurationChild( configuration, projectProperties, "maven.javadoc.version", "version" );
-
- addConfigurationChild( configuration, projectProperties, "maven.javadoc.windowtitle", "windowtitle" );
-
- // Only add these if we have any other configuration for the javadoc-plugin
- if ( configuration.getChildCount() > 0 )
- {
- // The Maven 1 plugin uses the same outputencoding as the generated documentation.
- addConfigurationChild( configuration, projectProperties, "maven.docs.outputencoding", "docencoding" );
-
- // The Maven 1 plugin uses the same encoding as the compile plugin.
- addConfigurationChild( configuration, projectProperties, "maven.compile.encoding", "encoding" );
-
- // The Maven 1 plugin uses the same package as the pom.
- addConfigurationChild( configuration, projectProperties, "pom.package", "subpackages" );
- }
- }
-}
diff --git a/maven-model-converter/src/main/java/org/apache/maven/model/converter/plugins/PCCMultiproject.java b/maven-model-converter/src/main/java/org/apache/maven/model/converter/plugins/PCCMultiproject.java
deleted file mode 100644
index aaf0886a24..0000000000
--- a/maven-model-converter/src/main/java/org/apache/maven/model/converter/plugins/PCCMultiproject.java
+++ /dev/null
@@ -1,49 +0,0 @@
-package org.apache.maven.model.converter.plugins;
-
-/*
- * Copyright 2001-2006 The Apache Software Foundation.
- *
- * Licensed 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 org.apache.maven.model.Model;
-import org.apache.maven.model.converter.ProjectConverterException;
-
-import java.util.Properties;
-
-/**
- * @plexus.component role="org.apache.maven.model.converter.plugins.PluginConfigurationConverter" role-hint="multiproject"
- *
- * @author Fabrizio Giustina
- * @version $Id$
- */
-public class PCCMultiproject
- implements PluginConfigurationConverter
-{
-
- /**
- * @see org.apache.maven.model.converter.plugins.PluginConfigurationConverter#convertConfiguration(org.apache.maven.model.Model, org.apache.maven.model.v3_0_0.Model, java.util.Properties)
- */
- public void convertConfiguration( Model v4Model, org.apache.maven.model.v3_0_0.Model v3Model,
- Properties projectProperties )
- throws ProjectConverterException
- {
- String projectType = projectProperties.getProperty( "maven.multiproject.type" );
-
- if ( projectType != null )
- {
- v4Model.setPackaging( projectType );
- }
- }
-
-}
diff --git a/maven-model-converter/src/main/java/org/apache/maven/model/converter/plugins/PCCPmd.java b/maven-model-converter/src/main/java/org/apache/maven/model/converter/plugins/PCCPmd.java
deleted file mode 100644
index e13e7f2f9a..0000000000
--- a/maven-model-converter/src/main/java/org/apache/maven/model/converter/plugins/PCCPmd.java
+++ /dev/null
@@ -1,99 +0,0 @@
-package org.apache.maven.model.converter.plugins;
-
-/*
- * Copyright 2006 The Apache Software Foundation.
- *
- * Licensed 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 org.apache.maven.model.converter.ProjectConverterException;
-import org.codehaus.plexus.util.xml.Xpp3Dom;
-
-import java.util.Properties;
-import java.util.StringTokenizer;
-
-/**
- * A PluginConfigurationConverter
for the maven-pmd-plugin.
- *
- * @plexus.component role="org.apache.maven.model.converter.plugins.PluginConfigurationConverter" role-hint="pmd"
- *
- * @author Dennis Lundberg
- * @version $Id: PCCPmd.java 409264 2006-05-24 23:13:13 +0000 (on, 24 maj 2006) carlos $
- */
-public class PCCPmd
- extends AbstractPluginConfigurationConverter
-{
- /**
- * @see AbstractPluginConfigurationConverter#getArtifactId()
- */
- public String getArtifactId()
- {
- return "maven-pmd-plugin";
- }
-
- public String getType()
- {
- return TYPE_REPORT_PLUGIN;
- }
-
- protected void buildConfiguration( Xpp3Dom configuration, org.apache.maven.model.v3_0_0.Model v3Model,
- Properties projectProperties )
- throws ProjectConverterException
- {
- addConfigurationChild( configuration, projectProperties, "maven.pmd.excludes", "excludes" );
-
- addConfigurationChild( configuration, projectProperties, "maven.pmd.failonruleviolation", "failOnViolation" );
-
- addConfigurationChild( configuration, projectProperties, "maven.pmd.cpd.minimumtokencount", "minimumTokens" );
-
- String rulesetfiles = projectProperties.getProperty( "maven.pmd.rulesetfiles" );
- if ( rulesetfiles != null )
- {
- StringTokenizer tokenizer = new StringTokenizer( rulesetfiles, "," );
- if ( tokenizer.hasMoreTokens() )
- {
- Xpp3Dom rulesets = new Xpp3Dom( "rulesets" );
- while ( tokenizer.hasMoreTokens() )
- {
- addConfigurationChild( rulesets, "ruleset", translate( tokenizer.nextToken() ) );
- }
- if ( rulesets.getChildCount() > 0 )
- {
- configuration.addChild( rulesets );
- }
- }
- }
-
- addConfigurationChild( configuration, projectProperties, "maven.pmd.targetjdk", "targetJdk" );
- }
-
- /**
- * In the Maven 1 plugin the built-in rulesets where accessed by prefixing
- * them with "rulesets/", but in the Maven 2 plugin the prefix "/rulesets/"
- * is used.
- *
- * @param mavenOneRuleset A ruleset from the Maven 1 configuration
- * @return A ruleset suitable for the Maven 2 configuration
- */
- private String translate( String mavenOneRuleset )
- {
- if ( mavenOneRuleset != null && mavenOneRuleset.startsWith( "rulesets/" ) )
- {
- return "/" + mavenOneRuleset;
- }
- else
- {
- return mavenOneRuleset;
- }
- }
-}
diff --git a/maven-model-converter/src/main/java/org/apache/maven/model/converter/plugins/PCCSurefire.java b/maven-model-converter/src/main/java/org/apache/maven/model/converter/plugins/PCCSurefire.java
deleted file mode 100644
index bd768d72c7..0000000000
--- a/maven-model-converter/src/main/java/org/apache/maven/model/converter/plugins/PCCSurefire.java
+++ /dev/null
@@ -1,134 +0,0 @@
-package org.apache.maven.model.converter.plugins;
-
-/*
- * Copyright 2001-2006 The Apache Software Foundation.
- *
- * Licensed 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 org.apache.maven.model.converter.ProjectConverterException;
-import org.codehaus.plexus.util.xml.Xpp3Dom;
-
-import java.util.Iterator;
-import java.util.List;
-import java.util.Properties;
-import java.util.StringTokenizer;
-
-/**
- * @plexus.component role="org.apache.maven.model.converter.plugins.PluginConfigurationConverter" role-hint="surefire"
- *
- * @author Fabrizio Giustina
- * @author Dennis Lundberg
- * @version $Id$
- */
-public class PCCSurefire
- extends AbstractPluginConfigurationConverter
-{
- /**
- * @see org.apache.maven.model.converter.plugins.AbstractPluginConfigurationConverter#getArtifactId()
- */
- public String getArtifactId()
- {
- return "maven-surefire-plugin";
- }
-
- public String getType()
- {
- return TYPE_BUILD_PLUGIN;
- }
-
- protected void buildConfiguration( Xpp3Dom configuration, org.apache.maven.model.v3_0_0.Model v3Model,
- Properties projectProperties )
- throws ProjectConverterException
- {
- addConfigurationChild( configuration, projectProperties, "maven.junit.jvmargs", "argLine" );
-
- String forkMode = projectProperties.getProperty( "maven.junit.forkmode" );
- if ( forkMode == null )
- {
- String fork = projectProperties.getProperty( "maven.junit.fork" );
- if ( fork != null )
- {
- boolean useFork = Boolean.valueOf( PropertyUtils.convertYesNoToBoolean( fork ) ).booleanValue();
- if ( useFork )
- {
- // Use "once" here as that is the default forkMode
- addConfigurationChild( configuration, "forkMode", "once" );
- }
- }
- }
- else
- {
- addConfigurationChild( configuration, projectProperties, "maven.junit.forkmode", "forkMode" );
- }
-
- addConfigurationChild( configuration, projectProperties, "maven.junit.jvm", "jvm" );
-
- addConfigurationChild( configuration, projectProperties, "maven.junit.printSummary", "printSummary" );
-
- addConfigurationChild( configuration, projectProperties, "maven.junit.format", "reportFormat" );
-
- addConfigurationChild( configuration, projectProperties, "maven.test.skip", "skip" );
-
- String sysproperties = projectProperties.getProperty( "maven.junit.sysproperties" );
- if ( sysproperties != null )
- {
- StringTokenizer tokenizer = new StringTokenizer( sysproperties );
- if ( tokenizer.hasMoreTokens() )
- {
- Xpp3Dom systemProperties = new Xpp3Dom( "systemProperties" );
- while ( tokenizer.hasMoreTokens() )
- {
- String name = tokenizer.nextToken();
- String value = projectProperties.getProperty( name );
- addConfigurationChild( systemProperties, name, value );
- }
- if ( systemProperties.getChildCount() > 0 )
- {
- configuration.addChild( systemProperties );
- }
- }
- }
-
- addConfigurationChild( configuration, projectProperties, "maven.test.failure.ignore", "testFailureIgnore" );
-
- addConfigurationChild( configuration, projectProperties, "maven.junit.usefile", "useFile" );
-
- if ( v3Model.getBuild() != null && v3Model.getBuild().getUnitTest() != null )
- {
- org.apache.maven.model.v3_0_0.UnitTest v3UnitTest = v3Model.getBuild().getUnitTest();
-
- List excludes = v3UnitTest.getExcludes();
- if ( excludes != null && excludes.size() > 0 )
- {
- Xpp3Dom excludesConf = new Xpp3Dom( "excludes" );
- for ( Iterator iter = excludes.iterator(); iter.hasNext(); )
- {
- addConfigurationChild( excludesConf, "exclude", (String) iter.next() );
- }
- configuration.addChild( excludesConf );
- }
-
- List includes = v3UnitTest.getIncludes();
- if ( includes != null && includes.size() > 0 )
- {
- Xpp3Dom includesConf = new Xpp3Dom( "includes" );
- for ( Iterator iter = includes.iterator(); iter.hasNext(); )
- {
- addConfigurationChild( includesConf, "include", (String) iter.next() );
- }
- configuration.addChild( includesConf );
- }
- }
- }
-}
diff --git a/maven-model-converter/src/main/java/org/apache/maven/model/converter/plugins/PCCTaglist.java b/maven-model-converter/src/main/java/org/apache/maven/model/converter/plugins/PCCTaglist.java
deleted file mode 100644
index 29cba5ea1f..0000000000
--- a/maven-model-converter/src/main/java/org/apache/maven/model/converter/plugins/PCCTaglist.java
+++ /dev/null
@@ -1,54 +0,0 @@
-package org.apache.maven.model.converter.plugins;
-
-/*
- * Copyright 2006 The Apache Software Foundation.
- *
- * Licensed 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 org.apache.maven.model.converter.ProjectConverterException;
-import org.codehaus.plexus.util.xml.Xpp3Dom;
-
-import java.util.Properties;
-
-/**
- * A PluginConfigurationConverter
for the maven-tasklist-plugin.
- *
- * @plexus.component role="org.apache.maven.model.converter.plugins.PluginConfigurationConverter" role-hint="taglist"
- *
- * @author Dennis Lundberg
- * @version $Id: PCCTaglist.java 409264 2006-05-24 23:13:13 +0000 (on, 24 maj 2006) carlos $
- */
-public class PCCTaglist
- extends AbstractPluginConfigurationConverter
-{
- /**
- * @see org.apache.maven.model.converter.plugins.AbstractPluginConfigurationConverter#getArtifactId()
- */
- public String getArtifactId()
- {
- return "maven-tasklist-plugin";
- }
-
- public String getType()
- {
- return TYPE_REPORT_PLUGIN;
- }
-
- protected void buildConfiguration( Xpp3Dom configuration, org.apache.maven.model.v3_0_0.Model v3Model,
- Properties projectProperties )
- throws ProjectConverterException
- {
- addConfigurationChild( configuration, projectProperties, "maven.tasklist.taskTag", "tags" );
- }
-}
diff --git a/maven-model-converter/src/main/java/org/apache/maven/model/converter/plugins/PCCWar.java b/maven-model-converter/src/main/java/org/apache/maven/model/converter/plugins/PCCWar.java
deleted file mode 100644
index bc31bfdad3..0000000000
--- a/maven-model-converter/src/main/java/org/apache/maven/model/converter/plugins/PCCWar.java
+++ /dev/null
@@ -1,56 +0,0 @@
-package org.apache.maven.model.converter.plugins;
-
-/*
- * Copyright 2001-2006 The Apache Software Foundation.
- *
- * Licensed 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 org.apache.maven.model.converter.ProjectConverterException;
-import org.codehaus.plexus.util.StringUtils;
-import org.codehaus.plexus.util.xml.Xpp3Dom;
-
-import java.util.Properties;
-
-/**
- * @plexus.component role="org.apache.maven.model.converter.plugins.PluginConfigurationConverter" role-hint="war"
- *
- * @author Fabrizio Giustina
- * @author Dennis Lundberg
- * @version $Id$
- */
-public class PCCWar
- extends AbstractPluginConfigurationConverter
-{
- /**
- * @see org.apache.maven.model.converter.plugins.AbstractPluginConfigurationConverter#getArtifactId()
- */
- public String getArtifactId()
- {
- return "maven-war-plugin";
- }
-
- public String getType()
- {
- return TYPE_BUILD_PLUGIN;
- }
-
- protected void buildConfiguration( Xpp3Dom configuration, org.apache.maven.model.v3_0_0.Model v3Model,
- Properties projectProperties )
- throws ProjectConverterException
- {
- String warSourceDirectory = projectProperties.getProperty( "maven.war.src" );
- addConfigurationChild( configuration, "warSourceDirectory",
- StringUtils.replace( warSourceDirectory, "${basedir}/", "" ) );
- }
-}
diff --git a/maven-model-converter/src/main/java/org/apache/maven/model/converter/plugins/PluginConfigurationConverter.java b/maven-model-converter/src/main/java/org/apache/maven/model/converter/plugins/PluginConfigurationConverter.java
deleted file mode 100644
index cb9df6c947..0000000000
--- a/maven-model-converter/src/main/java/org/apache/maven/model/converter/plugins/PluginConfigurationConverter.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package org.apache.maven.model.converter.plugins;
-
-/*
- * Copyright 2001-2006 The Apache Software Foundation.
- *
- * Licensed 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 java.util.Properties;
-
-import org.apache.maven.model.Model;
-import org.apache.maven.model.converter.ProjectConverterException;
-
-/**
- * A plugin configuration converter reads properties from a v3 pom or project.properties and add them to the v4 pom.
- * @author Fabrizio Giustina
- * @version $Id$
- */
-public interface PluginConfigurationConverter
-{
- void convertConfiguration( Model v4Model, org.apache.maven.model.v3_0_0.Model v3Model, Properties projectProperties )
- throws ProjectConverterException;
-}
diff --git a/maven-model-converter/src/main/java/org/apache/maven/model/converter/plugins/PropertyUtils.java b/maven-model-converter/src/main/java/org/apache/maven/model/converter/plugins/PropertyUtils.java
deleted file mode 100644
index 8b0cdf13f8..0000000000
--- a/maven-model-converter/src/main/java/org/apache/maven/model/converter/plugins/PropertyUtils.java
+++ /dev/null
@@ -1,69 +0,0 @@
-package org.apache.maven.model.converter.plugins;
-
-/*
- * Copyright 2006 The Apache Software Foundation.
- *
- * Licensed 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.
- */
-
-/**
- * Utility class which features various methods for converting String-based property values.
- *
- * @author Dennis Lundberg
- * @version $Id$
- */
-public class PropertyUtils
-{
- static String convertOnOffToBoolean( String value )
- {
- if ( value != null )
- {
- if ( "on".equalsIgnoreCase( value ) )
- {
- return Boolean.TRUE.toString();
- }
- if ( "off".equalsIgnoreCase( value ) )
- {
- return Boolean.FALSE.toString();
- }
- }
- return null;
- }
-
- static String convertYesNoToBoolean( String value )
- {
- if ( value != null )
- {
- if ( "yes".equalsIgnoreCase( value ) )
- {
- return Boolean.TRUE.toString();
- }
- if ( "no".equalsIgnoreCase( value ) )
- {
- return Boolean.FALSE.toString();
- }
- }
- return null;
- }
-
- static String invertBoolean( String stringValue )
- {
- if ( stringValue != null )
- {
- boolean booleanValue = Boolean.valueOf( stringValue ).booleanValue();
- boolean invertedBooleanValue = !booleanValue;
- return new Boolean( invertedBooleanValue ).toString();
- }
- return null;
- }
-}
diff --git a/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/AbstractPluginRelocator.java b/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/AbstractPluginRelocator.java
deleted file mode 100644
index 5499e050ac..0000000000
--- a/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/AbstractPluginRelocator.java
+++ /dev/null
@@ -1,179 +0,0 @@
-package org.apache.maven.model.converter.relocators;
-
-/*
- * Copyright 2006 The Apache Software Foundation.
- *
- * Licensed 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 org.apache.maven.model.Model;
-import org.apache.maven.model.Plugin;
-import org.apache.maven.model.ReportPlugin;
-import org.apache.maven.model.converter.ConverterListener;
-import org.apache.maven.model.converter.ModelUtils;
-import org.codehaus.plexus.logging.AbstractLogEnabled;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-/**
- * A general implementation of the PluginRelocator
interface.
- *
- * @author Dennis Lundberg
- * @version $Id: PluginRelocator.java 409264 2006-05-24 23:13:13 +0000 (on, 24 maj 2006) dennisl $
- */
-public abstract class AbstractPluginRelocator
- extends AbstractLogEnabled
- implements PluginRelocator
-{
- private List listeners = new ArrayList();
-
- /**
- * If there is no replacement for this plugin, you can have the plugin
- * removed from the v4 pom by returning null
from this method
- * and from getNewGroupId().
- *
- * @return The artifactId of the new Maven 2 plugin
- */
- public abstract String getNewArtifactId();
-
- /**
- * If there is no replacement for this plugin, you can have the plugin
- * removed from the v4 pom by returning null
from this method
- * and from getNewArtifactId().
- *
- * @return The groupId of the new Maven 2 plugin
- */
- public abstract String getNewGroupId();
-
- /**
- * Note: Because we are working on the recently converted
- * Maven 2 model, this method must return the artifactId that is in the
- * model, after the model has been converted.
- *
- * @return The artifactId of the Maven 1 plugin.
- * @see org.apache.maven.model.converter.PomV3ToV4Translator#translateDependencies( java.util.List )
- */
- public abstract String getOldArtifactId();
-
- /**
- * Note: Because we are working on the recently converted
- * Maven 2 model, this method must return the groupId that is in the model,
- * after the model has been converted.
- *
- * Feel free to overload this method if your plugin has a different groupId.
- *
PluginRelocator
for SourceForge plugins.
- *
- * @author Dennis Lundberg
- * @version $Id: AbstractSourceForgePluginRelocator.java 411318 2006-06-02 22:34:35 +0000 (fr, 02 jun 2006) dennisl $
- */
-public abstract class AbstractSourceForgePluginRelocator extends AbstractPluginRelocator
-{
- /**
- * @see org.apache.maven.model.converter.relocators.AbstractPluginRelocator#getOldGroupId()
- */
- public String getOldGroupId()
- {
- return "maven-plugins";
- }
-}
diff --git a/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/CoberturaPluginRelocator.java b/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/CoberturaPluginRelocator.java
deleted file mode 100644
index ea50acaff5..0000000000
--- a/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/CoberturaPluginRelocator.java
+++ /dev/null
@@ -1,52 +0,0 @@
-package org.apache.maven.model.converter.relocators;
-
-/*
- * Copyright 2006 The Apache Software Foundation.
- *
- * Licensed 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.
- */
-
-/**
- * A PluginRelocator
for the maven-cobertura-plugin.
- *
- * @author Dennis Lundberg
- * @version $Id: CoberturaPluginRelocator.java 411318 2006-06-02 22:34:35 +0000 (fr, 02 jun 2006) dennisl $
- * @plexus.component role="org.apache.maven.model.converter.relocators.PluginRelocator"
- * role-hint="cobertura"
- */
-public class CoberturaPluginRelocator extends AbstractSourceForgePluginRelocator
-{
- /**
- * @see AbstractPluginRelocator#getNewArtifactId()
- */
- public String getNewArtifactId()
- {
- return "cobertura-maven-plugin";
- }
-
- /**
- * @see AbstractPluginRelocator#getNewGroupId()
- */
- public String getNewGroupId()
- {
- return "org.codehaus.mojo";
- }
-
- /**
- * @see AbstractPluginRelocator#getOldArtifactId()
- */
- public String getOldArtifactId()
- {
- return "maven-cobertura-plugin";
- }
-}
diff --git a/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/DefaultPluginRelocatorManager.java b/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/DefaultPluginRelocatorManager.java
deleted file mode 100644
index cd764a121d..0000000000
--- a/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/DefaultPluginRelocatorManager.java
+++ /dev/null
@@ -1,55 +0,0 @@
-package org.apache.maven.model.converter.relocators;
-
-/*
- * Copyright 2006 The Apache Software Foundation.
- *
- * Licensed 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 org.codehaus.plexus.logging.AbstractLogEnabled;
-
-import java.util.Collection;
-import java.util.Map;
-
-/**
- * A default implementation of the PluginRelocatorManager
interface.
- *
- * @author Dennis Lundberg
- * @version $Id: DefaultPluginRelocatorManager.java 3420 2006-06-23 20:23:59Z dennisl $
- * @plexus.component role="org.apache.maven.model.converter.relocators.PluginRelocatorManager"
- */
-public class DefaultPluginRelocatorManager extends AbstractLogEnabled implements PluginRelocatorManager
-{
- /**
- * @plexus.requirement role="org.apache.maven.model.converter.relocators.PluginRelocator"
- */
- private Map pluginRelocators;
-
- public PluginRelocator getPluginRelocator( String pluginRelocatorId )
- throws NoSuchPluginRelocatorException
- {
- PluginRelocator pluginRelocator = (PluginRelocator) pluginRelocators.get( pluginRelocatorId );
-
- if ( pluginRelocator == null )
- {
- throw new NoSuchPluginRelocatorException( pluginRelocatorId );
- }
-
- return pluginRelocator;
- }
-
- public Collection getPluginRelocators()
- {
- return pluginRelocators.values();
- }
-}
diff --git a/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/DeveloperActivityPluginRelocator.java b/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/DeveloperActivityPluginRelocator.java
deleted file mode 100644
index 16ef4c4302..0000000000
--- a/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/DeveloperActivityPluginRelocator.java
+++ /dev/null
@@ -1,52 +0,0 @@
-package org.apache.maven.model.converter.relocators;
-
-/*
- * Copyright 2006 The Apache Software Foundation.
- *
- * Licensed 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.
- */
-
-/**
- * A PluginRelocator
for the maven-developer-activity-plugin.
- *
- * @author Dennis Lundberg
- * @version $Id: DeveloperActivityPluginRelocator.java 411318 2006-06-02 22:34:35 +0000 (fr, 02 jun 2006) carlos $
- * @plexus.component role="org.apache.maven.model.converter.relocators.PluginRelocator"
- * role-hint="developer-activity"
- */
-public class DeveloperActivityPluginRelocator extends AbstractPluginRelocator
-{
- /**
- * @see org.apache.maven.model.converter.relocators.AbstractPluginRelocator#getNewArtifactId()
- */
- public String getNewArtifactId()
- {
- return "maven-changelog-plugin";
- }
-
- /**
- * @see org.apache.maven.model.converter.relocators.AbstractPluginRelocator#getNewGroupId()
- */
- public String getNewGroupId()
- {
- return "org.apache.maven.plugins";
- }
-
- /**
- * @see org.apache.maven.model.converter.relocators.AbstractPluginRelocator#getOldArtifactId()
- */
- public String getOldArtifactId()
- {
- return "maven-developer-activity-plugin";
- }
-}
diff --git a/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/FaqPluginRelocator.java b/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/FaqPluginRelocator.java
deleted file mode 100644
index 864b2d4772..0000000000
--- a/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/FaqPluginRelocator.java
+++ /dev/null
@@ -1,52 +0,0 @@
-package org.apache.maven.model.converter.relocators;
-
-/*
- * Copyright 2006 The Apache Software Foundation.
- *
- * Licensed 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.
- */
-
-/**
- * A PluginRelocator
for the maven-faq-plugin.
- *
- * @author Dennis Lundberg
- * @version $Id: FaqPluginRelocator.java 411318 2006-06-02 22:34:35 +0000 (fr, 02 jun 2006) carlos $
- * @plexus.component role="org.apache.maven.model.converter.relocators.PluginRelocator"
- * role-hint="faq"
- */
-public class FaqPluginRelocator extends AbstractPluginRelocator
-{
- /**
- * @see org.apache.maven.model.converter.relocators.AbstractPluginRelocator#getNewArtifactId()
- */
- public String getNewArtifactId()
- {
- return null;
- }
-
- /**
- * @see org.apache.maven.model.converter.relocators.AbstractPluginRelocator#getNewGroupId()
- */
- public String getNewGroupId()
- {
- return null;
- }
-
- /**
- * @see org.apache.maven.model.converter.relocators.AbstractPluginRelocator#getOldArtifactId()
- */
- public String getOldArtifactId()
- {
- return "maven-faq-plugin";
- }
-}
diff --git a/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/FileActivityPluginRelocator.java b/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/FileActivityPluginRelocator.java
deleted file mode 100644
index e6aa410d47..0000000000
--- a/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/FileActivityPluginRelocator.java
+++ /dev/null
@@ -1,52 +0,0 @@
-package org.apache.maven.model.converter.relocators;
-
-/*
- * Copyright 2006 The Apache Software Foundation.
- *
- * Licensed 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.
- */
-
-/**
- * A PluginRelocator
for the maven-file-activity-plugin.
- *
- * @author Dennis Lundberg
- * @version $Id: DeveloperActivityPluginRelocator.java 411318 2006-06-02 22:34:35 +0000 (fr, 02 jun 2006) carlos $
- * @plexus.component role="org.apache.maven.model.converter.relocators.PluginRelocator"
- * role-hint="file-activity"
- */
-public class FileActivityPluginRelocator extends AbstractPluginRelocator
-{
- /**
- * @see AbstractPluginRelocator#getNewArtifactId()
- */
- public String getNewArtifactId()
- {
- return "maven-changelog-plugin";
- }
-
- /**
- * @see AbstractPluginRelocator#getNewGroupId()
- */
- public String getNewGroupId()
- {
- return "org.apache.maven.plugins";
- }
-
- /**
- * @see AbstractPluginRelocator#getOldArtifactId()
- */
- public String getOldArtifactId()
- {
- return "maven-file-activity-plugin";
- }
-}
diff --git a/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/FindbugsPluginRelocator.java b/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/FindbugsPluginRelocator.java
deleted file mode 100644
index d05f732b5c..0000000000
--- a/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/FindbugsPluginRelocator.java
+++ /dev/null
@@ -1,52 +0,0 @@
-package org.apache.maven.model.converter.relocators;
-
-/*
- * Copyright 2006 The Apache Software Foundation.
- *
- * Licensed 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.
- */
-
-/**
- * A PluginRelocator
for the maven-findbugs-plugin.
- *
- * @author Dennis Lundberg
- * @version $Id: FindbugsPluginRelocator.java 411318 2006-06-02 22:34:35 +0000 (fr, 02 jun 2006) carlos $
- * @plexus.component role="org.apache.maven.model.converter.relocators.PluginRelocator"
- * role-hint="findbugs"
- */
-public class FindbugsPluginRelocator extends AbstractSourceForgePluginRelocator
-{
- /**
- * @see AbstractPluginRelocator#getNewArtifactId()
- */
- public String getNewArtifactId()
- {
- return "findbugs-maven-plugin";
- }
-
- /**
- * @see AbstractPluginRelocator#getNewGroupId()
- */
- public String getNewGroupId()
- {
- return "org.codehaus.mojo";
- }
-
- /**
- * @see AbstractPluginRelocator#getOldArtifactId()
- */
- public String getOldArtifactId()
- {
- return "maven-findbugs-plugin";
- }
-}
diff --git a/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/JdependPluginRelocator.java b/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/JdependPluginRelocator.java
deleted file mode 100644
index c50e200a41..0000000000
--- a/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/JdependPluginRelocator.java
+++ /dev/null
@@ -1,52 +0,0 @@
-package org.apache.maven.model.converter.relocators;
-
-/*
- * Copyright 2006 The Apache Software Foundation.
- *
- * Licensed 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.
- */
-
-/**
- * A PluginRelocator
for the maven-jdepend-plugin.
- *
- * @author Dennis Lundberg
- * @version $Id: TasklistPluginRelocator.java 411318 2006-06-02 22:34:35 +0000 (fr, 02 jun 2006) carlos $
- * @plexus.component role="org.apache.maven.model.converter.relocators.PluginRelocator"
- * role-hint="jdepend"
- */
-public class JdependPluginRelocator extends AbstractPluginRelocator
-{
- /**
- * @see org.apache.maven.model.converter.relocators.AbstractPluginRelocator#getNewArtifactId()
- */
- public String getNewArtifactId()
- {
- return "jdepend-maven-plugin";
- }
-
- /**
- * @see org.apache.maven.model.converter.relocators.AbstractPluginRelocator#getNewGroupId()
- */
- public String getNewGroupId()
- {
- return "org.codehaus.mojo";
- }
-
- /**
- * @see org.apache.maven.model.converter.relocators.AbstractPluginRelocator#getOldArtifactId()
- */
- public String getOldArtifactId()
- {
- return "maven-jdepend-plugin";
- }
-}
diff --git a/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/JdiffPluginRelocator.java b/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/JdiffPluginRelocator.java
deleted file mode 100644
index e92d80b790..0000000000
--- a/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/JdiffPluginRelocator.java
+++ /dev/null
@@ -1,52 +0,0 @@
-package org.apache.maven.model.converter.relocators;
-
-/*
- * Copyright 2006 The Apache Software Foundation.
- *
- * Licensed 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.
- */
-
-/**
- * A PluginRelocator
for the maven-jdiff-plugin.
- *
- * @author Dennis Lundberg
- * @version $Id: JdiffPluginRelocator.java 411318 2006-06-02 22:34:35 +0000 (fr, 02 jun 2006) carlos $
- * @plexus.component role="org.apache.maven.model.converter.relocators.PluginRelocator"
- * role-hint="jdiff"
- */
-public class JdiffPluginRelocator extends AbstractPluginRelocator
-{
- /**
- * @see AbstractPluginRelocator#getNewArtifactId()
- */
- public String getNewArtifactId()
- {
- return "jdiff-maven-plugin";
- }
-
- /**
- * @see AbstractPluginRelocator#getNewGroupId()
- */
- public String getNewGroupId()
- {
- return "org.codehaus.mojo";
- }
-
- /**
- * @see AbstractPluginRelocator#getOldArtifactId()
- */
- public String getOldArtifactId()
- {
- return "maven-jdiff-plugin";
- }
-}
diff --git a/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/JunitReportPluginRelocator.java b/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/JunitReportPluginRelocator.java
deleted file mode 100644
index a901f7a639..0000000000
--- a/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/JunitReportPluginRelocator.java
+++ /dev/null
@@ -1,52 +0,0 @@
-package org.apache.maven.model.converter.relocators;
-
-/*
- * Copyright 2006 The Apache Software Foundation.
- *
- * Licensed 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.
- */
-
-/**
- * A PluginRelocator
for the maven-junit-report-plugin.
- *
- * @author Dennis Lundberg
- * @version $Id: JunitReportPluginRelocator.java 411318 2006-06-02 22:34:35 +0000 (fr, 02 jun 2006) carlos $
- * @plexus.component role="org.apache.maven.model.converter.relocators.PluginRelocator"
- * role-hint="junit-report"
- */
-public class JunitReportPluginRelocator extends AbstractPluginRelocator
-{
- /**
- * @see org.apache.maven.model.converter.relocators.AbstractPluginRelocator#getNewArtifactId()
- */
- public String getNewArtifactId()
- {
- return "maven-surefire-report-plugin";
- }
-
- /**
- * @see org.apache.maven.model.converter.relocators.AbstractPluginRelocator#getNewGroupId()
- */
- public String getNewGroupId()
- {
- return "org.apache.maven.plugins";
- }
-
- /**
- * @see org.apache.maven.model.converter.relocators.AbstractPluginRelocator#getOldArtifactId()
- */
- public String getOldArtifactId()
- {
- return "maven-junit-report-plugin";
- }
-}
diff --git a/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/LicenseRelocator.java b/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/LicenseRelocator.java
deleted file mode 100644
index 3d9bfa58d7..0000000000
--- a/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/LicenseRelocator.java
+++ /dev/null
@@ -1,52 +0,0 @@
-package org.apache.maven.model.converter.relocators;
-
-/*
- * Copyright 2006 The Apache Software Foundation.
- *
- * Licensed 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.
- */
-
-/**
- * A PluginRelocator
for the maven-license-plugin.
- *
- * @author Dennis Lundberg
- * @version $Id: LicenseRelocator.java 411318 2006-06-02 22:34:35 +0000 (fr, 02 jun 2006) carlos $
- * @plexus.component role="org.apache.maven.model.converter.relocators.PluginRelocator"
- * role-hint="license"
- */
-public class LicenseRelocator extends AbstractPluginRelocator
-{
- /**
- * @see org.apache.maven.model.converter.relocators.AbstractPluginRelocator#getNewArtifactId()
- */
- public String getNewArtifactId()
- {
- return null;
- }
-
- /**
- * @see org.apache.maven.model.converter.relocators.AbstractPluginRelocator#getNewGroupId()
- */
- public String getNewGroupId()
- {
- return null;
- }
-
- /**
- * @see org.apache.maven.model.converter.relocators.AbstractPluginRelocator#getOldArtifactId()
- */
- public String getOldArtifactId()
- {
- return "maven-license-plugin";
- }
-}
diff --git a/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/NoSuchPluginRelocatorException.java b/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/NoSuchPluginRelocatorException.java
deleted file mode 100644
index e6c5ce80dd..0000000000
--- a/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/NoSuchPluginRelocatorException.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package org.apache.maven.model.converter.relocators;
-
-/*
- * Copyright 2006 The Apache Software Foundation.
- *
- * Licensed 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.
- */
-
-/**
- * @author Dennis Lundberg
- * @version $Id: NoSuchPluginRelocatorException.java 409264 2006-05-24 23:13:13 +0000 (on, 24 maj 2006) dennisl $
- */
-public class NoSuchPluginRelocatorException extends Exception
-{
- private final String pluginRelocatorId;
-
- public NoSuchPluginRelocatorException( String pluginRelocatorId )
- {
- super( "No such plugin relocator '" + pluginRelocatorId + "'." );
-
- this.pluginRelocatorId = pluginRelocatorId;
- }
-
- public String getPluginRelocatorId()
- {
- return pluginRelocatorId;
- }
-}
diff --git a/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/PluginRelocator.java b/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/PluginRelocator.java
deleted file mode 100644
index b8e4fe312c..0000000000
--- a/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/PluginRelocator.java
+++ /dev/null
@@ -1,56 +0,0 @@
-package org.apache.maven.model.converter.relocators;
-
-/*
- * Copyright 2006 The Apache Software Foundation.
- *
- * Licensed 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 org.apache.maven.model.Model;
-import org.apache.maven.model.converter.ConverterListener;
-
-import java.util.List;
-
-/**
- * A plugin relocator handles a plugin that has changed its groupId and/or
- * artifactId between the Maven 1 version and the Maven 2 version. It changes
- * the appropriate values in the v4 pom.
- *
- * @author Dennis Lundberg
- * @version $Id: PluginRelocator.java 409264 2006-05-24 23:13:13 +0000 (on, 24 maj 2006) carlos $
- */
-public interface PluginRelocator
-{
- String ROLE = PluginRelocator.class.getName();
-
- /**
- * Relocate a plugin from one groupId/artifactId to another.
- *
- * @param v4Model The model where we look for the plugin
- */
- void relocate( Model v4Model );
-
- /**
- * Add a listener for all messages sended by the relocator.
- *
- * @param listener The listener that will receive messages
- */
- void addListener( ConverterListener listener );
-
- /**
- * Add a listeners list for all messages sended by the relocator.
- *
- * @param listeners The listeners list that will receive messages
- */
- void addListeners( List listeners );
-}
diff --git a/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/PluginRelocatorManager.java b/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/PluginRelocatorManager.java
deleted file mode 100644
index d92e58739c..0000000000
--- a/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/PluginRelocatorManager.java
+++ /dev/null
@@ -1,47 +0,0 @@
-package org.apache.maven.model.converter.relocators;
-
-import java.util.Collection;
-
-/*
- * Copyright 2006 The Apache Software Foundation.
- *
- * Licensed 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.
- */
-
-/**
- * A manager for plugin relocators.
- *
- * @author Dennis Lundberg
- * @version $Id: PluginRelocatorManager.java 409264 2006-05-24 23:13:13 +0000 (on, 24 maj 2006) dennisl $
- */
-public interface PluginRelocatorManager
-{
- String ROLE = PluginRelocatorManager.class.getName();
-
- /**
- * Get a named plugin relocator.
- *
- * @param pluginRelocatorId The role-hint for the plexus component
- * @return The named plugin relocator
- * @throws NoSuchPluginRelocatorException If the named plugin relocator can not be found
- */
- PluginRelocator getPluginRelocator( String pluginRelocatorId )
- throws NoSuchPluginRelocatorException;
-
- /**
- * Get all available plugin relocators.
- *
- * @return A Collection
of PluginRelocator
objects
- */
- Collection getPluginRelocators();
-}
diff --git a/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/SimianPluginRelocator.java b/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/SimianPluginRelocator.java
deleted file mode 100644
index 529637008e..0000000000
--- a/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/SimianPluginRelocator.java
+++ /dev/null
@@ -1,52 +0,0 @@
-package org.apache.maven.model.converter.relocators;
-
-/*
- * Copyright 2006 The Apache Software Foundation.
- *
- * Licensed 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.
- */
-
-/**
- * A PluginRelocator
for the maven-simian-plugin.
- *
- * @author Dennis Lundberg
- * @version $Id: SimianPluginRelocator.java 411318 2006-06-02 22:34:35 +0000 (fr, 02 jun 2006) carlos $
- * @plexus.component role="org.apache.maven.model.converter.relocators.PluginRelocator"
- * role-hint="simian"
- */
-public class SimianPluginRelocator extends AbstractPluginRelocator
-{
- /**
- * @see AbstractPluginRelocator#getNewArtifactId()
- */
- public String getNewArtifactId()
- {
- return "simian-maven-plugin";
- }
-
- /**
- * @see AbstractPluginRelocator#getNewGroupId()
- */
- public String getNewGroupId()
- {
- return "org.codehaus.mojo";
- }
-
- /**
- * @see AbstractPluginRelocator#getOldArtifactId()
- */
- public String getOldArtifactId()
- {
- return "maven-simian-plugin";
- }
-}
diff --git a/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/TasklistPluginRelocator.java b/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/TasklistPluginRelocator.java
deleted file mode 100644
index 433ab02816..0000000000
--- a/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/TasklistPluginRelocator.java
+++ /dev/null
@@ -1,52 +0,0 @@
-package org.apache.maven.model.converter.relocators;
-
-/*
- * Copyright 2006 The Apache Software Foundation.
- *
- * Licensed 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.
- */
-
-/**
- * A PluginRelocator
for the maven-tasklist-plugin.
- *
- * @author Dennis Lundberg
- * @version $Id: TasklistPluginRelocator.java 411318 2006-06-02 22:34:35 +0000 (fr, 02 jun 2006) carlos $
- * @plexus.component role="org.apache.maven.model.converter.relocators.PluginRelocator"
- * role-hint="tasklist"
- */
-public class TasklistPluginRelocator extends AbstractPluginRelocator
-{
- /**
- * @see AbstractPluginRelocator#getNewArtifactId()
- */
- public String getNewArtifactId()
- {
- return "taglist-maven-plugin";
- }
-
- /**
- * @see AbstractPluginRelocator#getNewGroupId()
- */
- public String getNewGroupId()
- {
- return "org.codehaus.mojo";
- }
-
- /**
- * @see AbstractPluginRelocator#getOldArtifactId()
- */
- public String getOldArtifactId()
- {
- return "maven-tasklist-plugin";
- }
-}
diff --git a/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/XdocPluginRelocator.java b/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/XdocPluginRelocator.java
deleted file mode 100644
index 2989690d50..0000000000
--- a/maven-model-converter/src/main/java/org/apache/maven/model/converter/relocators/XdocPluginRelocator.java
+++ /dev/null
@@ -1,52 +0,0 @@
-package org.apache.maven.model.converter.relocators;
-
-/*
- * Copyright 2006 The Apache Software Foundation.
- *
- * Licensed 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.
- */
-
-/**
- * A PluginRelocator
for the maven-xdoc-plugin.
- *
- * @author Dennis Lundberg
- * @version $Id: XdocPluginRelocator.java 411318 2006-06-02 22:34:35 +0000 (fr, 02 jun 2006) carlos $
- * @plexus.component role="org.apache.maven.model.converter.relocators.PluginRelocator"
- * role-hint="xdoc"
- */
-public class XdocPluginRelocator extends AbstractPluginRelocator
-{
- /**
- * @see AbstractPluginRelocator#getNewArtifactId()
- */
- public String getNewArtifactId()
- {
- return null;
- }
-
- /**
- * @see AbstractPluginRelocator#getNewGroupId()
- */
- public String getNewGroupId()
- {
- return null;
- }
-
- /**
- * @see AbstractPluginRelocator#getOldArtifactId()
- */
- public String getOldArtifactId()
- {
- return "maven-xdoc-plugin";
- }
-}
diff --git a/maven-model-converter/src/test/java/org/apache/maven/model/converter/PomV3ToV4TranslatorTest.java b/maven-model-converter/src/test/java/org/apache/maven/model/converter/PomV3ToV4TranslatorTest.java
deleted file mode 100644
index 2c62e9eab3..0000000000
--- a/maven-model-converter/src/test/java/org/apache/maven/model/converter/PomV3ToV4TranslatorTest.java
+++ /dev/null
@@ -1,165 +0,0 @@
-package org.apache.maven.model.converter;
-
-/*
- * Copyright 2001-2005 The Apache Software Foundation.
- *
- * Licensed 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 junit.framework.Assert;
-import org.apache.maven.model.Build;
-import org.apache.maven.model.Dependency;
-import org.apache.maven.model.Model;
-import org.apache.maven.model.Plugin;
-import org.apache.maven.model.Resource;
-import org.codehaus.plexus.PlexusTestCase;
-
-import java.util.Arrays;
-
-public class PomV3ToV4TranslatorTest
- extends PlexusTestCase
-{
-
- private ModelConverter translator;
-
- private org.apache.maven.model.v3_0_0.Dependency v3Dep;
-
- private org.apache.maven.model.v3_0_0.Model v3Model;
-
- protected void setUp()
- throws Exception
- {
- super.setUp();
- translator = (ModelConverter) lookup( ModelConverter.ROLE );
-
- v3Dep = new org.apache.maven.model.v3_0_0.Dependency();
- v3Dep.setGroupId( "testGroup" );
- v3Dep.setArtifactId( "testArtifact" );
- v3Dep.setVersion( "1.0" );
-
- v3Model = new org.apache.maven.model.v3_0_0.Model();
- v3Model.setBuild( new org.apache.maven.model.v3_0_0.Build() );
- }
-
- public void testConvertedEmptyResourceDirectory()
- throws PomTranslationException
- {
- org.apache.maven.model.v3_0_0.Resource v3Resource = new org.apache.maven.model.v3_0_0.Resource();
- v3Resource.setIncludes( Arrays.asList( new String[]{"**/*.properties"} ) );
- v3Model.getBuild().addResource( v3Resource );
-
- Model result = translator.translate( v3Model );
- Resource resource = (Resource) result.getBuild().getResources().get( 0 );
- Assert.assertEquals( "check directory of v3Resource", ".", resource.getDirectory() );
- }
-
- public void testShouldConvertScopePropertyToDependencyScope()
- throws Exception
- {
- v3Dep.addProperty( "scope", "test" );
-
- v3Model.addDependency( v3Dep );
-
- Model result = translator.translate( v3Model );
- Assert.assertEquals( "test", ( (Dependency) result.getDependencies().get( 0 ) ).getScope() );
-
- }
-
- public void testShouldConvertOptionalPropertyToDependencyOptional()
- throws Exception
- {
- v3Dep.addProperty( "optional", "true" );
-
- v3Model.addDependency( v3Dep );
-
- Model result = translator.translate( v3Model );
- Assert.assertTrue( ( (Dependency) result.getDependencies().get( 0 ) ).isOptional() );
-
- v3Dep.addProperty( "optional", "TRUE" );
-
- v3Model.addDependency( v3Dep );
-
- result = translator.translate( v3Model );
- Assert.assertTrue( ( (Dependency) result.getDependencies().get( 0 ) ).isOptional() );
- }
-
- public void testDontBreakWithMalformedOptionalProperty()
- throws Exception
- {
- v3Dep.addProperty( "optional", "xxx" );
-
- v3Model.addDependency( v3Dep );
-
- Model result = translator.translate( v3Model );
- Assert.assertFalse( ( (Dependency) result.getDependencies().get( 0 ) ).isOptional() );
-
- v3Dep.addProperty( "optional", "" );
-
- v3Model.addDependency( v3Dep );
-
- result = translator.translate( v3Model );
- Assert.assertFalse( ( (Dependency) result.getDependencies().get( 0 ) ).isOptional() );
- }
-
- public void testShouldConvertDependencyWithTypePluginToBuildPluginEntry()
- throws Exception
- {
- v3Dep.setType( "plugin" );
-
- v3Model.addDependency( v3Dep );
-
- Model result = translator.translate( v3Model );
-
- Build build = result.getBuild();
-
- Plugin plugin = (Plugin) build.getPlugins().get( 0 );
-
- Assert.assertEquals( "testGroup", plugin.getGroupId() );
- Assert.assertEquals( "testArtifact", plugin.getArtifactId() );
- Assert.assertEquals( "1.0", plugin.getVersion() );
-
- Assert.assertEquals( "check one dependency", 1, result.getDependencies().size() );
- Dependency dep = (Dependency) result.getDependencies().get( 0 );
- Assert.assertEquals( "junit", dep.getGroupId() );
- Assert.assertEquals( "junit", dep.getArtifactId() );
- Assert.assertEquals( "3.8.2", dep.getVersion() );
- Assert.assertEquals( "test", dep.getScope() );
- }
-
- public void testShouldConvertDependencyWithTypePluginAndGroupMavenToBuildPluginEntryWithOAMPluginsGroup()
- throws Exception
- {
- v3Dep.setGroupId( "maven" );
- v3Dep.setType( "plugin" );
-
- v3Model.addDependency( v3Dep );
-
- Model result = translator.translate( v3Model );
-
- Build build = result.getBuild();
-
- Plugin plugin = (Plugin) build.getPlugins().get( 0 );
-
- Assert.assertEquals( "org.apache.maven.plugins", plugin.getGroupId() );
- Assert.assertEquals( "testArtifact", plugin.getArtifactId() );
- Assert.assertEquals( "1.0", plugin.getVersion() );
-
- Assert.assertEquals( "check one dependencies", 1, result.getDependencies().size() );
- Dependency dep = (Dependency) result.getDependencies().get( 0 );
- Assert.assertEquals( "junit", dep.getGroupId() );
- Assert.assertEquals( "junit", dep.getArtifactId() );
- Assert.assertEquals( "3.8.2", dep.getVersion() );
- Assert.assertEquals( "test", dep.getScope() );
- }
-
-}
diff --git a/maven-model-converter/src/test/java/org/apache/maven/model/converter/V3PomRewriterTest.java b/maven-model-converter/src/test/java/org/apache/maven/model/converter/V3PomRewriterTest.java
deleted file mode 100644
index 09a377d48b..0000000000
--- a/maven-model-converter/src/test/java/org/apache/maven/model/converter/V3PomRewriterTest.java
+++ /dev/null
@@ -1,60 +0,0 @@
-package org.apache.maven.model.converter;
-
-/*
- * Copyright 2005-2005 The Apache Software Foundation.
- *
- * Licensed 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 org.codehaus.plexus.PlexusTestCase;
-import org.codehaus.plexus.util.xml.Xpp3Dom;
-import org.codehaus.plexus.util.xml.Xpp3DomBuilder;
-
-import java.io.StringReader;
-import java.io.StringWriter;
-import java.io.Writer;
-
-/**
- * Test rewriter.
- *
- * @author Brett Porter
- * @version $Id$
- */
-public class V3PomRewriterTest
- extends PlexusTestCase
-{
- private V3PomRewriter rewriter;
-
- protected void setUp()
- throws Exception
- {
- super.setUp();
-
- rewriter = (V3PomRewriter) lookup( V3PomRewriter.ROLE );
- }
-
- public void testCurrentVersionExpressionConversion()
- throws Exception
- {
- String pom =
- "