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

Carsten Ziegeler commented on SLING-5477:
-----------------------------------------

The works with the caveat that the bundle plugin needs to run in the 
process-classes phase. The project needs to be of type "slingstart" and the 
following configuration for the bundle plugin does the trick:
{quote}
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <version>3.0.1</version>
                <extensions>true</extensions>
                <configuration>
                    <classifier>bundle</classifier>
                    <!-- make sure bundle plugin runs for slingstart types -->
                    <supportedProjectTypes>
                        <supportedProjectType>jar</supportedProjectType>
                        <supportedProjectType>bundle</supportedProjectType>
                        <supportedProjectType>slingstart</supportedProjectType>
                    </supportedProjectTypes>
                </configuration>
                <executions>
                    <execution>
                        <id>bundle</id>
                        <goals>
                            <goal>bundle</goal>
                        </goals>
                        <phase>process-classes</phase>
                    </execution>
                </executions>
            </plugin>
{quote}

> Allow to add an artifact of the slingstart project to the model
> ---------------------------------------------------------------
>
>                 Key: SLING-5477
>                 URL: https://issues.apache.org/jira/browse/SLING-5477
>             Project: Sling
>          Issue Type: Improvement
>          Components: Maven Plugins and Archetypes
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>             Fix For: Slingstart Maven Plugin 1.4.2
>
>
> In some cases it might be useful to have a slingstart project, where the 
> project in addition to a provisioning model contains the source for a bundle. 
> The maven bundle plugin could be used to build the bundle and the 
> provisioning model includes this artifact.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to