Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-7912

Support ${project.*} in file profile activation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      The official docs clearly states that:

      "The tags <exists> and <missing> can be interpolated. Supported variables are system properties like ${user.home} and environment variables like ${env.HOME}. Please note that properties and values defined in the POM itself are not available for interpolation here, e.g. the above example activator cannot use ${project.build.directory} but needs to hard-code the path target."

      We have a use-case where another maven run will create an artifact which we want to attach at a later run if a particular file exists. However, this file is generated as

      ${project.build.directory}/${project.build.finalName}-classifier.zip

      Presently, ${project.*} can't be used in file profile activation.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lfvjimisola Jimisola Laursen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: