You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@asterixdb.apache.org by im...@apache.org on 2021/07/20 15:26:09 UTC
[asterixdb] 04/05: [NO ISSUE] Touch 3rdpartylicenses.txt in skip.npm
This is an automated email from the ASF dual-hosted git repository.
imaxon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/asterixdb.git
commit 0bb11aa6b26c00bd52a81ffdce58858dd036c964
Author: Ian Maxon <ia...@maxons.email>
AuthorDate: Wed Jul 7 14:55:59 2021 -0700
[NO ISSUE] Touch 3rdpartylicenses.txt in skip.npm
- user model changes: no
- storage format changes: no
- interface changes: no
Details:
(Ab)use antrun to make 'skip.npm' work without having to touch
asterixdb/asterix-dashboard/target/dashboard/static/3rdpartylicenses.txt
before the build.
Change-Id: Ic95e592b42139b4750af8bb20297f926b3c973e4
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/12243
Reviewed-by: Ian Maxon <im...@uci.edu>
Reviewed-by: Till Westmann <ti...@apache.org>
Integration-Tests: Jenkins <je...@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <je...@fulliautomatix.ics.uci.edu>
Contrib: Ian Maxon <im...@uci.edu>
---
asterixdb/asterix-dashboard/pom.xml | 22 ++++++++++++++++++++++
asterixdb/pom.xml | 13 +++++++++++++
2 files changed, 35 insertions(+)
diff --git a/asterixdb/asterix-dashboard/pom.xml b/asterixdb/asterix-dashboard/pom.xml
index df9dfac..2b10a4e 100644
--- a/asterixdb/asterix-dashboard/pom.xml
+++ b/asterixdb/asterix-dashboard/pom.xml
@@ -182,4 +182,26 @@
<id>skip-dashboard</id>
</profile>
</profiles>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>touch-3rdparty</id>
+ <phase>${skip-npm-touch.stage}</phase>
+ <configuration>
+ <target>
+ <touch file="${basedir}/target/dashboard/static/3rdpartylicenses.txt" mkdirs="true"/>
+ </target>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
</project>
diff --git a/asterixdb/pom.xml b/asterixdb/pom.xml
index c56c43f..8b769f4 100644
--- a/asterixdb/pom.xml
+++ b/asterixdb/pom.xml
@@ -79,6 +79,7 @@
<prepare-env.stage>none</prepare-env.stage>
<shim.stage>none</shim.stage>
<pytestlib.stage>none</pytestlib.stage>
+ <skip-npm-touch.stage>none</skip-npm-touch.stage>
<!-- Versions under dependencymanagement or used in many projects via properties -->
<algebricks.version>0.3.6-SNAPSHOT</algebricks.version>
@@ -711,6 +712,18 @@
</properties>
</profile>
<profile>
+ <id>skip-npm</id>
+ <activation>
+ <property>
+ <name>skip.npm</name>
+ <value>true</value>
+ </property>
+ </activation>
+ <properties>
+ <skip-npm-touch.stage>process-sources</skip-npm-touch.stage>
+ </properties>
+ </profile>
+ <profile>
<id>invalid-tests</id>
<properties>
<invalid.tests />