maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject svn commit: r632882 [7/7] - in /maven/enforcer/trunk: ./ enforcer-api/ enforcer-api/src/custom-rule-sample/ enforcer-api/src/custom-rule-sample/src/ enforcer-api/src/custom-rule-sample/src/main/java/org/apache/maven/enforcer/rule/ enforcer-api/src/main...
Date Sun, 02 Mar 2008 23:41:28 GMT
Modified: maven/enforcer/trunk/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/TestRequireReleaseVersion.java
URL: http://svn.apache.org/viewvc/maven/enforcer/trunk/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/TestRequireReleaseVersion.java?rev=632882&r1=632881&r2=632882&view=diff
==============================================================================
--- maven/enforcer/trunk/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/TestRequireReleaseVersion.java (original)
+++ maven/enforcer/trunk/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/TestRequireReleaseVersion.java Sun Mar  2 15:41:23 2008
@@ -1,46 +1,46 @@
-package org.apache.maven.plugins.enforcer;
-
-import java.io.IOException;
-
-import junit.framework.TestCase;
-
-import org.apache.maven.enforcer.rule.api.EnforcerRule;
-import org.apache.maven.enforcer.rule.api.EnforcerRuleHelper;
-import org.apache.maven.plugin.testing.ArtifactStubFactory;
-import org.apache.maven.plugins.enforcer.utils.TestEnforcerRuleUtils;
-
-/**
- * @author <a href="mailto:brianf@apache.org">Brian Fox</a>
- *
- */
-public class TestRequireReleaseVersion
-    extends TestCase
-{
-    public void testMojo() throws IOException
-    {
-        ArtifactStubFactory factory = new ArtifactStubFactory();
-        MockProject project = new MockProject();
-        EnforcerRuleHelper helper = EnforcerTestUtils.getHelper( project );
-        
-        project.setArtifact( factory.getReleaseArtifact() );
-        
-        EnforcerRule rule = new RequireReleaseVersion();
-        
-        TestEnforcerRuleUtils.execute( rule, helper, false );
-        
-        project.setArtifact( factory.getSnapshotArtifact() );
-        
-        TestEnforcerRuleUtils.execute( rule, helper, true );
-        
-    }
-    
-    public void testCache()
-    {
-        EnforcerRule rule = new RequireReleaseVersion();
-        assertFalse( rule.isCacheable() );
-        assertFalse(rule.isResultValid(null));
-        assertEquals( "0", rule.getCacheId() );   
-    }
-    
-
-}
+package org.apache.maven.plugins.enforcer;
+
+import java.io.IOException;
+
+import junit.framework.TestCase;
+
+import org.apache.maven.enforcer.rule.api.EnforcerRule;
+import org.apache.maven.enforcer.rule.api.EnforcerRuleHelper;
+import org.apache.maven.plugin.testing.ArtifactStubFactory;
+import org.apache.maven.plugins.enforcer.utils.TestEnforcerRuleUtils;
+
+/**
+ * @author <a href="mailto:brianf@apache.org">Brian Fox</a>
+ *
+ */
+public class TestRequireReleaseVersion
+    extends TestCase
+{
+    public void testMojo() throws IOException
+    {
+        ArtifactStubFactory factory = new ArtifactStubFactory();
+        MockProject project = new MockProject();
+        EnforcerRuleHelper helper = EnforcerTestUtils.getHelper( project );
+        
+        project.setArtifact( factory.getReleaseArtifact() );
+        
+        EnforcerRule rule = new RequireReleaseVersion();
+        
+        TestEnforcerRuleUtils.execute( rule, helper, false );
+        
+        project.setArtifact( factory.getSnapshotArtifact() );
+        
+        TestEnforcerRuleUtils.execute( rule, helper, true );
+        
+    }
+    
+    public void testCache()
+    {
+        EnforcerRule rule = new RequireReleaseVersion();
+        assertFalse( rule.isCacheable() );
+        assertFalse(rule.isResultValid(null));
+        assertEquals( "0", rule.getCacheId() );   
+    }
+    
+
+}

Propchange: maven/enforcer/trunk/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/TestRequireReleaseVersion.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: maven/enforcer/trunk/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/utils/MockEnforcerExpressionEvaluator.java
URL: http://svn.apache.org/viewvc/maven/enforcer/trunk/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/utils/MockEnforcerExpressionEvaluator.java?rev=632882&r1=632881&r2=632882&view=diff
==============================================================================
--- maven/enforcer/trunk/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/utils/MockEnforcerExpressionEvaluator.java (original)
+++ maven/enforcer/trunk/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/utils/MockEnforcerExpressionEvaluator.java Sun Mar  2 15:41:23 2008
@@ -1,35 +1,35 @@
-package org.apache.maven.plugins.enforcer.utils;
-
-import org.apache.maven.execution.MavenSession;
-import org.apache.maven.plugins.enforcer.EnforcerExpressionEvaluator;
-import org.apache.maven.project.MavenProject;
-import org.apache.maven.project.path.PathTranslator;
-import org.codehaus.plexus.component.configurator.expression.ExpressionEvaluationException;
-
-public class MockEnforcerExpressionEvaluator
-    extends EnforcerExpressionEvaluator
-{
-
-    public MockEnforcerExpressionEvaluator( MavenSession theContext, PathTranslator thePathTranslator,
-                                            MavenProject theProject )
-    {
-        super( theContext, thePathTranslator, theProject );
-        // TODO Auto-generated constructor stub
-    }
-
-    public Object evaluate( String expr )
-        throws ExpressionEvaluationException
-    {
-        if (expr !=null)
-        {
-        //just remove the ${ } and return the name as the value
-        return expr.replaceAll( "\\$\\{|}", "" );
-        }
-        else
-        {
-            return expr;
-        }
-    }
-    
-
-}
+package org.apache.maven.plugins.enforcer.utils;
+
+import org.apache.maven.execution.MavenSession;
+import org.apache.maven.plugins.enforcer.EnforcerExpressionEvaluator;
+import org.apache.maven.project.MavenProject;
+import org.apache.maven.project.path.PathTranslator;
+import org.codehaus.plexus.component.configurator.expression.ExpressionEvaluationException;
+
+public class MockEnforcerExpressionEvaluator
+    extends EnforcerExpressionEvaluator
+{
+
+    public MockEnforcerExpressionEvaluator( MavenSession theContext, PathTranslator thePathTranslator,
+                                            MavenProject theProject )
+    {
+        super( theContext, thePathTranslator, theProject );
+        // TODO Auto-generated constructor stub
+    }
+
+    public Object evaluate( String expr )
+        throws ExpressionEvaluationException
+    {
+        if (expr !=null)
+        {
+        //just remove the ${ } and return the name as the value
+        return expr.replaceAll( "\\$\\{|}", "" );
+        }
+        else
+        {
+            return expr;
+        }
+    }
+    
+
+}

Propchange: maven/enforcer/trunk/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/utils/MockEnforcerExpressionEvaluator.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: maven/enforcer/trunk/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/utils/TestEnforcerRuleUtils.java
URL: http://svn.apache.org/viewvc/maven/enforcer/trunk/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/utils/TestEnforcerRuleUtils.java?rev=632882&r1=632881&r2=632882&view=diff
==============================================================================
--- maven/enforcer/trunk/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/utils/TestEnforcerRuleUtils.java (original)
+++ maven/enforcer/trunk/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/utils/TestEnforcerRuleUtils.java Sun Mar  2 15:41:23 2008
@@ -1,142 +1,142 @@
-package org.apache.maven.plugins.enforcer.utils;
-
-import java.io.File;
-import java.io.IOException;
-import java.util.List;
-
-import org.apache.maven.artifact.resolver.ArtifactNotFoundException;
-import org.apache.maven.artifact.resolver.ArtifactResolutionException;
-import org.apache.maven.enforcer.rule.api.EnforcerRule;
-import org.apache.maven.enforcer.rule.api.EnforcerRuleException;
-import org.apache.maven.enforcer.rule.api.EnforcerRuleHelper;
-import org.apache.maven.model.Model;
-import org.apache.maven.model.Parent;
-import org.apache.maven.plugin.testing.AbstractMojoTestCase;
-import org.apache.maven.plugins.enforcer.EnforcerTestUtils;
-import org.codehaus.plexus.util.StringUtils;
-import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
-
-/**
- * @author <a href="mailto:brianf@apache.org">Brian Fox</a>
- * 
- */
-public class TestEnforcerRuleUtils
-    extends AbstractMojoTestCase
-{
-    public void testCheckIfModelMatches ()
-    {
-
-        EnforcerRuleUtils utils = new EnforcerRuleUtils( EnforcerTestUtils.getHelper() );
-
-        Model model = new Model();
-        model.setArtifactId( "" );
-        model.setGroupId( "" );
-        model.setVersion( "" );
-
-        // should generate internal NPE on the parent, but
-        // will still
-        // compare the raw values
-        assertTrue( utils.checkIfModelMatches( "", "", "", model ) );
-        assertFalse( utils.checkIfModelMatches( "", "", "1.0", model ) );
-
-        // now setup a parent
-        Parent parent = new Parent();
-        parent.setArtifactId( "foo" );
-        parent.setGroupId( "foo-group" );
-        parent.setVersion( "1.0" );
-        model.setParent( parent );
-
-        // should NOT pickup the parent artifact
-        assertFalse( utils.checkIfModelMatches( "foo-group", "foo", "1.0", model ) );
-
-        // check that the version and group are inherited
-        // from the parent.
-        assertTrue( utils.checkIfModelMatches( "foo-group", "", "1.0", model ) );
-
-        // check handling of nulls
-        assertFalse( utils.checkIfModelMatches( "foo-group", null, "1.0", model ) );
-    }
-
-    public void testGetModelsRecursivelyBottom ()
-        throws ArtifactResolutionException, ArtifactNotFoundException, IOException, XmlPullParserException
-    {
-        String path = "target/test-classes/requirePluginVersions/getPomRecursively/b/c";
-
-        StringUtils.replace( path, "/", File.separator );
-
-        File pom = new File( getBasedir() + File.separator + path, "pom.xml" );
-        
-        EnforcerRuleUtils utils = new EnforcerRuleUtils( EnforcerTestUtils.getHelper() );
-        List models = utils.getModelsRecursively( "group", "c", "1.0", pom );
-
-        // there should be 3
-        assertEquals( 3, models.size() );
-
-        // now make sure they are all there
-        Model m = new Model();
-        m.setGroupId( "group" );
-        m.setVersion( "1.0" );
-        m.setArtifactId( "c" );
-
-        models.contains( m );
-
-        m.setArtifactId( "b" );
-        models.contains( m );
-
-        m.setArtifactId( "a" );
-        models.contains( m );
-    }
-
-    public void testGetModelsRecursivelyTop ()
-        throws ArtifactResolutionException, ArtifactNotFoundException, IOException, XmlPullParserException
-    {
-        String path = "target/test-classes/requirePluginVersions/getPomRecursively";
-
-        StringUtils.replace( path, "/", File.separator );
-
-        File pom = new File( getBasedir() + File.separator + path, "pom.xml" );
-
-        EnforcerRuleUtils utils = new EnforcerRuleUtils( EnforcerTestUtils.getHelper() );
-        
-        List models = utils.getModelsRecursively( "group", "a", "1.0", pom );
-
-        // there should be 1
-        assertEquals( 1, models.size() );
-
-        // now make sure they are all there
-        Model m = new Model();
-        m.setGroupId( "group" );
-        m.setVersion( "1.0" );
-        m.setArtifactId( "a" );
-
-        models.contains( m );
-    }
-    
-    /**
-     * Simpler wrapper to execute and deal with the expected
-     * result.
-     * 
-     * @param rule
-     * @param helper
-     * @param shouldFail
-     */
-    public static void execute( EnforcerRule rule, EnforcerRuleHelper helper, boolean shouldFail )
-    {
-        try
-        {
-            rule.execute( helper );
-            if ( shouldFail )
-            {
-                fail( "Exception expected." );
-            }
-        }
-        catch ( EnforcerRuleException e )
-        {
-            if ( !shouldFail )
-            {
-                fail( "No Exception expected:" + e.getLocalizedMessage() );
-            }
-            helper.getLog().debug(e.getMessage());
-        }
-    }
-}
+package org.apache.maven.plugins.enforcer.utils;
+
+import java.io.File;
+import java.io.IOException;
+import java.util.List;
+
+import org.apache.maven.artifact.resolver.ArtifactNotFoundException;
+import org.apache.maven.artifact.resolver.ArtifactResolutionException;
+import org.apache.maven.enforcer.rule.api.EnforcerRule;
+import org.apache.maven.enforcer.rule.api.EnforcerRuleException;
+import org.apache.maven.enforcer.rule.api.EnforcerRuleHelper;
+import org.apache.maven.model.Model;
+import org.apache.maven.model.Parent;
+import org.apache.maven.plugin.testing.AbstractMojoTestCase;
+import org.apache.maven.plugins.enforcer.EnforcerTestUtils;
+import org.codehaus.plexus.util.StringUtils;
+import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
+
+/**
+ * @author <a href="mailto:brianf@apache.org">Brian Fox</a>
+ * 
+ */
+public class TestEnforcerRuleUtils
+    extends AbstractMojoTestCase
+{
+    public void testCheckIfModelMatches ()
+    {
+
+        EnforcerRuleUtils utils = new EnforcerRuleUtils( EnforcerTestUtils.getHelper() );
+
+        Model model = new Model();
+        model.setArtifactId( "" );
+        model.setGroupId( "" );
+        model.setVersion( "" );
+
+        // should generate internal NPE on the parent, but
+        // will still
+        // compare the raw values
+        assertTrue( utils.checkIfModelMatches( "", "", "", model ) );
+        assertFalse( utils.checkIfModelMatches( "", "", "1.0", model ) );
+
+        // now setup a parent
+        Parent parent = new Parent();
+        parent.setArtifactId( "foo" );
+        parent.setGroupId( "foo-group" );
+        parent.setVersion( "1.0" );
+        model.setParent( parent );
+
+        // should NOT pickup the parent artifact
+        assertFalse( utils.checkIfModelMatches( "foo-group", "foo", "1.0", model ) );
+
+        // check that the version and group are inherited
+        // from the parent.
+        assertTrue( utils.checkIfModelMatches( "foo-group", "", "1.0", model ) );
+
+        // check handling of nulls
+        assertFalse( utils.checkIfModelMatches( "foo-group", null, "1.0", model ) );
+    }
+
+    public void testGetModelsRecursivelyBottom ()
+        throws ArtifactResolutionException, ArtifactNotFoundException, IOException, XmlPullParserException
+    {
+        String path = "target/test-classes/requirePluginVersions/getPomRecursively/b/c";
+
+        StringUtils.replace( path, "/", File.separator );
+
+        File pom = new File( getBasedir() + File.separator + path, "pom.xml" );
+        
+        EnforcerRuleUtils utils = new EnforcerRuleUtils( EnforcerTestUtils.getHelper() );
+        List models = utils.getModelsRecursively( "group", "c", "1.0", pom );
+
+        // there should be 3
+        assertEquals( 3, models.size() );
+
+        // now make sure they are all there
+        Model m = new Model();
+        m.setGroupId( "group" );
+        m.setVersion( "1.0" );
+        m.setArtifactId( "c" );
+
+        models.contains( m );
+
+        m.setArtifactId( "b" );
+        models.contains( m );
+
+        m.setArtifactId( "a" );
+        models.contains( m );
+    }
+
+    public void testGetModelsRecursivelyTop ()
+        throws ArtifactResolutionException, ArtifactNotFoundException, IOException, XmlPullParserException
+    {
+        String path = "target/test-classes/requirePluginVersions/getPomRecursively";
+
+        StringUtils.replace( path, "/", File.separator );
+
+        File pom = new File( getBasedir() + File.separator + path, "pom.xml" );
+
+        EnforcerRuleUtils utils = new EnforcerRuleUtils( EnforcerTestUtils.getHelper() );
+        
+        List models = utils.getModelsRecursively( "group", "a", "1.0", pom );
+
+        // there should be 1
+        assertEquals( 1, models.size() );
+
+        // now make sure they are all there
+        Model m = new Model();
+        m.setGroupId( "group" );
+        m.setVersion( "1.0" );
+        m.setArtifactId( "a" );
+
+        models.contains( m );
+    }
+    
+    /**
+     * Simpler wrapper to execute and deal with the expected
+     * result.
+     * 
+     * @param rule
+     * @param helper
+     * @param shouldFail
+     */
+    public static void execute( EnforcerRule rule, EnforcerRuleHelper helper, boolean shouldFail )
+    {
+        try
+        {
+            rule.execute( helper );
+            if ( shouldFail )
+            {
+                fail( "Exception expected." );
+            }
+        }
+        catch ( EnforcerRuleException e )
+        {
+            if ( !shouldFail )
+            {
+                fail( "No Exception expected:" + e.getLocalizedMessage() );
+            }
+            helper.getLog().debug(e.getMessage());
+        }
+    }
+}

Propchange: maven/enforcer/trunk/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/utils/TestEnforcerRuleUtils.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: maven/enforcer/trunk/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/utils/TestMockEnforcerExpressionEvaluator.java
URL: http://svn.apache.org/viewvc/maven/enforcer/trunk/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/utils/TestMockEnforcerExpressionEvaluator.java?rev=632882&r1=632881&r2=632882&view=diff
==============================================================================
--- maven/enforcer/trunk/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/utils/TestMockEnforcerExpressionEvaluator.java (original)
+++ maven/enforcer/trunk/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/utils/TestMockEnforcerExpressionEvaluator.java Sun Mar  2 15:41:23 2008
@@ -1,41 +1,41 @@
-package org.apache.maven.plugins.enforcer.utils;
-
-import junit.framework.TestCase;
-
-import org.apache.maven.execution.MavenSession;
-import org.apache.maven.plugins.enforcer.EnforcerExpressionEvaluator;
-import org.apache.maven.plugins.enforcer.EnforcerTestUtils;
-import org.apache.maven.plugins.enforcer.MockPathTranslator;
-import org.apache.maven.plugins.enforcer.MockProject;
-import org.codehaus.plexus.component.configurator.expression.ExpressionEvaluationException;
-
-public class TestMockEnforcerExpressionEvaluator
-    extends TestCase
-{
-
-    public void testEvaluate()
-    {
-        MavenSession session = EnforcerTestUtils.getMavenSession();
-
-        EnforcerExpressionEvaluator ev =
-            new MockEnforcerExpressionEvaluator( session, new MockPathTranslator(), new MockProject() );
-        assertMatch( ev, "SNAPSHOT" );
-        assertMatch( ev, "RELEASE" );
-        assertMatch( ev, "SNAPSHOT" );
-        assertMatch( ev, "LATEST" );
-        assertMatch( ev, "1.0" );
-    }
-
-    public void assertMatch( EnforcerExpressionEvaluator ev, String exp )
-    {
-        // the mock enforcer should return the name of the expression as the value.
-        try
-        {
-            assertEquals( exp, ev.evaluate( "${" + exp + "}") );
-        }
-        catch ( ExpressionEvaluationException e )
-        {
-            fail(e.getLocalizedMessage());
-        }
-    }
-}
+package org.apache.maven.plugins.enforcer.utils;
+
+import junit.framework.TestCase;
+
+import org.apache.maven.execution.MavenSession;
+import org.apache.maven.plugins.enforcer.EnforcerExpressionEvaluator;
+import org.apache.maven.plugins.enforcer.EnforcerTestUtils;
+import org.apache.maven.plugins.enforcer.MockPathTranslator;
+import org.apache.maven.plugins.enforcer.MockProject;
+import org.codehaus.plexus.component.configurator.expression.ExpressionEvaluationException;
+
+public class TestMockEnforcerExpressionEvaluator
+    extends TestCase
+{
+
+    public void testEvaluate()
+    {
+        MavenSession session = EnforcerTestUtils.getMavenSession();
+
+        EnforcerExpressionEvaluator ev =
+            new MockEnforcerExpressionEvaluator( session, new MockPathTranslator(), new MockProject() );
+        assertMatch( ev, "SNAPSHOT" );
+        assertMatch( ev, "RELEASE" );
+        assertMatch( ev, "SNAPSHOT" );
+        assertMatch( ev, "LATEST" );
+        assertMatch( ev, "1.0" );
+    }
+
+    public void assertMatch( EnforcerExpressionEvaluator ev, String exp )
+    {
+        // the mock enforcer should return the name of the expression as the value.
+        try
+        {
+            assertEquals( exp, ev.evaluate( "${" + exp + "}") );
+        }
+        catch ( ExpressionEvaluationException e )
+        {
+            fail(e.getLocalizedMessage());
+        }
+    }
+}

Propchange: maven/enforcer/trunk/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/utils/TestMockEnforcerExpressionEvaluator.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: maven/enforcer/trunk/enforcer-rules/src/test/resources/requirePluginVersions/checkPluginPropertyVersion/pom.xml
URL: http://svn.apache.org/viewvc/maven/enforcer/trunk/enforcer-rules/src/test/resources/requirePluginVersions/checkPluginPropertyVersion/pom.xml?rev=632882&r1=632881&r2=632882&view=diff
==============================================================================
--- maven/enforcer/trunk/enforcer-rules/src/test/resources/requirePluginVersions/checkPluginPropertyVersion/pom.xml (original)
+++ maven/enforcer/trunk/enforcer-rules/src/test/resources/requirePluginVersions/checkPluginPropertyVersion/pom.xml Sun Mar  2 15:41:23 2008
@@ -1,53 +1,53 @@
-<project>
-    <modelVersion>4.0.0</modelVersion>
-    <artifactId>a</artifactId>
-    <groupId>group</groupId>
-    <version>1.0</version>
-    <properties>
-        <my.version>2.2-SNAPSHOT</my.version>
-        <my.release>RELEASE</my.release>
-        <my.latest>LATEST</my.latest>
-        <my.snap>SNAPSHOT</my.snap>
-    </properties>
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-install-plugin</artifactId>
-                <version>${my.latest}</version>
-            </plugin>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-clean-plugin</artifactId>
-                <version>${my.release}</version>
-            </plugin>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-jar-plugin</artifactId>
-                <version>${my.version}</version>
-            </plugin>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-enforcer-plugin</artifactId>
-                <version>1.0-${my.snap}</version>
-                <executions>
-                    <execution>
-                        <goals>
-                            <goal>enforce</goal>
-                        </goals>
-                        <configuration>
-                            <rules>
-                                <requirePluginVersions>
-                                    <additionalPlugins>
-                                        <additionalPlugin>org.apache.maven.plugins:maven-enforcer-plugin</additionalPlugin>
-
-                                    </additionalPlugins>
-                                </requirePluginVersions>
-                            </rules>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
-        </plugins>
-    </build>
+<project>
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>a</artifactId>
+    <groupId>group</groupId>
+    <version>1.0</version>
+    <properties>
+        <my.version>2.2-SNAPSHOT</my.version>
+        <my.release>RELEASE</my.release>
+        <my.latest>LATEST</my.latest>
+        <my.snap>SNAPSHOT</my.snap>
+    </properties>
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-install-plugin</artifactId>
+                <version>${my.latest}</version>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-clean-plugin</artifactId>
+                <version>${my.release}</version>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-jar-plugin</artifactId>
+                <version>${my.version}</version>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-enforcer-plugin</artifactId>
+                <version>1.0-${my.snap}</version>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>enforce</goal>
+                        </goals>
+                        <configuration>
+                            <rules>
+                                <requirePluginVersions>
+                                    <additionalPlugins>
+                                        <additionalPlugin>org.apache.maven.plugins:maven-enforcer-plugin</additionalPlugin>
+
+                                    </additionalPlugins>
+                                </requirePluginVersions>
+                            </rules>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
 </project>

Propchange: maven/enforcer/trunk/enforcer-rules/src/test/resources/requirePluginVersions/checkPluginPropertyVersion/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: maven/enforcer/trunk/enforcer-rules/src/test/resources/requirePluginVersions/checkPluginVersionProfile/pom.xml
URL: http://svn.apache.org/viewvc/maven/enforcer/trunk/enforcer-rules/src/test/resources/requirePluginVersions/checkPluginVersionProfile/pom.xml?rev=632882&r1=632881&r2=632882&view=diff
==============================================================================
--- maven/enforcer/trunk/enforcer-rules/src/test/resources/requirePluginVersions/checkPluginVersionProfile/pom.xml (original)
+++ maven/enforcer/trunk/enforcer-rules/src/test/resources/requirePluginVersions/checkPluginVersionProfile/pom.xml Sun Mar  2 15:41:23 2008
@@ -1,55 +1,55 @@
-<project>
-    <modelVersion>4.0.0</modelVersion>
-    <artifactId>a</artifactId>
-    <groupId>group</groupId>
-    <version>1.0</version>
-    <properties>
-        <my.version>2.2-SNAPSHOT</my.version>
-        <my.release>RELEASE</my.release>
-        <my.latest>LATEST</my.latest>
-        <my.snap>SNAPSHOT</my.snap>
-    </properties>
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-enforcer-plugin</artifactId>
-                <version>1.0-${my.snap}</version>
-                <executions>
-                    <execution>
-                        <goals>
-                            <goal>enforce</goal>
-                        </goals>
-                        <configuration>
-                            <rules>
-                                <requirePluginVersions>
-                                  <phases>none</phases>
-                                </requirePluginVersions>
-                            </rules>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
-        </plugins>
-    </build>
-    <profiles>
-        <profile>
-            <id>prof</id>
-            <build>
-                <plugins>
-                    <plugin>
-                        <groupId>org.apache.maven.plugins</groupId>
-                        <artifactId>maven-site-plugin</artifactId>
-                        <version>RELEASE</version>
-                        <executions>
-                          <execution>
-                            <goals><goal>site</goal></goals>
-                          </execution>
-                          <phase>validate</phase>
-                        </executions>
-                    </plugin>
-                </plugins>
-            </build>
-        </profile> 
-    </profiles>
+<project>
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>a</artifactId>
+    <groupId>group</groupId>
+    <version>1.0</version>
+    <properties>
+        <my.version>2.2-SNAPSHOT</my.version>
+        <my.release>RELEASE</my.release>
+        <my.latest>LATEST</my.latest>
+        <my.snap>SNAPSHOT</my.snap>
+    </properties>
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-enforcer-plugin</artifactId>
+                <version>1.0-${my.snap}</version>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>enforce</goal>
+                        </goals>
+                        <configuration>
+                            <rules>
+                                <requirePluginVersions>
+                                  <phases>none</phases>
+                                </requirePluginVersions>
+                            </rules>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+    <profiles>
+        <profile>
+            <id>prof</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-site-plugin</artifactId>
+                        <version>RELEASE</version>
+                        <executions>
+                          <execution>
+                            <goals><goal>site</goal></goals>
+                          </execution>
+                          <phase>validate</phase>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile> 
+    </profiles>
 </project>

Propchange: maven/enforcer/trunk/enforcer-rules/src/test/resources/requirePluginVersions/checkPluginVersionProfile/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: maven/enforcer/trunk/enforcer-rules/src/test/resources/requirePluginVersions/getPomRecursively/b/c/pom.xml
URL: http://svn.apache.org/viewvc/maven/enforcer/trunk/enforcer-rules/src/test/resources/requirePluginVersions/getPomRecursively/b/c/pom.xml?rev=632882&r1=632881&r2=632882&view=diff
==============================================================================
--- maven/enforcer/trunk/enforcer-rules/src/test/resources/requirePluginVersions/getPomRecursively/b/c/pom.xml (original)
+++ maven/enforcer/trunk/enforcer-rules/src/test/resources/requirePluginVersions/getPomRecursively/b/c/pom.xml Sun Mar  2 15:41:23 2008
@@ -1,18 +1,18 @@
-<project>
-	<parent>
-		<artifactId>b</artifactId>
-		<groupId>group</groupId>
-		<version>1.0</version>
-	</parent>
-	<artifactId>c</artifactId>
-	<build>
-		<pluginManagement>
-			<plugins>
-				<plugin>
-					<groupId>org.apache.maven.plugins</groupId>
-					<artifactId>maven-deploy-plugin</artifactId>
-				</plugin>
-			</plugins>
-		</pluginManagement>
-	</build>
+<project>
+	<parent>
+		<artifactId>b</artifactId>
+		<groupId>group</groupId>
+		<version>1.0</version>
+	</parent>
+	<artifactId>c</artifactId>
+	<build>
+		<pluginManagement>
+			<plugins>
+				<plugin>
+					<groupId>org.apache.maven.plugins</groupId>
+					<artifactId>maven-deploy-plugin</artifactId>
+				</plugin>
+			</plugins>
+		</pluginManagement>
+	</build>
 </project>

Propchange: maven/enforcer/trunk/enforcer-rules/src/test/resources/requirePluginVersions/getPomRecursively/b/c/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: maven/enforcer/trunk/enforcer-rules/src/test/resources/requirePluginVersions/getPomRecursively/b/pom.xml
URL: http://svn.apache.org/viewvc/maven/enforcer/trunk/enforcer-rules/src/test/resources/requirePluginVersions/getPomRecursively/b/pom.xml?rev=632882&r1=632881&r2=632882&view=diff
==============================================================================
--- maven/enforcer/trunk/enforcer-rules/src/test/resources/requirePluginVersions/getPomRecursively/b/pom.xml (original)
+++ maven/enforcer/trunk/enforcer-rules/src/test/resources/requirePluginVersions/getPomRecursively/b/pom.xml Sun Mar  2 15:41:23 2008
@@ -1,16 +1,16 @@
-<project>
-	<parent>
-		<artifactId>a</artifactId>
-		<groupId>group</groupId>
-		<version>1.0</version>
-	</parent>
-	<artifactId>b</artifactId>
-	<build>
-		<plugins>
-			<plugin>
-				<groupId>org.apache.maven.plugins</groupId>
-				<artifactId>maven-clean-plugin</artifactId>
-			</plugin>
-		</plugins>
-	</build>
+<project>
+	<parent>
+		<artifactId>a</artifactId>
+		<groupId>group</groupId>
+		<version>1.0</version>
+	</parent>
+	<artifactId>b</artifactId>
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-clean-plugin</artifactId>
+			</plugin>
+		</plugins>
+	</build>
 </project>

Propchange: maven/enforcer/trunk/enforcer-rules/src/test/resources/requirePluginVersions/getPomRecursively/b/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: maven/enforcer/trunk/enforcer-rules/src/test/resources/requirePluginVersions/getPomRecursively/pom.xml
URL: http://svn.apache.org/viewvc/maven/enforcer/trunk/enforcer-rules/src/test/resources/requirePluginVersions/getPomRecursively/pom.xml?rev=632882&r1=632881&r2=632882&view=diff
==============================================================================
--- maven/enforcer/trunk/enforcer-rules/src/test/resources/requirePluginVersions/getPomRecursively/pom.xml (original)
+++ maven/enforcer/trunk/enforcer-rules/src/test/resources/requirePluginVersions/getPomRecursively/pom.xml Sun Mar  2 15:41:23 2008
@@ -1,13 +1,13 @@
-<project>
-	<artifactId>a</artifactId>
-	<groupId>group</groupId>
-	<version>1.0</version>
-	<build>
-		<plugins>
-			<plugin>
-				<groupId>org.apache.maven.plugins</groupId>
-				<artifactId>maven-dependency-plugin</artifactId>
-			</plugin>
-		</plugins>
-	</build>
+<project>
+	<artifactId>a</artifactId>
+	<groupId>group</groupId>
+	<version>1.0</version>
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-dependency-plugin</artifactId>
+			</plugin>
+		</plugins>
+	</build>
 </project>

Propchange: maven/enforcer/trunk/enforcer-rules/src/test/resources/requirePluginVersions/getPomRecursively/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: maven/enforcer/trunk/pom.xml
URL: http://svn.apache.org/viewvc/maven/enforcer/trunk/pom.xml?rev=632882&r1=632881&r2=632882&view=diff
==============================================================================
--- maven/enforcer/trunk/pom.xml (original)
+++ maven/enforcer/trunk/pom.xml Sun Mar  2 15:41:23 2008
@@ -1,262 +1,262 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-  <modelVersion>4.0.0</modelVersion>
-  <parent>
-    <artifactId>maven-parent</artifactId>
-    <groupId>org.apache.maven</groupId>
-    <version>6</version>
-    <relativePath>../pom/maven/pom.xml</relativePath>
-  </parent>
-  <groupId>org.apache.maven.enforcer</groupId>
-  <artifactId>enforcer</artifactId>
-  <packaging>pom</packaging>
-  <name>Enforcer Parent</name>
-  <version>1-SNAPSHOT</version>
-  <description>Enforcer is a build rule execution framework.</description>
-  <url>http://maven.apache.org/enforcer</url>
-  <issueManagement>
-    <system>jira</system>
-    <url>http://jira.codehaus.org/browse/MENFORCER</url>
-  </issueManagement>
-  <inceptionYear>2006</inceptionYear>
-  	<licenses>
-		<license>
-			<name>Apache License 2.0</name>
-			<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
-			<distribution>repo</distribution>
-		</license>
-	</licenses>
-  <developers>
-	<developer>
-		<id>brianf</id>
-		<name>Brian Fox</name>
-		<email>brianf@apache.org</email>
-		<roles>
-			<role>Lead Developer</role>
-		</roles>
-		<timezone>5</timezone>
-	</developer>
-	</developers>
-   <mailingLists>
-    <mailingList>
-      <name>Maven User List</name>
-      <subscribe>users-subscribe@maven.apache.org</subscribe>
-      <unsubscribe>users-unsubscribe@maven.apache.org</unsubscribe>
-      <post>users@maven.apache.org</post>
-      <archive>http://mail-archives.apache.org/mod_mbox/maven-users</archive>
-      <otherArchives>
-        <otherArchive>http://www.mail-archive.com/users@maven.apache.org/</otherArchive>
-        <otherArchive>http://www.nabble.com/Maven---Users-f178.html</otherArchive>
-      </otherArchives>
-    </mailingList>
-    <mailingList>
-      <name>Maven Developer List</name>
-      <subscribe>dev-subscribe@maven.apache.org</subscribe>
-      <unsubscribe>dev-unsubscribe@maven.apache.org</unsubscribe>
-      <post>dev@maven.apache.org</post>
-      <archive>http://mail-archives.apache.org/mod_mbox/maven-dev</archive>
-    </mailingList>
-    <mailingList>
-      <name>Maven Commits List</name>
-      <subscribe>commits-subscribe@maven.apache.org</subscribe>
-      <unsubscribe>commits-unsubscribe@maven.apache.org</unsubscribe>
-      <post>commits@maven.apache.org</post>
-      <archive>http://mail-archives.apache.org/mod_mbox/maven-dev</archive>
-    </mailingList>
-    <mailingList>
-      <name>Maven Announcements List</name>
-      <post>announce@maven.apache.org</post>
-      <subscribe>announce-subscribe@maven.apache.org</subscribe>
-      <unsubscribe>announce-unsubscribe@maven.apache.org</unsubscribe>
-      <archive>http://mail-archives.apache.org/mod_mbox/maven-announce/</archive>
-    </mailingList>
-    <mailingList>
-      <name>Maven Issues List</name>
-      <post>issues@maven.apache.org</post>
-      <subscribe>issues-subscribe@maven.apache.org</subscribe>
-      <unsubscribe>issues-unsubscribe@maven.apache.org</unsubscribe>
-      <archive>http://mail-archives.apache.org/mod_mbox/maven-issues/</archive>
-    </mailingList>
-    <mailingList>
-      <name>Maven Notifications List</name>
-      <post>notifications@maven.apache.org</post>
-      <subscribe>notifications-subscribe@maven.apache.org</subscribe>
-      <unsubscribe>notifications-unsubscribe@maven.apache.org</unsubscribe>
-      <archive>http://mail-archives.apache.org/mod_mbox/maven-notifications/</archive>
-    </mailingList>
-  </mailingLists>
-  <scm>
-    <connection>scm:svn:http://svn.apache.org/repos/asf/maven/enforcer/trunk/</connection>
-    <developerConnection>scm:svn:https://svn.apache.org/repos/asf/maven/enforcer/trunk/</developerConnection>
-    <url>http://svn.apache.org/viewcvs.cgi/maven/enforcer/trunk</url>
-  </scm>
-  
-  <properties>
-    <api.version>1.0-SNAPSHOT</api.version>
-	<rules.version>1.0-SNAPSHOT</rules.version>
-	<maven.version>2.0.6</maven.version>
-  </properties>
-  <build>
-    <resources>
-			<!-- Include super-pom defined main/resources
-			Removing this section will break the build.
-			Since we have defined a new build/resources
-			section for the Apache process LICENSE and NOTICE
-			files, this original default section is now
-			required. -->
-      <resource>
-		<directory>${basedir}/src/main/resources</directory>
-	  </resource>
-    </resources>
-    <pluginManagement>
-    <plugins>
-      <plugin>    
-        <artifactId>maven-install-plugin</artifactId>
-        <version>2.2</version>
-      </plugin>
-      <plugin>    
-        <artifactId>maven-compiler-plugin</artifactId>
-        <version>2.0.2</version>
-		<configuration>
-          <source>1.4</source>
-          <target>1.4</target>
-        </configuration>
-      </plugin>
-      <plugin>    
-        <artifactId>maven-deploy-plugin</artifactId>
-        <version>2.3</version>
-      </plugin>
-      <plugin>    
-        <artifactId>maven-jar-plugin</artifactId>
-        <version>2.1</version>
-      </plugin>
-      <plugin>    
-        <artifactId>maven-surefire-plugin</artifactId>
-        <version>2.3</version>
-      </plugin>
-      <plugin>    
-        <artifactId>maven-plugin-plugin</artifactId>
-        <version>2.3</version>
-      </plugin>
-      <plugin>    
-        <artifactId>maven-resources-plugin</artifactId>
-        <version>2.2</version>
-      </plugin>
-      <plugin>
-        <artifactId>maven-release-plugin</artifactId>
-        <configuration>
-          <tagBase>https://svn.apache.org/repos/asf/maven/enforcer/tags</tagBase>
-        </configuration>
-      </plugin>
-      <plugin>
-        <artifactId>maven-site-plugin</artifactId>
-        <version>2.0-beta-5</version>
-      </plugin>
-    </plugins>
-  </pluginManagement>
-  </build>
-    <distributionManagement>
-    <site>
-      <id>apache.website</id>
-      <url>scp://people.apache.org/www/maven.apache.org/enforcer/</url>
-    </site>
-  </distributionManagement>
-  
-  	<dependencyManagement>
-	  <dependencies>
-	     <dependency>
-            <groupId>org.apache.maven.enforcer</groupId>
-            <artifactId>enforcer-api</artifactId>
-			<version>${api.version}</version>
-        </dependency>	
-        <dependency>
-            <groupId>org.apache.maven.enforcer</groupId>
-            <artifactId>enforcer-rules</artifactId>
-			<version>${rules.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.maven.enforcer</groupId>
-            <artifactId>enforcer-rules</artifactId>
-            <version>${rules.version}</version>
-            <classifier>tests</classifier>
-            <scope>test</scope>
-        </dependency>	
-	  	<dependency>
-			<groupId>org.apache.maven</groupId>
-			<artifactId>maven-artifact</artifactId>
-			<version>${maven.version}</version>
-		</dependency>
-		<dependency>
-			<groupId>org.apache.maven</groupId>
-			<artifactId>maven-plugin-api</artifactId>
-			<version>${maven.version}</version>
-		</dependency>
-		<dependency>
-			<groupId>org.apache.maven</groupId>
-			<artifactId>maven-project</artifactId>
-			<version>${maven.version}</version>
-		</dependency>
-		<dependency>
-			<groupId>org.apache.maven</groupId>
-			<artifactId>maven-core</artifactId>
-			<version>${maven.version}</version>
-		</dependency>
-		<dependency>
-			<groupId>org.codehaus.plexus</groupId>
-			<artifactId>plexus-utils</artifactId>
-			<version>1.4.6</version>
-		</dependency>
-	    <dependency>
-		  <groupId>junit</groupId>
-		  <artifactId>junit</artifactId>
-		  <version>3.8.2</version>
-		  <scope>test</scope>
-		</dependency>
-        <dependency>
-          <groupId>commons-lang</groupId>
-          <artifactId>commons-lang</artifactId>
-          <version>2.3</version>
-        </dependency>
-		<dependency>
-			<groupId>org.apache.maven.shared</groupId>
-			<artifactId>maven-plugin-testing-harness</artifactId>
-			<scope>test</scope>
-			<version>1.1</version>
-		</dependency>		
-	  </dependencies>
-	</dependencyManagement>
-    <reporting>
-      <plugins>
-        <plugin>
-          <groupId>org.codehaus.mojo</groupId>
-          <artifactId>cobertura-maven-plugin</artifactId>
-          <version>2.0</version>
-        </plugin>
-      </plugins>
-    </reporting>
-    <modules>
-	    <module>enforcer-api</module>
-		<module>enforcer-rules</module>
-        <module>maven-enforcer-plugin</module>
-   </modules>
-  
-</project>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <artifactId>maven-parent</artifactId>
+    <groupId>org.apache.maven</groupId>
+    <version>6</version>
+    <relativePath>../pom/maven/pom.xml</relativePath>
+  </parent>
+  <groupId>org.apache.maven.enforcer</groupId>
+  <artifactId>enforcer</artifactId>
+  <packaging>pom</packaging>
+  <name>Enforcer Parent</name>
+  <version>1-SNAPSHOT</version>
+  <description>Enforcer is a build rule execution framework.</description>
+  <url>http://maven.apache.org/enforcer</url>
+  <issueManagement>
+    <system>jira</system>
+    <url>http://jira.codehaus.org/browse/MENFORCER</url>
+  </issueManagement>
+  <inceptionYear>2006</inceptionYear>
+  	<licenses>
+		<license>
+			<name>Apache License 2.0</name>
+			<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+			<distribution>repo</distribution>
+		</license>
+	</licenses>
+  <developers>
+	<developer>
+		<id>brianf</id>
+		<name>Brian Fox</name>
+		<email>brianf@apache.org</email>
+		<roles>
+			<role>Lead Developer</role>
+		</roles>
+		<timezone>5</timezone>
+	</developer>
+	</developers>
+   <mailingLists>
+    <mailingList>
+      <name>Maven User List</name>
+      <subscribe>users-subscribe@maven.apache.org</subscribe>
+      <unsubscribe>users-unsubscribe@maven.apache.org</unsubscribe>
+      <post>users@maven.apache.org</post>
+      <archive>http://mail-archives.apache.org/mod_mbox/maven-users</archive>
+      <otherArchives>
+        <otherArchive>http://www.mail-archive.com/users@maven.apache.org/</otherArchive>
+        <otherArchive>http://www.nabble.com/Maven---Users-f178.html</otherArchive>
+      </otherArchives>
+    </mailingList>
+    <mailingList>
+      <name>Maven Developer List</name>
+      <subscribe>dev-subscribe@maven.apache.org</subscribe>
+      <unsubscribe>dev-unsubscribe@maven.apache.org</unsubscribe>
+      <post>dev@maven.apache.org</post>
+      <archive>http://mail-archives.apache.org/mod_mbox/maven-dev</archive>
+    </mailingList>
+    <mailingList>
+      <name>Maven Commits List</name>
+      <subscribe>commits-subscribe@maven.apache.org</subscribe>
+      <unsubscribe>commits-unsubscribe@maven.apache.org</unsubscribe>
+      <post>commits@maven.apache.org</post>
+      <archive>http://mail-archives.apache.org/mod_mbox/maven-dev</archive>
+    </mailingList>
+    <mailingList>
+      <name>Maven Announcements List</name>
+      <post>announce@maven.apache.org</post>
+      <subscribe>announce-subscribe@maven.apache.org</subscribe>
+      <unsubscribe>announce-unsubscribe@maven.apache.org</unsubscribe>
+      <archive>http://mail-archives.apache.org/mod_mbox/maven-announce/</archive>
+    </mailingList>
+    <mailingList>
+      <name>Maven Issues List</name>
+      <post>issues@maven.apache.org</post>
+      <subscribe>issues-subscribe@maven.apache.org</subscribe>
+      <unsubscribe>issues-unsubscribe@maven.apache.org</unsubscribe>
+      <archive>http://mail-archives.apache.org/mod_mbox/maven-issues/</archive>
+    </mailingList>
+    <mailingList>
+      <name>Maven Notifications List</name>
+      <post>notifications@maven.apache.org</post>
+      <subscribe>notifications-subscribe@maven.apache.org</subscribe>
+      <unsubscribe>notifications-unsubscribe@maven.apache.org</unsubscribe>
+      <archive>http://mail-archives.apache.org/mod_mbox/maven-notifications/</archive>
+    </mailingList>
+  </mailingLists>
+  <scm>
+    <connection>scm:svn:http://svn.apache.org/repos/asf/maven/enforcer/trunk/</connection>
+    <developerConnection>scm:svn:https://svn.apache.org/repos/asf/maven/enforcer/trunk/</developerConnection>
+    <url>http://svn.apache.org/viewcvs.cgi/maven/enforcer/trunk</url>
+  </scm>
+  
+  <properties>
+    <api.version>1.0-SNAPSHOT</api.version>
+	<rules.version>1.0-SNAPSHOT</rules.version>
+	<maven.version>2.0.6</maven.version>
+  </properties>
+  <build>
+    <resources>
+			<!-- Include super-pom defined main/resources
+			Removing this section will break the build.
+			Since we have defined a new build/resources
+			section for the Apache process LICENSE and NOTICE
+			files, this original default section is now
+			required. -->
+      <resource>
+		<directory>${basedir}/src/main/resources</directory>
+	  </resource>
+    </resources>
+    <pluginManagement>
+    <plugins>
+      <plugin>    
+        <artifactId>maven-install-plugin</artifactId>
+        <version>2.2</version>
+      </plugin>
+      <plugin>    
+        <artifactId>maven-compiler-plugin</artifactId>
+        <version>2.0.2</version>
+		<configuration>
+          <source>1.4</source>
+          <target>1.4</target>
+        </configuration>
+      </plugin>
+      <plugin>    
+        <artifactId>maven-deploy-plugin</artifactId>
+        <version>2.3</version>
+      </plugin>
+      <plugin>    
+        <artifactId>maven-jar-plugin</artifactId>
+        <version>2.1</version>
+      </plugin>
+      <plugin>    
+        <artifactId>maven-surefire-plugin</artifactId>
+        <version>2.3</version>
+      </plugin>
+      <plugin>    
+        <artifactId>maven-plugin-plugin</artifactId>
+        <version>2.3</version>
+      </plugin>
+      <plugin>    
+        <artifactId>maven-resources-plugin</artifactId>
+        <version>2.2</version>
+      </plugin>
+      <plugin>
+        <artifactId>maven-release-plugin</artifactId>
+        <configuration>
+          <tagBase>https://svn.apache.org/repos/asf/maven/enforcer/tags</tagBase>
+        </configuration>
+      </plugin>
+      <plugin>
+        <artifactId>maven-site-plugin</artifactId>
+        <version>2.0-beta-5</version>
+      </plugin>
+    </plugins>
+  </pluginManagement>
+  </build>
+    <distributionManagement>
+    <site>
+      <id>apache.website</id>
+      <url>scp://people.apache.org/www/maven.apache.org/enforcer/</url>
+    </site>
+  </distributionManagement>
+  
+  	<dependencyManagement>
+	  <dependencies>
+	     <dependency>
+            <groupId>org.apache.maven.enforcer</groupId>
+            <artifactId>enforcer-api</artifactId>
+			<version>${api.version}</version>
+        </dependency>	
+        <dependency>
+            <groupId>org.apache.maven.enforcer</groupId>
+            <artifactId>enforcer-rules</artifactId>
+			<version>${rules.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.maven.enforcer</groupId>
+            <artifactId>enforcer-rules</artifactId>
+            <version>${rules.version}</version>
+            <classifier>tests</classifier>
+            <scope>test</scope>
+        </dependency>	
+	  	<dependency>
+			<groupId>org.apache.maven</groupId>
+			<artifactId>maven-artifact</artifactId>
+			<version>${maven.version}</version>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.maven</groupId>
+			<artifactId>maven-plugin-api</artifactId>
+			<version>${maven.version}</version>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.maven</groupId>
+			<artifactId>maven-project</artifactId>
+			<version>${maven.version}</version>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.maven</groupId>
+			<artifactId>maven-core</artifactId>
+			<version>${maven.version}</version>
+		</dependency>
+		<dependency>
+			<groupId>org.codehaus.plexus</groupId>
+			<artifactId>plexus-utils</artifactId>
+			<version>1.4.6</version>
+		</dependency>
+	    <dependency>
+		  <groupId>junit</groupId>
+		  <artifactId>junit</artifactId>
+		  <version>3.8.2</version>
+		  <scope>test</scope>
+		</dependency>
+        <dependency>
+          <groupId>commons-lang</groupId>
+          <artifactId>commons-lang</artifactId>
+          <version>2.3</version>
+        </dependency>
+		<dependency>
+			<groupId>org.apache.maven.shared</groupId>
+			<artifactId>maven-plugin-testing-harness</artifactId>
+			<scope>test</scope>
+			<version>1.1</version>
+		</dependency>		
+	  </dependencies>
+	</dependencyManagement>
+    <reporting>
+      <plugins>
+        <plugin>
+          <groupId>org.codehaus.mojo</groupId>
+          <artifactId>cobertura-maven-plugin</artifactId>
+          <version>2.0</version>
+        </plugin>
+      </plugins>
+    </reporting>
+    <modules>
+	    <module>enforcer-api</module>
+		<module>enforcer-rules</module>
+        <module>maven-enforcer-plugin</module>
+   </modules>
+  
+</project>

Propchange: maven/enforcer/trunk/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: maven/enforcer/trunk/src/site/site.xml
URL: http://svn.apache.org/viewvc/maven/enforcer/trunk/src/site/site.xml?rev=632882&r1=632881&r2=632882&view=diff
==============================================================================
--- maven/enforcer/trunk/src/site/site.xml (original)
+++ maven/enforcer/trunk/src/site/site.xml Sun Mar  2 15:41:23 2008
@@ -1,40 +1,40 @@
-<project name="${project.name}">
-  <!-- TODO: banners, skin, publish date, version should be inherited from Maven itself -->
-  <bannerLeft>
-    <name>${project.name}</name>
-    <src>http://maven.apache.org/images/apache-maven-project-2.png</src>
-    <href>http://maven.apache.org/</href>
-  </bannerLeft>
-  <bannerRight>
-    <src>http://maven.apache.org/images/maven-logo-2.gif</src>
-  </bannerRight>
-  <skin>
-    <groupId>org.apache.maven.skins</groupId>
-    <artifactId>maven-stylus-skin</artifactId>
-  </skin>
-  <publishDate format="dd MMM yyyy" position="left" />
-  <version position="left" />
-  <body>
-    <!-- TODO: Link, head, reports should be inherited -->
-    <!-- TODO: use breadcrumbs more structure, links for links, and inherit subprojects as a menu or not at all -->
-    <links>
-      <item name="Maven 1.x" href="http://maven.apache.org/maven-1.x"/>
-      <item name="Maven 2.x" href="http://maven.apache.org/"/>
-      <item name="Maven 2.x Plugins" href="http://maven.apache.org/plugins/"/>
-      <item name="Continuum" href="http://maven.apache.org/continuum"/>
-      <item name="SCM" href="http://maven.apache.org/scm"/>
-      <item name="Wagon" href="http://maven.apache.org/wagon"/>
-      <item name="JXR" href="http://maven.apache.org/jxr"/>
-      <item name="Doxia" href="http://maven.apache.org/doxia"/>
-    </links>
-    <head>
-      <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
-      </script>
-      <script type="text/javascript">
-        _uacct = "UA-140879-1";
-        urchinTracker();
-      </script>
-    </head>
-    <menu ref="reports" inherit="bottom" />
-  </body>
-</project>
+<project name="${project.name}">
+  <!-- TODO: banners, skin, publish date, version should be inherited from Maven itself -->
+  <bannerLeft>
+    <name>${project.name}</name>
+    <src>http://maven.apache.org/images/apache-maven-project-2.png</src>
+    <href>http://maven.apache.org/</href>
+  </bannerLeft>
+  <bannerRight>
+    <src>http://maven.apache.org/images/maven-logo-2.gif</src>
+  </bannerRight>
+  <skin>
+    <groupId>org.apache.maven.skins</groupId>
+    <artifactId>maven-stylus-skin</artifactId>
+  </skin>
+  <publishDate format="dd MMM yyyy" position="left" />
+  <version position="left" />
+  <body>
+    <!-- TODO: Link, head, reports should be inherited -->
+    <!-- TODO: use breadcrumbs more structure, links for links, and inherit subprojects as a menu or not at all -->
+    <links>
+      <item name="Maven 1.x" href="http://maven.apache.org/maven-1.x"/>
+      <item name="Maven 2.x" href="http://maven.apache.org/"/>
+      <item name="Maven 2.x Plugins" href="http://maven.apache.org/plugins/"/>
+      <item name="Continuum" href="http://maven.apache.org/continuum"/>
+      <item name="SCM" href="http://maven.apache.org/scm"/>
+      <item name="Wagon" href="http://maven.apache.org/wagon"/>
+      <item name="JXR" href="http://maven.apache.org/jxr"/>
+      <item name="Doxia" href="http://maven.apache.org/doxia"/>
+    </links>
+    <head>
+      <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
+      </script>
+      <script type="text/javascript">
+        _uacct = "UA-140879-1";
+        urchinTracker();
+      </script>
+    </head>
+    <menu ref="reports" inherit="bottom" />
+  </body>
+</project>

Propchange: maven/enforcer/trunk/src/site/site.xml
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message