You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Joël Royer (JIRA)" <ji...@codehaus.org> on 2009/04/02 16:37:13 UTC

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

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

       

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

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
    [ 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

       

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

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MWAR-189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Lamy closed MWAR-189.
-----------------------------

      Assignee: Olivier Lamy
    Resolution: Not A Bug

> 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
>            Assignee: Olivier Lamy
>
> 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

       

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

Posted by "Joël Royer (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MWAR-189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=172090#action_172090 ] 

Joël Royer commented on MWAR-189:
---------------------------------

It's OK with version 2.1-beta-1!
Thanks!

> 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

       

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

Posted by "Joël Royer (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MWAR-189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=171886#action_171886 ] 

Joël Royer commented on MWAR-189:
---------------------------------

Yes, I've just checked and I confirm that the war plugin version is 2.1-alpha2.
My pom.xml is set for using the last available version. (no version tag used).

> 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

       

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

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MWAR-189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=172055#action_172055 ] 

Dennis Lundberg commented on MWAR-189:
--------------------------------------

Can you please try with version 2.1-beta-1?

> 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