On Fri, May 21, 2010 at 11:53 PM, Rick R <[email protected]> wrote:

>
>
> On Fri, May 21, 2010 at 9:44 PM, Wayne Fay <[email protected]> wrote:
>
>> > <properties>
>> >      <foo.bar>FOO/foo.bar>
>> > </properties>
>>
>> If this is literally cut and paste from your pom.xml file, the problem
>> should be pretty obvious. If you changed it and accidentally deleted
>> the <, that's another story.
>>
>
>
> Ha sorry. no it wasn't cut and paste:) I see the mistake above. I had
> several properties and then pasted them here and just screwed up making it
> more generic. Thanks though.
>


 I also ended up getting around the problem (in a flex/java app) by
utilizing the flex mojos copy-flex-resources goal of the plugin.

However, I still would be curious why I wasn't have it filter correctly for
the jsp. The plugin section was copy and paste:

<plugin>
    <groupId>org.apache.maven.
plugins</groupId>
    <artifactId>maven-war-plugin</artifactId>
    <version>2.0.2</version>
    <configuration>
        <webResources>
            <resource>
                <directory>src/main/webapp</directory>
                <includes>
                    <include>**/*.jsp</include>
                </includes>
                <filtering>true</filtering>
                <!--<targetPath> </targetPath>  tried also setting this to
src/main/webapps-->
            </resource>
        </webResources>
    </configuration>
</plugin>

The relevant property I was trying to replace.. copy and paste:

<properties>
       <swf.version>1.0-SNAPSHOT</swf.version>
</properties>

and then from a snippet in the index.jsp


"src", "integrated-media-swf-${swf.version}.swf"

Reply via email to