[
https://issues.apache.org/jira/browse/FELIX-370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12530717
]
Stuart McCulloch commented on FELIX-370:
----------------------------------------
update sent to mailing list, copied here for tracking purposes:
=========================================================
I couldn't find a clean way to use the maven-obr-plugin mojos inside the
"bundle" life-cycle
AND get maven to download the plugin automatically for those without it in
their local repo :(
So because the obr install mojo is the most important (and the mojo specific
code is small)
I decided to add a local obr install mojo to the bundleplugin, that called the
obr utility code.
Maven will then happily download the obr plugin to access the utility code :)
I also combined the switch and obr repository path into a single parameter
"obrRepository"
that defaults to the local repository path - if you set this to NONE the
bundleplugin will skip
the obr installation.
some examples, using the command line:
mvn clean install -DobrRepository=NONE
mvn clean install -DobrRepository=<path-to-obr>
and you can also set this parameter in your pom:
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<configuration>
<obrRepository>NONE</obrRepository>
<instructions>
<!-- etc -->
</instructions>
</configuration>
people who want more control over OBR, including deployment to remote OBR
locations
can explicitly add the maven-obr-plugin to their build poms and setup the
relevant goals.
> Include maven-obr-plugin in maven-bundle-plugin
> -----------------------------------------------
>
> Key: FELIX-370
> URL: https://issues.apache.org/jira/browse/FELIX-370
> Project: Felix
> Issue Type: Wish
> Components: Maven Bundle Plugin
> Affects Versions: 1.0.0
> Reporter: Stefano Lenzi
> Assignee: Stefano Lenzi
> Priority: Minor
> Attachments: patch-maven-bundle-plugin.txt, patch-maven-obr-plugin.txt
>
>
> I'd like to move the maven-obr-plugin from the Clement's sandbox to the trunk
> and add the plugin to the maven-bundle-plugin.
> I've already added some configuration properties to the maven-obr-plugin in
> order to enable/disable the following goal:
> - repository: the goal create/update a local OBR repository in the
> MAVEN_M2_REPO which all the bundle that you compiled by "mvn install"
> - deploy: the goal create/update a remote OBR repository in same server used
> for deploying maven artifact.
> At the moment the default configuration enable the creation of the local OBR
> repository but disable the creation of the remote OBR repository
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.