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

davidb pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/sling-slingfeature-maven-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new efca4ae  Rename the attach-feature goal to attach-features
efca4ae is described below

commit efca4ae919cf9a68f4cfb1da1285842698c44df8
Author: David Bosschaert <[email protected]>
AuthorDate: Mon Sep 3 09:57:51 2018 +0100

    Rename the attach-feature goal to attach-features
---
 README.md                                                         | 8 +++++---
 .../java/org/apache/sling/feature/maven/mojos/AttachFeature.java  | 2 +-
 src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml    | 2 +-
 3 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/README.md b/README.md
index d855f59..d894000 100644
--- a/README.md
+++ b/README.md
@@ -13,9 +13,6 @@ Maven Plugin for OSGi Applications
 ### generate-resources
 This goal processed feature files to substitute Maven variable placeholders in 
feature files such as `${project.groupId}`, `${project.artifactId}` and 
`${project.version}`
 
-### attach-feature
-Attach feature files to the projects produced artifacts
-
 ### aggregate-features
 Produce an aggregated feature from a list of features.
 
@@ -86,3 +83,8 @@ section of the plugin configuration:
     </dependencies>
   </plugin>  
 ```
+
+### attach-features
+Attach feature files found in the project to the projects produced artifacts. 
This includes features 
+found in `src/main/features` as well as features produce with the 
`aggregate-features` goal.
+
diff --git 
a/src/main/java/org/apache/sling/feature/maven/mojos/AttachFeature.java 
b/src/main/java/org/apache/sling/feature/maven/mojos/AttachFeature.java
index 0b34382..2b045b3 100644
--- a/src/main/java/org/apache/sling/feature/maven/mojos/AttachFeature.java
+++ b/src/main/java/org/apache/sling/feature/maven/mojos/AttachFeature.java
@@ -37,7 +37,7 @@ import java.io.Writer;
 /**
  * Attach the feature as a project artifact.
  */
-@Mojo(name = "attach-feature",
+@Mojo(name = "attach-features",
       defaultPhase = LifecyclePhase.PACKAGE,
       requiresDependencyResolution = ResolutionScope.TEST,
       threadSafe = true
diff --git a/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml 
b/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml
index d293092..d4efef4 100644
--- a/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml
+++ b/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml
@@ -22,7 +22,7 @@
             <pluginExecutionFilter>
                 <goals>
                     <goal>process-resources</goal>
-                    <goal>attach-feature</goal>
+                    <goal>attach-features</goal>
                     <goal>aggregate-features</goal>
                 </goals>
             </pluginExecutionFilter>

Reply via email to