<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>com.atlassian.bamboo.distribution</groupId>
    <artifactId>bamboo-distribution</artifactId>
    <version>7.1.0-blitz1</version>
  </parent>

  <artifactId>bamboo-common-distribution</artifactId>
  <packaging>jar</packaging>
  <name>Atlassian Bamboo Distribution Common</name>
  <description>Common files for Bamboo Distribution</description>

  <profiles>
      <!-- this profile needs the license files. Generate it previously with 'verify license:download'. 
         And don't add license:download as part of your lifecycle. 
         https://hello.atlassian.net/wiki/x/4hU5C -->
      <profile>
        <id>third-party-licensing</id>  
        <build>
          <plugins>
            <plugin>
              <artifactId>maven-resources-plugin</artifactId>
              <executions>
                <execution>
                  <id>copy-resources</id>
                  <phase>generate-resources</phase>
                  <goals>
                    <goal>copy-resources</goal>
                  </goals>
                  <configuration>
                    <outputDirectory>${project.build.outputDirectory}/licenses</outputDirectory>
                    <resources>          
                      <resource>
                        <directory>../../third-party-licensing/licenses</directory>
                        <filtering>false</filtering>
                      </resource>
                    </resources>              
                  </configuration>            
                </execution>
              </executions>
            </plugin>
          </plugins>
        </build>
      </profile>
    </profiles>
</project>
