You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Mick Knutson <mi...@gmail.com> on 2007/12/14 16:37:10 UTC
Re: Using componentDescriptors with a multi-module assembly
In you assembly descriptor:
<componentDescriptors>
<componentDescriptor>src/assemble/reusable-component.xml
</componentDescriptor>
</componentDescriptors>
On Dec 14, 2007 7:28 AM, Westfall, Eric Curtis <ew...@indiana.edu> wrote:
> (sent this earlier but I don't think it made it through so I apologize if
> this reaches the list twice)
>
> Hello, I'm attempting to figure out how to use a componentDescriptors
> element with one of my assemblies for a multi-module project and I'm
> having
> some trouble. My original assembly looked like:
>
> <assembly>
> <id>standalone</id>
> <formats>
> <format>war</format>
> </formats>
> <includeBaseDirectory>false</includeBaseDirectory>
> <sources>...</sources>
> <moduleSets>
> <moduleSet>
> <binaries>
> <dependencySets>
> <dependencySet>
> <useTransitiveFiltering>true</useTransitiveFiltering>
> <excludes>
> <exclude>junit:*</exclude>
> <exclude>org.mortbay.jetty:*</exclude>
> <exclude>tomcat:*</exclude>
> <exclude>com.oracle:*</exclude>
> <exclude>*:servlet-api</exclude>
> <exclude>*:jsp-api</exclude>
> </excludes>
> </dependencySet>
> </dependencySets>
> <unpack>false</unpack>
> <outputDirectory>WEB-INF/lib</outputDirectory>
> </binaries>
> </moduleSet>
> </moduleSets>
> </assembly>
>
> I wanted to re-use that exclusion set in multiple assemblies so I created
> a
> component descriptor:
>
> <component>
> <dependencySets>
> <dependencySet>
> <useTransitiveFiltering>true</useTransitiveFiltering>
> <excludes>
> <exclude>junit:*</exclude>
> <exclude>org.mortbay.jetty:*</exclude>
> <exclude>tomcat:*</exclude>
> <exclude>com.oracle:*</exclude>
> <exclude>*:servlet-api</exclude>
> <exclude>*:jsp-api</exclude>
> </excludes>
> </dependencySet>
> </dependencySets>
> </component>
>
> However, I can't seem to get this to work when I attempt to include it
> back
> in my original assembly. At first I figured the <componentDescriptors/>
> element would go into the moduleSet but I got "Unrecognised tag" errors
> when
> trying that. Whenever I put the component descriptor at top-level under
> <assembly/> the assembly would execute successfully but my exclusion list
> was not being honored for the individual module dependencies (so I would
> end
> up with junt, etc. in my WEB-INF/lib directory)
>
> Does anyone have an example of how I can make this work? Any help would
> be
> greatly appreciated.
>
> Thank you,
> Eric
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Thanks,
Mick Knutson
http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/BLiNCMagazine
http://tahoe.baselogic.com
---
Re: Using componentDescriptors with a multi-module assembly
Posted by "Westfall, Eric Curtis" <ew...@indiana.edu>.
I'm using 2.2-beta-2.nrm.1 from http://mavenversionedsnapshots.googlecode.com/svn/trunk/ because of another bug which was only allowing the first exclude in the list to work ;)
If this is a bug, do you know if it's a known issue or is it something that I should report?
Thanks for the response!
Eric
On 12/15/07 11:33 AM, "John Casey" <jd...@commonjava.org> wrote:
What version of the assembly plugin are you using? This may be a bug,
if you're using the 2.2-beta-2 snapshot.
-john
On Dec 14, 2007, at 10:47 AM, Westfall, Eric Curtis wrote:
> Right, I tried the following:
>
> <assembly>
> <id>standalone</id>
> <formats>
> <format>war</format>
> </formats>
> <componentDescriptors>
> <componentDescriptor>path/to/component.xml</componentDescriptor>
> </componentDescriptors>
> <includeBaseDirectory>false</includeBaseDirectory>
> <sources>...</sources>
> <moduleSets>
> <moduleSet>
> <binaries>
> <unpack>false</unpack>
> <outputDirectory>WEB-INF/lib</outputDirectory>
> </binaries>
> </moduleSet>
> </moduleSets>
> </assembly>
>
> The problem is that the jar excludes don't appear to be applied
> when packaging up the binaries from within the module sets.
> Instead I get all of the dependencies from my modules in the WEB-
> INF/lib directory (including the ones I'm wanting to exclude)
>
> Thanks,
> Eric
>
>
>
> On 12/14/07 10:37 AM, "Mick Knutson" <mi...@gmail.com> wrote:
>
> In you assembly descriptor:
>
> <componentDescriptors>
> <componentDescriptor>src/assemble/reusable-component.xml
> </componentDescriptor>
> </componentDescriptors>
>
>
>
>
>
> On Dec 14, 2007 7:28 AM, Westfall, Eric Curtis
> <ew...@indiana.edu> wrote:
>
>> (sent this earlier but I don't think it made it through so I
>> apologize if
>> this reaches the list twice)
>>
>> Hello, I'm attempting to figure out how to use a componentDescriptors
>> element with one of my assemblies for a multi-module project and I'm
>> having
>> some trouble. My original assembly looked like:
>>
>> <assembly>
>> <id>standalone</id>
>> <formats>
>> <format>war</format>
>> </formats>
>> <includeBaseDirectory>false</includeBaseDirectory>
>> <sources>...</sources>
>> <moduleSets>
>> <moduleSet>
>> <binaries>
>> <dependencySets>
>> <dependencySet>
>> <useTransitiveFiltering>true</useTransitiveFiltering>
>> <excludes>
>> <exclude>junit:*</exclude>
>> <exclude>org.mortbay.jetty:*</exclude>
>> <exclude>tomcat:*</exclude>
>> <exclude>com.oracle:*</exclude>
>> <exclude>*:servlet-api</exclude>
>> <exclude>*:jsp-api</exclude>
>> </excludes>
>> </dependencySet>
>> </dependencySets>
>> <unpack>false</unpack>
>> <outputDirectory>WEB-INF/lib</outputDirectory>
>> </binaries>
>> </moduleSet>
>> </moduleSets>
>> </assembly>
>>
>> I wanted to re-use that exclusion set in multiple assemblies so I
>> created
>> a
>> component descriptor:
>>
>> <component>
>> <dependencySets>
>> <dependencySet>
>> <useTransitiveFiltering>true</useTransitiveFiltering>
>> <excludes>
>> <exclude>junit:*</exclude>
>> <exclude>org.mortbay.jetty:*</exclude>
>> <exclude>tomcat:*</exclude>
>> <exclude>com.oracle:*</exclude>
>> <exclude>*:servlet-api</exclude>
>> <exclude>*:jsp-api</exclude>
>> </excludes>
>> </dependencySet>
>> </dependencySets>
>> </component>
>>
>> However, I can't seem to get this to work when I attempt to
>> include it
>> back
>> in my original assembly. At first I figured the
>> <componentDescriptors/>
>> element would go into the moduleSet but I got "Unrecognised tag"
>> errors
>> when
>> trying that. Whenever I put the component descriptor at top-level
>> under
>> <assembly/> the assembly would execute successfully but my
>> exclusion list
>> was not being honored for the individual module dependencies (so I
>> would
>> end
>> up with junt, etc. in my WEB-INF/lib directory)
>>
>> Does anyone have an example of how I can make this work? Any help
>> would
>> be
>> greatly appreciated.
>>
>> Thank you,
>> Eric
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
>
> --
> Thanks,
> Mick Knutson
>
> http://www.baselogic.com
> http://www.blincmagazine.com
> http://www.djmick.com
> http://www.myspace.com/mickknutson
> http://www.myspace.com/BLiNCMagazine
> http://tahoe.baselogic.com
> ---
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---
John Casey
Committer and PMC Member, Apache Maven
mail: jdcasey at commonjava dot org
blog: http://www.ejlife.net/blogs/john
rss: http://feeds.feedburner.com/ejlife/john
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Using componentDescriptors with a multi-module assembly
Posted by John Casey <jd...@commonjava.org>.
What version of the assembly plugin are you using? This may be a bug,
if you're using the 2.2-beta-2 snapshot.
-john
On Dec 14, 2007, at 10:47 AM, Westfall, Eric Curtis wrote:
> Right, I tried the following:
>
> <assembly>
> <id>standalone</id>
> <formats>
> <format>war</format>
> </formats>
> <componentDescriptors>
> <componentDescriptor>path/to/component.xml</componentDescriptor>
> </componentDescriptors>
> <includeBaseDirectory>false</includeBaseDirectory>
> <sources>...</sources>
> <moduleSets>
> <moduleSet>
> <binaries>
> <unpack>false</unpack>
> <outputDirectory>WEB-INF/lib</outputDirectory>
> </binaries>
> </moduleSet>
> </moduleSets>
> </assembly>
>
> The problem is that the jar excludes don't appear to be applied
> when packaging up the binaries from within the module sets.
> Instead I get all of the dependencies from my modules in the WEB-
> INF/lib directory (including the ones I'm wanting to exclude)
>
> Thanks,
> Eric
>
>
>
> On 12/14/07 10:37 AM, "Mick Knutson" <mi...@gmail.com> wrote:
>
> In you assembly descriptor:
>
> <componentDescriptors>
> <componentDescriptor>src/assemble/reusable-component.xml
> </componentDescriptor>
> </componentDescriptors>
>
>
>
>
>
> On Dec 14, 2007 7:28 AM, Westfall, Eric Curtis
> <ew...@indiana.edu> wrote:
>
>> (sent this earlier but I don't think it made it through so I
>> apologize if
>> this reaches the list twice)
>>
>> Hello, I'm attempting to figure out how to use a componentDescriptors
>> element with one of my assemblies for a multi-module project and I'm
>> having
>> some trouble. My original assembly looked like:
>>
>> <assembly>
>> <id>standalone</id>
>> <formats>
>> <format>war</format>
>> </formats>
>> <includeBaseDirectory>false</includeBaseDirectory>
>> <sources>...</sources>
>> <moduleSets>
>> <moduleSet>
>> <binaries>
>> <dependencySets>
>> <dependencySet>
>> <useTransitiveFiltering>true</useTransitiveFiltering>
>> <excludes>
>> <exclude>junit:*</exclude>
>> <exclude>org.mortbay.jetty:*</exclude>
>> <exclude>tomcat:*</exclude>
>> <exclude>com.oracle:*</exclude>
>> <exclude>*:servlet-api</exclude>
>> <exclude>*:jsp-api</exclude>
>> </excludes>
>> </dependencySet>
>> </dependencySets>
>> <unpack>false</unpack>
>> <outputDirectory>WEB-INF/lib</outputDirectory>
>> </binaries>
>> </moduleSet>
>> </moduleSets>
>> </assembly>
>>
>> I wanted to re-use that exclusion set in multiple assemblies so I
>> created
>> a
>> component descriptor:
>>
>> <component>
>> <dependencySets>
>> <dependencySet>
>> <useTransitiveFiltering>true</useTransitiveFiltering>
>> <excludes>
>> <exclude>junit:*</exclude>
>> <exclude>org.mortbay.jetty:*</exclude>
>> <exclude>tomcat:*</exclude>
>> <exclude>com.oracle:*</exclude>
>> <exclude>*:servlet-api</exclude>
>> <exclude>*:jsp-api</exclude>
>> </excludes>
>> </dependencySet>
>> </dependencySets>
>> </component>
>>
>> However, I can't seem to get this to work when I attempt to
>> include it
>> back
>> in my original assembly. At first I figured the
>> <componentDescriptors/>
>> element would go into the moduleSet but I got "Unrecognised tag"
>> errors
>> when
>> trying that. Whenever I put the component descriptor at top-level
>> under
>> <assembly/> the assembly would execute successfully but my
>> exclusion list
>> was not being honored for the individual module dependencies (so I
>> would
>> end
>> up with junt, etc. in my WEB-INF/lib directory)
>>
>> Does anyone have an example of how I can make this work? Any help
>> would
>> be
>> greatly appreciated.
>>
>> Thank you,
>> Eric
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
>
> --
> Thanks,
> Mick Knutson
>
> http://www.baselogic.com
> http://www.blincmagazine.com
> http://www.djmick.com
> http://www.myspace.com/mickknutson
> http://www.myspace.com/BLiNCMagazine
> http://tahoe.baselogic.com
> ---
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---
John Casey
Committer and PMC Member, Apache Maven
mail: jdcasey at commonjava dot org
blog: http://www.ejlife.net/blogs/john
rss: http://feeds.feedburner.com/ejlife/john
Re: Using componentDescriptors with a multi-module assembly
Posted by "Westfall, Eric Curtis" <ew...@indiana.edu>.
Right, I tried the following:
<assembly>
<id>standalone</id>
<formats>
<format>war</format>
</formats>
<componentDescriptors>
<componentDescriptor>path/to/component.xml</componentDescriptor>
</componentDescriptors>
<includeBaseDirectory>false</includeBaseDirectory>
<sources>...</sources>
<moduleSets>
<moduleSet>
<binaries>
<unpack>false</unpack>
<outputDirectory>WEB-INF/lib</outputDirectory>
</binaries>
</moduleSet>
</moduleSets>
</assembly>
The problem is that the jar excludes don't appear to be applied when packaging up the binaries from within the module sets. Instead I get all of the dependencies from my modules in the WEB-INF/lib directory (including the ones I'm wanting to exclude)
Thanks,
Eric
On 12/14/07 10:37 AM, "Mick Knutson" <mi...@gmail.com> wrote:
In you assembly descriptor:
<componentDescriptors>
<componentDescriptor>src/assemble/reusable-component.xml
</componentDescriptor>
</componentDescriptors>
On Dec 14, 2007 7:28 AM, Westfall, Eric Curtis <ew...@indiana.edu> wrote:
> (sent this earlier but I don't think it made it through so I apologize if
> this reaches the list twice)
>
> Hello, I'm attempting to figure out how to use a componentDescriptors
> element with one of my assemblies for a multi-module project and I'm
> having
> some trouble. My original assembly looked like:
>
> <assembly>
> <id>standalone</id>
> <formats>
> <format>war</format>
> </formats>
> <includeBaseDirectory>false</includeBaseDirectory>
> <sources>...</sources>
> <moduleSets>
> <moduleSet>
> <binaries>
> <dependencySets>
> <dependencySet>
> <useTransitiveFiltering>true</useTransitiveFiltering>
> <excludes>
> <exclude>junit:*</exclude>
> <exclude>org.mortbay.jetty:*</exclude>
> <exclude>tomcat:*</exclude>
> <exclude>com.oracle:*</exclude>
> <exclude>*:servlet-api</exclude>
> <exclude>*:jsp-api</exclude>
> </excludes>
> </dependencySet>
> </dependencySets>
> <unpack>false</unpack>
> <outputDirectory>WEB-INF/lib</outputDirectory>
> </binaries>
> </moduleSet>
> </moduleSets>
> </assembly>
>
> I wanted to re-use that exclusion set in multiple assemblies so I created
> a
> component descriptor:
>
> <component>
> <dependencySets>
> <dependencySet>
> <useTransitiveFiltering>true</useTransitiveFiltering>
> <excludes>
> <exclude>junit:*</exclude>
> <exclude>org.mortbay.jetty:*</exclude>
> <exclude>tomcat:*</exclude>
> <exclude>com.oracle:*</exclude>
> <exclude>*:servlet-api</exclude>
> <exclude>*:jsp-api</exclude>
> </excludes>
> </dependencySet>
> </dependencySets>
> </component>
>
> However, I can't seem to get this to work when I attempt to include it
> back
> in my original assembly. At first I figured the <componentDescriptors/>
> element would go into the moduleSet but I got "Unrecognised tag" errors
> when
> trying that. Whenever I put the component descriptor at top-level under
> <assembly/> the assembly would execute successfully but my exclusion list
> was not being honored for the individual module dependencies (so I would
> end
> up with junt, etc. in my WEB-INF/lib directory)
>
> Does anyone have an example of how I can make this work? Any help would
> be
> greatly appreciated.
>
> Thank you,
> Eric
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Thanks,
Mick Knutson
http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/BLiNCMagazine
http://tahoe.baselogic.com
---
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org