Hi,
There is a different goal "aggregate-modules" which allows you to aggregate
bundles with the following configuration parameters:
/**
* Root directory.
*
* @parameter expression="${project.build.directory}/modules"
*/
private File rootDirectory;
/**
* Aggregated bundle
*
* @parameter
expression="${project.build.directory}/singlebundle/tuscany-bundle.jar"
*/
private File targetBundleFile;
/**
* @parameter default-value== "org.apache.tuscany.sca.bundle";
*/
private String bundleName = "org.apache.tuscany.sca.bundle";
/**
* @parameter default-value== "2.0.0";
*/
private String bundleVersion = "2.0.0";
Thanks,
Raymond
--------------------------------------------------
From: "ant elder" <[email protected]>
Sent: Thursday, March 04, 2010 7:16 PM
To: <[email protected]>
Subject: Re: svn commit: r897505 - in
/tuscany/maven-plugins/trunk/maven-bundle-plugin/src/main/java/org/apache/tuscany/maven/bundle/plugin:
BundleAggregatorMojo.java ModuleBundlesBuildMojo.java
I've not had much joy getting generateAggregatedBundle to do very
much, before i did into the code is this restricted in somewhay to
working with just the feature modules or should it be able to work
with the shaded modules too?
...ant
On Sat, Jan 16, 2010 at 5:30 AM, Raymond Feng <[email protected]> wrote:
If generateAggregatedBundle is set to true, the plugin will try to
generate
an aggregated bundle from the list of fine-grained bundles required by a
particular feature such as core, webservice or all.
The plugin reads in all the META-INF/MANIFEST.MF and merges
Import-Package/Export-Package/DynamicImport-Package headers. The child
bundles are then packaged into the aggregated one whose MF has
Bundle-ClassPath to list all the nested jars.
Thanks,
Raymond
--------------------------------------------------
From: "ant elder" <[email protected]>
Sent: Friday, January 15, 2010 1:21 AM
To: <[email protected]>
Subject: Re: svn commit: r897505 - in
/tuscany/maven-plugins/trunk/maven-bundle-plugin/src/main/java/org/apache/tuscany/maven/bundle/plugin:
BundleAggregatorMojo.java ModuleBundlesBuildMojo.java
Ok thanks I shall give that a try when i get some time, until then
could you say a little about what setting generateAggregatedBundle to
true actually does?
...ant
On Fri, Jan 15, 2010 at 12:59 AM, Raymond Feng <[email protected]>
wrote:
Hi,
The plugin is working well to produce aggregated bundles based on the
features. To try, you can use the following patch.
Thanks,
Raymond
Index: all/pom.xml
===================================================================
--- all/pom.xml (revision 898480)
+++ all/pom.xml (working copy)
@@ -132,7 +132,7 @@
<plugin>
<groupId>org.apache.tuscany.maven.plugins</groupId>
<artifactId>maven-bundle-plugin</artifactId>
- <version>1.0.5</version>
+ <version>1.0.6-SNAPSHOT</version>
<executions>
<execution>
<id>distribution-modules</id>
@@ -142,7 +142,8 @@
</goals>
<configuration>
<targetDirectory>target/modules</targetDirectory>
- <useDistributionName>false</useDistributionName>
+ <useDistributionName>true</useDistributionName>
+ <generateAggregatedBundle>true</generateAggregatedBundle>
<generateManifestJar>true</generateManifestJar>
<artifactManifests>
<artifactManifest>
@@ -165,6 +166,15 @@
</artifactManifests>
</configuration>
</execution>
+<!--
+ <execution>
+ <id>distribution-singlebundle</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>aggregate-modules</goal>
+ </goals>
+ </execution>
+-->
</executions>
<dependencies>
<dependency>
--------------------------------------------------
From: "ant elder" <[email protected]>
Sent: Wednesday, January 13, 2010 7:21 AM
To: <[email protected]>
Cc: "Raymond Feng" <[email protected]>
Subject: Re: svn commit: r897505 - in
/tuscany/maven-plugins/trunk/maven-bundle-plugin/src/main/java/org/apache/tuscany/maven/bundle/plugin:
BundleAggregatorMojo.java ModuleBundlesBuildMojo.java
On Sat, Jan 9, 2010 at 6:10 PM, <[email protected]> wrote:
Author: rfeng
Date: Sat Jan 9 18:10:58 2010
New Revision: 897505
URL: http://svn.apache.org/viewvc?rev=897505&view=rev
Log:
Add the ability to generate feature-based aggregated bundles
Could you say whats the status of this? Does it now work to generate
aggregated bundles? If so are there any examples, or how would i use
this feature?
...ant