Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-81

change in @ translation behavior in maven-resources-plugin 2.3

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • maven-filtering-1.0-beta-2
    • maven-filtering
    • None
    • Mac OS X 10.5, maven 2.0.6 + 2.0.9 (no change), java version "1.5.0_16"

    Description

      OpenNMS uses a mixture of ${} and @@ in it's build system for various reasons in filtered properties. The maven resources plugin used to filter both ${} and @@ style properties, but it no longer does so, and as far as I can tell, this change was not documented in the resources plugin documentation. (resources plugin 2.2 uses filtering 1.0-beta-1, and 2.3 uses 1.0-beta-2 AFAIK)

      Attached is a simple example that exposes the difference.

      If you make the pom.xml use maven-resources-plugin 2.2, the "bar" variable in src/main/filtered/filtered.properties gets converted to "this is bar"
      If you make the pom.xml use maven-resources-plugin 2.3, the "bar" variable is no longer interpolated

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            olamy Olivier Lamy
            rangerrick Benjamin Reed
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment