Hi,
I'm in the situation that I require the cocoon-pipeline-artefacts in a
standalone eclipse RCP-application. I like to use the cocoon XML pipeline
directly from my code to write parts of HUGE XML files directly into the
database (as domain-objects). I osginized the bundles by using the felix-
bundle-plugin. I think we could safely osginize all cocoon3 artefacts in that
way.
There could be some issues with AOP in an OSGi environment and it may also be
nice to provide some sitemap services as OSGi services. But IMHO this could be
done in another iteration since the pipeline-API (including cocoon-sax and
cocoon-stax) work very well without considering these (possible) issues.
I provided a patch showing how simple it is to osginize a cocoon component
with the felix-bundle-plugin (in this example the cocoon-pipeline artefact).
I know there was already a discussion about sending patches in the mailing-
list but IMHO its much easier to discuss it here than creating an issue and
discussing it in JIRA.
On positive feedback I'll open a feature request and provide a patch
osginizing all cocoon3 artifacts.
So WDYT?
Andreas
Index: cocoon-pipeline/pom.xml
===================================================================
--- cocoon-pipeline/pom.xml (revision 746644)
+++ cocoon-pipeline/pom.xml (working copy)
@@ -35,6 +35,32 @@
<name>Cocoon 3: Pipeline [jar]</name>
<description>The core of Cocoon 3. A Servlet API independent implementation of pipelines.</description>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-jar-plugin</artifactId>
+ <configuration>
+ <archive>
+ <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
+ </archive>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>bundle-manifest</id>
+ <phase>process-classes</phase>
+ <goals>
+ <goal>manifest</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
<dependencies>
<dependency>
<groupId>commons-logging</groupId>
Index: parent/pom.xml
===================================================================
--- parent/pom.xml (revision 746644)
+++ parent/pom.xml (working copy)
@@ -471,6 +471,11 @@
<artifactId>maven-release-plugin</artifactId>
<version>2.0-beta-8</version>
</plugin>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <version>1.4.3</version>
+ </plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>rat-maven-plugin</artifactId>