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

Andreas Schaefer commented on SLING-8875:
-----------------------------------------

[~cziegeler] I am not sure how to attach and additional feature in the Include 
Artifact mojo?
I placed a JSON file into src/main/features folder but that is not attached aka 
included in the generated JSON file.
My plugin config looks like this:
{code:java}
<plugin>
    <groupId>org.apache.sling</groupId>
    <artifactId>slingfeature-maven-plugin</artifactId>
    <version>${slingfeature-maven-plugin.version}</version>
    <extensions>true</extensions>
<!--                    <configuration>-->
<!--                        <features>src/main/features</features>-->
<!--                    </configuration>-->
    <executions>
        <execution>
            <id>analyze</id>
            <phase>package</phase>
            <goals>
                <goal>include-artifact</goal>
            </goals>
            <configuration>
<!--                                <features>src/main/features</features>-->
<!--                                
<featuresIncludes>feature-repoinit.json</featuresIncludes>-->
                <includeArtifactClassifier>wfx-api</includeArtifactClassifier>
                <!-- My additional properties -->
                
<includeDependenciesWithScope>compile</includeDependenciesWithScope>
                <bundlesStartOrder>20</bundlesStartOrder>
            </configuration>
        </execution>
    </executions>
</plugin>
{code}

> Create new Goal to create a FM Descriptor from a Maven Module
> -------------------------------------------------------------
>
>                 Key: SLING-8875
>                 URL: https://issues.apache.org/jira/browse/SLING-8875
>             Project: Sling
>          Issue Type: New Feature
>          Components: Feature Model
>    Affects Versions: slingfeature-maven-plugin 1.1.10
>            Reporter: Andreas Schaefer
>            Assignee: Andreas Schaefer
>            Priority: Major
>             Fix For: slingfeature-maven-plugin 1.1.12
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> In order to use FM Descriptor in projects modules should be creating and 
> exposing their FM Descriptors in local / remote Maven repositories. This way 
> an assembler can take these FMs and build up its Sling instance.
> To avoid making each module to write their own FM Descriptor we should have a 
> Goal in the SlingFeature Maven Plugin that does that automatically.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to