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

sseifert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-parent.git

commit aa670cb74f9093da351e08942a50fdaca63fb0c2
Author: sseifert <sseif...@pro-vision.de>
AuthorDate: Mon Jan 14 18:41:20 2019 +0100

    SLING-8212 Parent: Replace maven-sling-plugin with sling-maven-plugin and 
ban old artifact id
---
 sling-bundle-parent/pom.xml | 22 +++++++++++++++++++---
 sling-parent/pom.xml        |  2 +-
 2 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/sling-bundle-parent/pom.xml b/sling-bundle-parent/pom.xml
index db823a8..9d048d9 100644
--- a/sling-bundle-parent/pom.xml
+++ b/sling-bundle-parent/pom.xml
@@ -43,8 +43,8 @@
 
                 <plugin>
                     <groupId>org.apache.sling</groupId>
-                    <artifactId>maven-sling-plugin</artifactId>
-                    <version>2.3.6</version>
+                    <artifactId>sling-maven-plugin</artifactId>
+                    <version>2.4.0</version>
                 </plugin>
                 <plugin>
                     <groupId>biz.aQute.bnd</groupId>
@@ -162,6 +162,22 @@ Bundle-SCM: 
url=${project.scm.url},connection=${project.scm.connection},develope
                         </configuration>
                     </execution>
                     <execution>
+                        <id>ban-maven-sling-plugin</id>
+                        <goals>
+                            <goal>enforce</goal>
+                        </goals>
+                        <configuration>
+                            <rules>
+                                <bannedPlugins>
+                                    <excludes>
+                                        
<exclude>org.apache.sling:maven-sling-plugin</exclude>
+                                    </excludes>
+                                    <message>Please change all occurences of 
maven-sling-plugin to sling-maven-plugin (plugin was renamed).</message>
+                                  </bannedPlugins>
+                            </rules>
+                        </configuration>
+                    </execution>
+                    <execution>
                         <id>enforce-java</id>
                         <goals>
                             <goal>enforce</goal>
@@ -206,7 +222,7 @@ Bundle-SCM: 
url=${project.scm.url},connection=${project.scm.connection},develope
                 <plugins>
                     <plugin>
                         <groupId>org.apache.sling</groupId>
-                        <artifactId>maven-sling-plugin</artifactId>
+                        <artifactId>sling-maven-plugin</artifactId>
                         <executions>
                             <execution>
                                 <id>install-bundle</id>
diff --git a/sling-parent/pom.xml b/sling-parent/pom.xml
index 4275042..2b2d5cf 100644
--- a/sling-parent/pom.xml
+++ b/sling-parent/pom.xml
@@ -725,7 +725,7 @@
                                                     org.apache.sling
                                                 </groupId>
                                                 <artifactId>
-                                                    maven-sling-plugin
+                                                    sling-maven-plugin
                                                 </artifactId>
                                                 <versionRange>
                                                     [2.1.0,)

Reply via email to