maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From khmarba...@apache.org
Subject [maven-enforcer] 01/01: [MENFORCER-293] Remove deprecated marked ignoreParent from BanDistributionManagement
Date Sun, 07 Jan 2018 15:52:10 GMT
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 <khmarbaise@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" <commits@maven.apache.org>.

Mime
View raw message