diff --git a/maven-compat/pom.xml b/maven-compat/pom.xml index ee5f09ff73..1b688ab75e 100644 --- a/maven-compat/pom.xml +++ b/maven-compat/pom.xml @@ -1,17 +1,12 @@ @@ -26,11 +21,31 @@ org.apache.maven - maven-model + maven-model org.apache.maven - maven-project + maven-project + + + org.codehaus.plexus + plexus-component-annotations - + + + + org.apache.maven.plugins + maven-compiler-plugin + + 1.5 + 1.5 + + + + org.codehaus.plexus + plexus-component-metadata + + + + \ No newline at end of file diff --git a/maven-compat/src/main/java/org/apache/maven/project/inheritance/DefaultModelInheritanceAssembler.java b/maven-compat/src/main/java/org/apache/maven/project/inheritance/DefaultModelInheritanceAssembler.java index 6fbeb4356d..c9f5c741af 100644 --- a/maven-compat/src/main/java/org/apache/maven/project/inheritance/DefaultModelInheritanceAssembler.java +++ b/maven-compat/src/main/java/org/apache/maven/project/inheritance/DefaultModelInheritanceAssembler.java @@ -21,6 +21,7 @@ package org.apache.maven.project.inheritance; import org.apache.maven.model.*; import org.apache.maven.project.ModelUtils; +import org.codehaus.plexus.component.annotations.Component; import org.codehaus.plexus.util.StringUtils; import org.codehaus.plexus.util.xml.Xpp3Dom; @@ -34,16 +35,10 @@ import java.util.Properties; import java.util.StringTokenizer; import java.util.TreeMap; -/** - * @author Jason van Zyl - * @version $Id: DefaultModelInheritanceAssembler.java,v 1.4 2004/08/23 20:24:54 - * jdcasey Exp $ - * @todo generate this with modello to keep it in sync with changes in the model. - */ +@Component(role = ModelInheritanceAssembler.class) public class DefaultModelInheritanceAssembler implements ModelInheritanceAssembler { - // TODO: Remove this! @SuppressWarnings("unchecked") public void assembleBuildInheritance( Build childBuild, Build parentBuild, boolean handleAsInheritance )