You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Søren Krum (JIRA)" <ji...@codehaus.org> on 2010/10/22 15:27:32 UTC

[jira] Created: (MNG-4873) resource:resource filtering fails when resource contains an @

resource:resource filtering fails when resource contains an @
-------------------------------------------------------------

                 Key: MNG-4873
                 URL: http://jira.codehaus.org/browse/MNG-4873
             Project: Maven 2 & 3
          Issue Type: Bug
    Affects Versions: 3.0
         Environment: os : ubuntu 10.04, Java version: 1.6.0_10-rc2, Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200) and Apache Maven 3.0 (r1004208; 2010-10-04 13:50:56+0200)
            Reporter: Søren Krum


I have a resource having the same place-holder two times in it. When i start a maven build with 2.2.1, both of them get replaced in the target directory. But when running the same build under 3.0, only the first found place-holder is replaced. I am not sure if it is a bug, but i would assume it is.

here is how my test file looks like:

*******8<----------------
The first ${test.property}!
@
The second ${test.property}!
*******8<----------------

If I remove the @ or add another one (seems even uninteresting where i add it), it works even in 3.0 as expected. Seems as long as i have a even number of @ it works fine, but fails for an odd number.

-- 
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] Moved: (MRESOURCES-129) resource:resource filtering fails when resource contains an @

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRESOURCES-129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann moved MNG-4873 to MRESOURCES-129:
---------------------------------------------------

           Complexity:   (was: Intermediate)
    Affects Version/s:     (was: 3.0)
                  Key: MRESOURCES-129  (was: MNG-4873)
              Project: Maven 2.x Resources Plugin  (was: Maven 2 & 3)

> resource:resource filtering fails when resource contains an @
> -------------------------------------------------------------
>
>                 Key: MRESOURCES-129
>                 URL: http://jira.codehaus.org/browse/MRESOURCES-129
>             Project: Maven 2.x Resources Plugin
>          Issue Type: Bug
>         Environment: os : ubuntu 10.04, Java version: 1.6.0_10-rc2, Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200) and Apache Maven 3.0 (r1004208; 2010-10-04 13:50:56+0200)
>            Reporter: Søren Krum
>
> I have a resource having the same place-holder two times in it. When i start a maven build with 2.2.1, both of them get replaced in the target directory. But when running the same build under 3.0, only the first found place-holder is replaced. I am not sure if it is a bug, but i would assume it is.
> here is how my test file looks like:
> *******8<----------------
> The first ${test.property}!
> @
> The second ${test.property}!
> *******8<----------------
> If I remove the @ or add another one (seems even uninteresting where i add it), it works even in 3.0 as expected. Seems as long as i have a even number of @ it works fine, but fails for an odd number.

-- 
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: (MRESOURCES-129) resource:resource filtering fails when resource contains an @

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRESOURCES-129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=240618#action_240618 ] 

Benjamin Bentmann commented on MRESOURCES-129:
----------------------------------------------

Maven itself doesn't filter resources, the Resources Plugin does. That your build behaves differently in this regard depending on the Maven version suggests you don't have the version of the Resources plugin specified but rely on defaults which have changed since Maven 2..x.

> resource:resource filtering fails when resource contains an @
> -------------------------------------------------------------
>
>                 Key: MRESOURCES-129
>                 URL: http://jira.codehaus.org/browse/MRESOURCES-129
>             Project: Maven 2.x Resources Plugin
>          Issue Type: Bug
>         Environment: os : ubuntu 10.04, Java version: 1.6.0_10-rc2, Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200) and Apache Maven 3.0 (r1004208; 2010-10-04 13:50:56+0200)
>            Reporter: Søren Krum
>
> I have a resource having the same place-holder two times in it. When i start a maven build with 2.2.1, both of them get replaced in the target directory. But when running the same build under 3.0, only the first found place-holder is replaced. I am not sure if it is a bug, but i would assume it is.
> here is how my test file looks like:
> *******8<----------------
> The first ${test.property}!
> @
> The second ${test.property}!
> *******8<----------------
> If I remove the @ or add another one (seems even uninteresting where i add it), it works even in 3.0 as expected. Seems as long as i have a even number of @ it works fine, but fails for an odd number.

-- 
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: (MRESOURCES-129) resource:resource filtering fails when resource contains an @

Posted by "Søren Krum (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRESOURCES-129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Søren Krum closed MRESOURCES-129.
---------------------------------

    Resolution: Duplicate

duplicate of 104

> resource:resource filtering fails when resource contains an @
> -------------------------------------------------------------
>
>                 Key: MRESOURCES-129
>                 URL: http://jira.codehaus.org/browse/MRESOURCES-129
>             Project: Maven 2.x Resources Plugin
>          Issue Type: Bug
>         Environment: os : ubuntu 10.04, Java version: 1.6.0_10-rc2, Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200) and Apache Maven 3.0 (r1004208; 2010-10-04 13:50:56+0200)
>            Reporter: Søren Krum
>
> I have a resource having the same place-holder two times in it. When i start a maven build with 2.2.1, both of them get replaced in the target directory. But when running the same build under 3.0, only the first found place-holder is replaced. I am not sure if it is a bug, but i would assume it is.
> here is how my test file looks like:
> *******8<----------------
> The first ${test.property}!
> @
> The second ${test.property}!
> *******8<----------------
> If I remove the @ or add another one (seems even uninteresting where i add it), it works even in 3.0 as expected. Seems as long as i have a even number of @ it works fine, but fails for an odd number.

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