You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jon Paynter <ki...@gmail.com> on 2010/10/14 23:31:44 UTC
Assemblies and filtering
Im trying to construct an assembly descriptor to replicate the output of our
ant tasks. Ive run into a few issues with filtering
1) is there a way to do a mass rename on filter?
the current setup gives a special *.vpp extention to files that need to be
filtered with velocity. after filters have been applied, the .vpp extention
is stripped off and the resulting xml, sh, dat, etc file is used in the
distribution. Does maven support this? ive looked over the documentation
and nothing seems to suggest it does. Specifying individual files is not
workable because the number of files to be filtered is quite large, and
developers are free to add files when needed.
2) During the filtering process - is there a way to throw an error and fail
the build if one or more properties are not found? Ant does this quite
nicely, but maven just ignores any missing properties.
3) When trying to use shared assembly descriptors, it seems
componentDescriptors are not supported. When i try to use the shared
assembly, i get an error:
Error reading assemblies: Failed to locate component descriptor:
src/assemblies/logfiles.xml
the top of my shared assembly file looks like this:
<assembly>
<id>Dist</id>
<formats>
<format>zip</format>
</formats>
<componentDescriptors>
<componentDescriptor>src/assemblies/logfiles.xml</componentDescriptor>
</componentDescriptors>
<includeBaseDirectory>false</includeBaseDirectory>
I made sure the file src/assemblies/logfiles.xml is included in the project
used to install the shared descriptor -- but it doesnt seem to be called.
Any ideas on how to fix this?
Re: Assemblies and filtering
Posted by Jon Paynter <ki...@gmail.com>.
Anybody have some ideas on this?
On Thu, Oct 14, 2010 at 2:31 PM, Jon Paynter <ki...@gmail.com> wrote:
> Im trying to construct an assembly descriptor to replicate the output of
> our
> ant tasks. Ive run into a few issues with filtering
>
> 1) is there a way to do a mass rename on filter?
> the current setup gives a special *.vpp extention to files that need to
> be filtered with velocity. after filters have been applied, the .vpp
> extention is stripped off and the resulting xml, sh, dat, etc file is used
> in the distribution. Does maven support this? ive looked over the
> documentation and nothing seems to suggest it does. Specifying individual
> files is not workable because the number of files to be filtered is quite
> large, and developers are free to add files when needed.
> 2) During the filtering process - is there a way to throw an error and fail
> the build if one or more properties are not found? Ant does this quite
> nicely, but maven just ignores any missing properties.
>
> 3) When trying to use shared assembly descriptors, it seems
> componentDescriptors are not supported. When i try to use the shared
> assembly, i get an error:
> Error reading assemblies: Failed to locate component descriptor:
> src/assemblies/logfiles.xml
>
> the top of my shared assembly file looks like this:
> <assembly>
> <id>Dist</id>
> <formats>
> <format>zip</format>
> </formats>
> <componentDescriptors>
> <componentDescriptor>src/assemblies/logfiles.xml</componentDescriptor>
> </componentDescriptors>
> <includeBaseDirectory>false</includeBaseDirectory>
>
> I made sure the file src/assemblies/logfiles.xml is included in the project
> used to install the shared descriptor -- but it doesnt seem to be called.
> Any ideas on how to fix this?
>
>