Skip to content

Commit

Permalink
Move license generation into a profile
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Pielage <pandrex247@hotmail.com>
  • Loading branch information
Pandrex247 committed May 1, 2024
1 parent 60af020 commit a06100c
Showing 1 changed file with 22 additions and 17 deletions.
39 changes: 22 additions & 17 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
only if the new code is made subject to such option by the copyright
holder.
Portions Copyright 2017-2023 Payara Foundation and/or affiliates
Portions Copyright 2017-2024 Payara Foundation and/or affiliates
-->

<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">
Expand Down Expand Up @@ -352,6 +352,27 @@
</pluginRepository>
</pluginRepositories>
</profile>

<profile>
<id>GenerateThirdPartyLicenseFile</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<inherited>false</inherited>
<executions>
<execution>
<id>download-and-aggregate-licenses</id>
<goals>
<goal>aggregate-add-third-party</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<build>
Expand Down Expand Up @@ -383,22 +404,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>${license-maven-plugin.version}</version>
<inherited>false</inherited>
<executions>
<execution>
<id>download-and-aggregate-licenses</id>
<phase>generate-resources</phase>
<goals>
<goal>aggregate-add-third-party</goal>
</goals>
</execution>
</executions>

</plugin>
</plugins>

<pluginManagement>
Expand Down

0 comments on commit a06100c

Please sign in to comment.