Someone want to update our forge2 eclipse plugin to use this instead of maven-dependency-plugin ?

---------- Forwarded message ----------
From: Fred Bricon <fbricon@gmail.com>
Date: Wed, Feb 6, 2013 at 1:39 PM
Subject: maven bundle config
To: lincolnbaxter@gmail.com, Koen Aers <koen.aers@jboss.com>


Here's an example 

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>foo.bar</groupId>
<artifactId>my-bundle</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>bundle</packaging>

<properties>
<osgi-version-qualifier>${maven.build.timestamp}</osgi-version-qualifier>
</properties>
<dependencies>
<dependency>
<groupId>org.jboss.forge</groupId>
<artifactId>forge-javaee-impl</artifactId>
<version>1.2.0.Final</version>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.7</version>
<extensions>true</extensions>
<configuration>
<manifestLocation>META-INF</manifestLocation>
<instructions>
<Embed-Transitive>true</Embed-Transitive>
<_failok>true</_failok>
<_nouses>true</_nouses>
<_nodefaultversion>true</_nodefaultversion>
<_snapshot>${osgi-version-qualifier}</_snapshot>
<Bundle-SymbolicName>${project.artifactId};singleton:=false</Bundle-SymbolicName>
<Bundle-RequiredExecutionEnvironment>J2SE-1.5,JavaSE-1.6</Bundle-RequiredExecutionEnvironment>
<Bundle-Name>%Bundle-Name</Bundle-Name>
<Bundle-Vendor>%Bundle-Vendor</Bundle-Vendor>
<Bundle-ClassPath>{maven-dependencies}</Bundle-ClassPath>
</instructions>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Embed-Dependency>forge-javaee-impl,
solder-impl</Embed-Dependency>
<_exportcontents>META-INF.plexus;-noimport:=true,
org.jboss.forge.*</_exportcontents>
<Import-Package>!*</Import-Package>
<!-- <Require-Bundle>foo.bar;bundle-version="[1.3.0,1.4.0)"</Require-Bundle> -->
</instructions>
</configuration>
</plugin>
</plugins>
</build>
</project>

m2eclipse-tycho is required (installable from the p2 repo http://nexus.tesla.io:8081/nexus/content/sites/m2e.extras/m2eclipse-tycho/0.6.0/N/0.6.0.201210231015/) to make it work in eclipse. 
It can also resolve workspace project dependencies.

Take a look at real config in : 
* http://git.eclipse.org/c/m2e/m2e-core.git/tree/m2e-maven-runtime/org.eclipse.m2e.archetype.common/pom.xml
* and its parent pom : http://git.eclipse.org/c/m2e/m2e-core.git/tree/m2e-maven-runtime/pom.xml

--
"Have you tried turning it off and on again" - The IT Crowd



--
Lincoln Baxter, III
http://ocpsoft.org
"Simpler is better."