John,
Found a workaround for it.
I added the maven-resources-plugin to the build as below:
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>filter-resources</id>
<phase>package</phase>
<goals>
<goal>resources</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.1</version>
<executions>
<execution>
<id>assembly-bin-distributions</id>
<phase>package</phase>
<goals>
<goal>attached</goal>
</goals>
</execution>
</executions>
This way in the package phase , i was able to filter resources first
and then execute the assembly plugin. I didnt even had to specify
filtered element in the fileset element in the assembly descriptor.
minor changes in assembly descriptor allowed me to package the
assembly with filtered resources :)
On 18 Jun 2007 11:58:55 -0400, Jim Crossley <[EMAIL PROTECTED]> wrote:
Hi John...
John Casey <[EMAIL PROTECTED]> writes:
> Can you provide a couple of example project to demonstrate?
Yes. I opened a new bug and attached a simple example project
demonstrating the problem:
http://jira.codehaus.org/browse/MASSEMBLY-221
The problem stems from when a subset of files in a <fileSet> require
filtering. Because the <fileSet> element doesn't yet support
filtering, additional <file> elements are required. In 2.1, this was
a valid workaround. The workaround is broken in 2.2.
Thanks,
Jim
>
> Thanks,
>
> -john
>
>
> On Jun 14, 2007, at 9:15 AM, Jim Crossley wrote:
>
> > I see this, too, though I don't know why. The previous version used
> > to work.
> >
> > I guess I second the nudge. :-)
> >
> > Jim
> >
> > "Karan Malhi" <[EMAIL PROTECTED]> writes:
> >
> >> **--nudge--**
> >>
> >> On 6/8/07, Karan Malhi <[EMAIL PROTECTED]> wrote:
> >>> I have a module named assembly. I am using the assembly plugin 2.1 .
> >>> if i run maven from the parent project, then resources are not
> >>> filtered. if i run maven from the assembly module itself, resources
> >>> are filtered properly.
> >>> Any ideas why this would be happening?
> >>>
> >>> --
> >>> Karan Malhi
> >>>
> >>
> >>
> >> --
> >> Karan Malhi
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> ---
> John Casey
> Committer and PMC Member, Apache Maven
> mail: jdcasey at commonjava dot org
> blog: http://www.ejlife.net/blogs/john
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Karan Malhi
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]