Uploaded image for project: 'Maven Shade Plugin'
  1. Maven Shade Plugin
  2. MSHADE-440

Expanded properties in profiles in DRP

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Feedback Received
    • None
    • None
    • None

    Description

      If you have a profile with the ${project.basedir} in the configuration of a plugin IN that profile.

      Then when you run maven-shade with that profile active the  ${project.basedir}  will be expanded to the full value in some places of the generated DRP.

      If you have something like this in the pom.xml 

      
        <profiles>
          <profile>
            <id>testProfile</id>
            <properties>
              <prop>CHECK Inside profile ${project.basedir}.</prop>
            </properties>
            <build>
              <plugins>
                <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-clean-plugin</artifactId>
                  <executions>
                    <execution>
                      <id>CHECK Inside profile ${project.basedir}.</id>
                      <configuration>
                        <testOutputDirectory>CHECK Inside profile ${project.basedir}.</testOutputDirectory>
                      </configuration>
                    </execution>
                  </executions>
                </plugin>
              </plugins>
            </build>
          </profile>
        </profiles>
      

      then the DRP will have the project.basedir value replaced with the actual path.
      This ONLY happens if it is in an profile that was active during while shade was running.

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              nielsbasjes Niels Basjes
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: