You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Stephane Nicoll (JIRA)" <ji...@codehaus.org> on 2009/04/03 09:05:15 UTC

[jira] Commented: (MWAR-189) webResources filtering replaced ${jdbc.url} by ${pom.url}

    [ http://jira.codehaus.org/browse/MWAR-189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=171881#action_171881 ] 

Stephane Nicoll commented on MWAR-189:
--------------------------------------

Are you sure you're using this version?

> webResources filtering replaced ${jdbc.url} by ${pom.url}
> ---------------------------------------------------------
>
>                 Key: MWAR-189
>                 URL: http://jira.codehaus.org/browse/MWAR-189
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1-alpha-2
>         Environment: Maven 2.1.0 / Java SE 1.6.0_13
>            Reporter: Joël Royer
>
> I'm using webResources filtering and I'm surprised to see a variable ${jdbc.url] to be replaced by ${pom.url}.
> My application is based on Spring 2.5 and my applicationConfig.xml contains some variables which will be replaced at runtime., not build time.
> But for an unknown reason, the war plugin replaced this variable with the ${pom.url} variable.
> I have this code in my pom.xml:
> {code:xml}
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-war-plugin</artifactId>
> 	<configuration>
> 		<webResources>
> 			<resource>
> 				<filtering>true</filtering>
> 				<directory>src/main/webapp</directory>
> 				<includes>
> 					<include>**/*.xml</include>
> 				</includes>
> 			</resource>
> 		</webResources>
> 	</configuration>
> </plugin>
> {code} 

-- 
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