On Fri, May 21, 2010 at 2:12 PM, Marvin Froeder <[email protected]> wrote:

> Hrmmm.... ${version} does do the trick?
>
> If not, enable maven resource plugin filtering and use ${project.version}
>

I think the maven filtering would be best... and I know I'm going off topic
here since it's more of a maven question, so I'll eventually ask on that
list. It's driving me crazy. I use filtering all the time for things in
src/main/resources, but for the webapp - src/main/webapp files I'm having
trouble getting it filtered. It looks I need to define it in the web app
plugin section, so I've tried:


            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.0</version>
                <configuration>
                <webResources>
                    <resource>
                        <directory>src/main/webapp</directory>
                        <includes>
                            <include>index.jsp</include>
                        </includes>
                        <filtering>true</filtering>
                    </resource>
                </webResources>
                </configuration>
            </plugin>

and I have a property:

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

In the JSP:

integrated-media-swf-${swf.version}

But the above is never substituted with 1.0-SNAPSHOT when I look in the
exploded dir in target.

-- 
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos

http://flexmojos.sonatype.org/

Reply via email to