[
https://issues.apache.org/jira/browse/SLING-8683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16927916#comment-16927916
]
Carsten Ziegeler commented on SLING-8683:
-----------------------------------------
[~karlpauls] I've implemented a first version in rev c716a17
It requires the below configuration. The attach-artifact goal requires the
configuration of "attachArtifactClassifier" which is the classifier of a
feature file. If the project has such a file, the main artifact will be added
as a bundle to it. If such a feature file does not exist, it will be created
with just the main artifact as a bundle.
Maybe we should rename the goal to attach-bundle ? Not sure if there is a
better verb than attach
The "attach-features" goal is required as it attaches the feature to the project
{noformat}
<plugin>
<groupId>org.apache.sling</groupId>
<artifactId>slingfeature-maven-plugin</artifactId>
<version>1.1.3-SNAPSHOT</version>
<extensions>true</extensions>
<executions>
<execution>
<goals>
<goal>attach-artifact</goal>
<goal>attach-features</goal>
</goals>
</execution>
</executions>
<configuration>
<attachArtifactClassifier>bundle</attachArtifactClassifier>
</configuration>
</plugin>
{noformat}
> Slingfeature maven plugin should be usable to wrap project artifacts in
> feature.
> --------------------------------------------------------------------------------
>
> Key: SLING-8683
> URL: https://issues.apache.org/jira/browse/SLING-8683
> Project: Sling
> Issue Type: Improvement
> Components: Feature Model
> Affects Versions: slingfeature-maven-plugin 1.1.0
> Reporter: Karl Pauls
> Assignee: Carsten Ziegeler
> Priority: Major
> Fix For: slingfeature-maven-plugin 1.1.4
>
>
> It would be nice if there was an easy way to create a feature for the
> artifact(s) of a maven project without manually creating the feature. The
> idea was to maybe make it so that if the slingfeature-maven-plugin is added
> to a project, it will generate and a attach a feature wrapping the
> artifact(s) from the build automatically.
--
This message was sent by Atlassian Jira
(v8.3.2#803003)