I've vainly been trying to use Felix' bundle plugin to install/deploy a
bundle Maven artifact to the Felix repository in Glassfish. In the end I've
used the Ant run plugin to copy the bundle jar to the deployment directory:
<profile>
<id>install-on-local-glassfish</id>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>install</phase>
<configuration>
<tasks>
<copy
file="target/helloworld-1.0-SNAPSHOT.jar"
toDir="/u01/app/glassfish-3.0.1-b19/glassfish/domains/domain1/autodeploy/bundles"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
But there's probably a much better, cleaner to do this. Or is there ?