You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@livy.apache.org by js...@apache.org on 2017/08/15 08:01:13 UTC
incubator-livy git commit: [LIVY-389][BUILD][FOLLOWUP] Enable
generating third-party license by profile
Repository: incubator-livy
Updated Branches:
refs/heads/master 213802806 -> ca5b1be77
[LIVY-389][BUILD][FOLLOWUP] Enable generating third-party license by profile
Move `license-maven-plugin` to a specific profile which can only be enabled by `-Dlicense-maven-plugin` to avoid generating every time in packaging.
Author: jerryshao <ss...@hortonworks.com>
Closes #35 from jerryshao/change-pom.
Project: http://git-wip-us.apache.org/repos/asf/incubator-livy/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-livy/commit/ca5b1be7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-livy/tree/ca5b1be7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-livy/diff/ca5b1be7
Branch: refs/heads/master
Commit: ca5b1be777de1310d7a4ece96a8d77852af4796f
Parents: 2138028
Author: jerryshao <ss...@hortonworks.com>
Authored: Tue Aug 15 16:01:09 2017 +0800
Committer: jerryshao <ss...@hortonworks.com>
Committed: Tue Aug 15 16:01:09 2017 +0800
----------------------------------------------------------------------
pom.xml | 54 ++++++++++++++++++++++++++++++++++--------------------
1 file changed, 34 insertions(+), 20 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-livy/blob/ca5b1be7/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 3c56d51..34a92cd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1041,26 +1041,6 @@
</executions>
</plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>license-maven-plugin</artifactId>
- <inherited>false</inherited>
- <configuration>
- <outputDirectory>${execution.root}</outputDirectory>
- <thirdPartyFilename>THIRD-PARTY</thirdPartyFilename>
- <sortArtifactByName>true</sortArtifactByName>
- <fileTemplate>${execution.root}/dev/third-party-file.ftl</fileTemplate>
- </configuration>
- <executions>
- <execution>
- <phase>prepare-package</phase>
- <goals>
- <goal>aggregate-add-third-party</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
-
</plugins>
</build>
@@ -1159,6 +1139,40 @@
</build>
</profile>
+ <profile>
+ <!-- This will search remote and local repos to generate THIRD-PARTY license file, make sure
+ livy artifacts existed in either remote or local repos, otherwise run mvn install before. -->
+ <id>generate-third-party</id>
+ <activation>
+ <property>
+ <name>generate-third-party</name>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>license-maven-plugin</artifactId>
+ <inherited>false</inherited>
+ <configuration>
+ <outputDirectory>${execution.root}</outputDirectory>
+ <thirdPartyFilename>THIRD-PARTY</thirdPartyFilename>
+ <sortArtifactByName>true</sortArtifactByName>
+ <fileTemplate>${execution.root}/dev/third-party-file.ftl</fileTemplate>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>prepare-package</phase>
+ <goals>
+ <goal>aggregate-add-third-party</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
</profiles>
</project>