You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2019/05/02 09:07:00 UTC

[jira] [Commented] (SLING-8382) Add new mojo to include features in the artifact

    [ https://issues.apache.org/jira/browse/SLING-8382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16831493#comment-16831493 ] 

Carsten Ziegeler commented on SLING-8382:
-----------------------------------------

The feature can be enabled by configuring it in the pom:
{noformat}
<plugin>
     <groupId>org.apache.sling</groupId>
     <artifactId>slingfeature-maven-plugin</artifactId>
     <extensions>true</extensions>
     <executions>
          <execution>
               <goals>
                   <goal>embed-features</goal>
               </goals>
          </execution>
      </executions>
</plugin>
{noformat}
With this default configuration, *all* features of the project are embed in the default location at META-INF/features.
The location can be configured as well as the features:
{noformat}
<plugin>
     <groupId>org.apache.sling</groupId>
     <artifactId>slingfeature-maven-plugin</artifactId>
     <extensions>true</extensions>
     <executions>
          <execution>
               <goals>
                   <goal>embed-features</goal>
               </goals>
               <configuration>
                   <resourcesPath>libs/features/<resourcesPath>
                   <embed>
                       <includeClassifier>main</includeClassifier>
                   </embed>
               <configuration>
          </execution>
      </executions>
</plugin>
{noformat}

> Add new mojo to include features in the artifact
> ------------------------------------------------
>
>                 Key: SLING-8382
>                 URL: https://issues.apache.org/jira/browse/SLING-8382
>             Project: Sling
>          Issue Type: Improvement
>          Components: Maven Plugins and Archetypes
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>            Priority: Major
>             Fix For: slingfeature-maven-plugin 1.0.2
>
>
> In some cases it might be useful to simply embed features of a project in the created artifact (jar/bundle) at some path for later retrieval at runtime



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)