You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kh...@apache.org on 2018/01/07 15:52:10 UTC

[maven-enforcer] 01/01: [MENFORCER-293] Remove deprecated marked ignoreParent from BanDistributionManagement

This is an automated email from the ASF dual-hosted git repository.

khmarbaise pushed a commit to branch MENFORCER-293
in repository https://gitbox.apache.org/repos/asf/maven-enforcer.git

commit 8d6f3e899f2eaaa11960876f2d4329dae03d6c3f
Author: Karl Heinz Marbaise <kh...@apache.org>
AuthorDate: Sun Jan 7 16:51:42 2018 +0100

    [MENFORCER-293] Remove deprecated marked ignoreParent from BanDistributionManagement
---
 .../plugins/enforcer/BanDistributionManagement.java | 21 ---------------------
 .../enforcer/BanDistributionManagementTest.java     |  1 -
 2 files changed, 22 deletions(-)

diff --git a/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/BanDistributionManagement.java b/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/BanDistributionManagement.java
index 6227a36..601b56f 100644
--- a/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/BanDistributionManagement.java
+++ b/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/BanDistributionManagement.java
@@ -39,12 +39,6 @@ public class BanDistributionManagement
 {
 
     /**
-     * If we turn on the <code>ignoreParent</code> the parent will be ignored.
-     * @deprecated
-     */
-    private boolean ignoreParent = true;
-
-    /**
      * Allow using a repository entry in the distributionManagement area.
      */
     private boolean allowRepository = false;
@@ -93,11 +87,6 @@ public class BanDistributionManagement
                 DistributionManagementCheck check = new DistributionManagementCheck( project );
                 check.execute( isAllowRepository(), isAllowSnapshotRepository(), isAllowSite() );
 
-                if ( !isIgnoreParent() )
-                {
-                    logger.warn( "You have configured not to ignore the parent." );
-                    logger.warn( "This configuration is deprecated and will be ignored." );
-                }
             }
         }
         catch ( ExpressionEvaluationException e )
@@ -106,16 +95,6 @@ public class BanDistributionManagement
         }
     }
 
-    public boolean isIgnoreParent()
-    {
-        return ignoreParent;
-    }
-
-    public void setIgnoreParent( boolean ignoreParent )
-    {
-        this.ignoreParent = ignoreParent;
-    }
-
     public boolean isAllowRepository()
     {
         return allowRepository;
diff --git a/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/BanDistributionManagementTest.java b/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/BanDistributionManagementTest.java
index fdc33f7..c1af174 100644
--- a/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/BanDistributionManagementTest.java
+++ b/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/BanDistributionManagementTest.java
@@ -202,7 +202,6 @@ public class BanDistributionManagementTest
         BanDistributionManagement rule =
             setupProjectWithParentDistributionManagement( null, new DeploymentRepository(), null );
 
-        rule.setIgnoreParent( false );
         rule.setAllowSnapshotRepository( true );
 
         rule.execute( helper );

-- 
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <co...@maven.apache.org>.