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

Robert Munteanu edited comment on SLING-3014 at 11/1/16 1:00 PM:
-----------------------------------------------------------------

Fixed by using the {{bnd-maven-plugin}}, which worked out-of-the-box. One issue 
which still needs to be done manually is adding a

{noformat}Service-Component: OSGI-INF/*.xml{noformat}

line to the MANIFEST.MF file, as tycho and the bnd-maven-plugin aren't 
integrated. That is more than acceptable to me, as this need to be done once 
per bundle, and now XML descriptors no longer need to be maintained by hand.

Changes done in https://svn.apache.org/r1767491


was (Author: rombert):
Fixed by using the {{bnd-maven-plugin}}, which worked out-of-the-box. One issue 
which still needs to be done manually is adding a

{noformat}Service-Component: OSGI-INF/*.xml{noformat}

line to the MANIFEST.MF file, as tycho and the bnd-maven-plugin aren't 
integrated. That is more than acceptable to me, as this need to be done once 
per bundle, and now XML descriptors no longer need to be maintained by hand.

> [build] Generate SCR descriptors using Maven
> --------------------------------------------
>
>                 Key: SLING-3014
>                 URL: https://issues.apache.org/jira/browse/SLING-3014
>             Project: Sling
>          Issue Type: Task
>          Components: IDE
>            Reporter: Robert Munteanu
>            Assignee: Robert Munteanu
>            Priority: Minor
>             Fix For: Sling Eclipse IDE 1.1.2
>
>         Attachments: SLING-3014-1.patch
>
>
> _Edit_: updated the issue title to reflect the fact that we're looking to use 
> Maven, not a specific plug-in.
> Since we're starting to use SCR descriptors when building the Sling IDE tools 
> it would be nice to generate them using the maven-scr-plugin. I have the 
> build working in the CLI, but not yet in the IDE ( see 
> http://dev.eclipse.org/mhonarc/lists/tycho-user/msg04764.html ). Once that is 
> done I'll commit my changes to trunk.
> Note that plain Maven projects work just fine, this is about Tycho-driven 
> builds.



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

Reply via email to