Uploaded image for project: 'Maven Assembly Plugin'
  1. Maven Assembly Plugin
  2. MASSEMBLY-333

plugin not correctly interpolating POM variables like ${settings.localRepository}

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2-beta-2
    • Fix Version/s: 2.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      maven 2.0.9

      Description

      It looks like the issue was fixed only partely: http://jira.codehaus.org/browse/MASSEMBLY-189

      But some variables like ${settings.localRepository} are still not interpolated in assembly descriptor. Example:

      C:\src\tvworks\trunk\tva\mpeg\stream-gen\etv-stream-generator>mvn assembly:attached
      [INFO] Scanning for projects...
      [INFO] Searching repository for plugin with prefix: 'assembly'.
      [INFO] ------------------------------------------------------------------------
      [INFO] Building etv-stream-generator
      [INFO] task-segment: [assembly:attached] (aggregator-style)
      [INFO] ------------------------------------------------------------------------
      [INFO] [assembly:attached]
      [INFO] Reading assembly descriptor: src/main/assembly/assembly.xml
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Failed to create assembly: Error adding file to archive: C:\src\tvworks\trunk\tva\mpeg\stream-gen\etv-stream-generator\${settings.localRepository}\com\tvworks\tva\mpeg\common\utils\3.1.0d\nar\lib\x86-Windows-msvc\shared\utils-3.1.0d.dll isn't a file.
      [INFO] ------------------------------------------------------------------------
      [INFO] For more information, run Maven with the -e switch
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 5 seconds

      [INFO] Finished at: Fri Jun 27 09:55:57 PDT 2008

      [INFO] Final Memory: 10M/19M

      [INFO] ------------------------------------------------------------------------

        Attachments

        1. MASSEMBLY-333.patch
          2 kB
          Alexander Syedin

          Activity

            People

            • Assignee:
              jdcasey John Dennis Casey
              Reporter:
              sevapopov Seva Popov
            • Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: