Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-8573

Replacement of some maven properties is not working

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: maven-plugin
    • Labels:
      None
    • Environment:
      Maven 3.0.1, Hudson 1.394
    • Similar Issues:

      Description

      Steps to reproduce:

      0. Create a simple maven 3 project
      1. Enable Resource Filtering
      2. Add a resource file with this content:
      SERVER_VERSION=${project.version}
      SERVER_BUILD_DATE=${timestamp}

      3. Add a property to the pom (to work around http://jira.codehaus.org/browse/MRESOURCES-99)
      <properties>
      <timestamp>${maven.build.timestamp}</timestamp>
      </properties>

      4. Executing mvn help:effective-pom shows

      • The WRONG Result on hudson: .... <timestamp>${maven.build.timestamp}</timestamp> ....
      • The correct Result when you run it on a local machine: <timestamp>20110121-1512</timestamp>

      5. Because of the behavior described in step 4 the resource filtering is not working as expected:
      SERVER_VERSION=2.3.0-SNAPSHOT
      SERVER_BUILD_DATE=${maven.build.timestamp}

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              olamy Olivier Lamy
              Reporter:
              fex_14 fex_14
              Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: