[
http://jira.codehaus.org/browse/MGWT-216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=263270#action_263270
]
Andrew Hughes edited comment on MGWT-216 at 4/12/11 6:50 AM:
-------------------------------------------------------------
Tested with 2.2.0 and maven 3.0.2. The html page and WEB-INF/web.xml located in
{{src/main/webapp}} - this is the maven default location for such content in
2.1+ and also is used in the archetype (the issue was raised in 2.0 and the
location was different, as described in the issue description).
h2. Repeating the Test
Added the following to the pom.xml
{noformat}
<build>
<resources>
<resource>
<directory>src/main/webapp</directory>
<filtering>true</filtering>
</resource>
</resources>
...
<build>
{noformat}
h2. Add the following to {{src/main/webapp/TheAppsPage.html}}
{noformat}
...
<title>${project.artifactId}</title>
...
{noformat}
Sorry to report...
h3. Filtering did not work with this configuration as desired.
I would kindly request that if this is closed, could you please provide some
documentation (either here or even better, on the gwt-maven-plugins maven
site). No doubt that this was not closed accidently, does it have anything todo
with this http://mojo.codehaus.org/gwt-maven-plugin/resources-mojo.html ?
Any help would be great :)
was (Author: ahhughes):
Tested with 2.2.0 and maven 3.0.2. The html page and WEB-INF/web.xml
located in {{src/main/webapp}}.
Simply added the following to the pom.xml
{noformat}
<build>
<resources>
<resource>
<directory>src/main/webapp</directory>
<filtering>true</filtering>
</resource>
</resources>
...
<build>
{noformat}
Sorry to report...
h3. Filtering did not work with this configuration as desired.
I would kindly request that if this is closed, could you please provide some
documentation (either here or even better, on the gwt-maven-plugins maven
site). No doubt that this was not closed accidently, does it have anything todo
with this http://mojo.codehaus.org/gwt-maven-plugin/resources-mojo.html ?
Any help would be great :)
> Resource Filtering, does not filter all copy's of the resources.
> ----------------------------------------------------------------
>
> Key: MGWT-216
> URL: http://jira.codehaus.org/browse/MGWT-216
> Project: Maven 2.x GWT Plugin
> Issue Type: Bug
> Affects Versions: 1.2
> Reporter: Andrew Hughes
> Assignee: Olivier Lamy
> Fix For: 2.1.0-1
>
>
> h1. About
> When applying maven resource filtering
> (http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html)
> only partial support is encountered.
> h1. Example:
> My 'com.acme.gwtproject.GwtProject' uses the standard gwt-maven directory
> layout, consequently my html is located at...
> ./src/main/resources/com/acme/gwtproject/public/GwtProject.html
> If GwtProject.html contains a token say ${project.version} I want to see this
> in the released artifacts, released sources artifacts and in dev mode. But
> the build lifecycle only seems to filter/replace one copy of the file, that
> strangely end's up @ ./war/WEB-INF/classes/GwtProject.html <--- weird
> location!
> NOTE: I don't believe that this has anything todo with the bug, but my
> project is <packaging>jar</packaging>
> h1. Reproduce
> To reproduce this, and the following to a pom.
> {noformat}
> <build>
> ...
> <resources>
> <resource>
> <directory>src/main/java</directory>
> </resource>
> <resource>
> <directory>src/main/resources</directory>
> <filtering>true</filtering>
> </resource>
> </resources>
> ...
> <build>
> {noformat}
> Then add a token to your project's html file...
> ${project.version}
> Try 'gwt:run', look at the html source and see it has not been filtered.
> Also try 'install' to build the war/jar and take a look at it's contents, the
> html file would not have been filtered within these artifacts.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email