Maven
  1. Maven
  2. MNG-2640

Expressions in POMs are not modified when the Maven Project is updated

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Incomplete
    • Affects Version/s: 2.0.4
    • Fix Version/s: None
    • Labels:
      None

      Description

      In the Clover plugin I'm modifying the finalName with:

      getProject().getBuild().setFinalName( getProject().getArtifactId() + "-" + getProject().getVersion() + "-clover" );
      

      This works fine and all subsequent plugins using the MavenProject object do work fine. However if the user uses, say, the AntRun plugin and uses the $

      {project.build.fineName}

      expression in his POM it'll return the original value and not the one modified by the Clover plugin. For example if the user is using the AntRun plugin combined with xdoclet Ant tasks to generate files, they won't be put in the correct target directories when used with the Clover plugin and the build will fail...

      See http://jira.codehaus.org/browse/MCLOVER-59 for an issue filed against the Clover plugin on this.

      I think we need a way for reevaluating interpolated expressions when the model is changed.

      Thanks
      -Vincent

      1. MNG-2640.diff
        0.7 kB
        Chris Tucker

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Vincent Massol
          • Votes:
            8 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development