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

Replacement of some maven properties is not working

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • maven-plugin
    • None
    • Maven 3.0.1, Hudson 1.394

      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}

          [JENKINS-8573] Replacement of some maven properties is not working

          fex_14 created issue -
          Olivier Lamy made changes -
          Assignee New: Olivier Lamy [ olamy ]
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Dan C made changes -
          Link New: This issue is related to JENKINS-9693 [ JENKINS-9693 ]
          Jenkins IRC Bot made changes -
          Component/s New: maven-plugin [ 16033 ]
          Component/s Original: maven2 [ 15487 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 138684 ] New: JNJira + In-Review [ 188106 ]

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

              Created:
              Updated:
              Resolved: