You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by tz...@apache.org on 2021/01/21 13:25:49 UTC
[flink-statefun] 02/02: [FLINK-20742] [build] Skip deployment of
example artifacts
This is an automated email from the ASF dual-hosted git repository.
tzulitai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink-statefun.git
commit d5da910a6bdbc97a4b191d9ad4429a3b8c265c7c
Author: Tzu-Li (Gordon) Tai <tz...@apache.org>
AuthorDate: Wed Dec 23 15:05:57 2020 +0800
[FLINK-20742] [build] Skip deployment of example artifacts
This closes #191.
---
statefun-examples/pom.xml | 11 ++++
.../statefun-ridesharing-example-simulator/pom.xml | 76 +---------------------
2 files changed, 14 insertions(+), 73 deletions(-)
diff --git a/statefun-examples/pom.xml b/statefun-examples/pom.xml
index 329e662..6af873b 100644
--- a/statefun-examples/pom.xml
+++ b/statefun-examples/pom.xml
@@ -40,5 +40,16 @@ under the License.
<module>statefun-flink-datastream-example</module>
</modules>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-deploy-plugin</artifactId>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</project>
diff --git a/statefun-examples/statefun-ridesharing-example/statefun-ridesharing-example-simulator/pom.xml b/statefun-examples/statefun-ridesharing-example/statefun-ridesharing-example-simulator/pom.xml
index 1910cb4..dda4abd 100644
--- a/statefun-examples/statefun-ridesharing-example/statefun-ridesharing-example-simulator/pom.xml
+++ b/statefun-examples/statefun-ridesharing-example/statefun-ridesharing-example-simulator/pom.xml
@@ -119,87 +119,17 @@ under the License.
<build>
<plugins>
<plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-shade-plugin</artifactId>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
- <goal>shade</goal>
+ <goal>repackage</goal>
</goals>
- <configuration>
- <transformers>
- <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
- <resource>META-INF/spring.handlers</resource>
- </transformer>
- <transformer implementation="org.springframework.boot.maven.PropertiesMergingResourceTransformer">
- <resource>META-INF/spring.factories</resource>
- </transformer>
- <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
- <resource>META-INF/spring.schemas</resource>
- </transformer>
- <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
- <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
- <mainClass>org.apache.flink.statefun.examples.ridesharing.simulator.Main</mainClass>
- </transformer>
- <transformer
- implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer">
- <projectName>Apache Flink Stateful Functions (flink-statefun)</projectName>
- <encoding>UTF-8</encoding>
- </transformer>
- <!-- remove all duplicate licenses -->
- <transformer
- implementation="org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformer">
- </transformer>
- <!-- explicitly include our LICENSE file, located at project root dir -->
- <transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer">
- <resource>META-INF/LICENSE</resource>
- <file>${basedir}/../../../LICENSE</file>
- </transformer>
- </transformers>
- </configuration>
</execution>
</executions>
- <dependencies>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <version>2.1.6.RELEASE</version>
- </dependency>
- </dependencies>
- <configuration>
- <createDependencyReducedPom>false</createDependencyReducedPom>
- <filters>
- <filter>
- <artifact>*:*</artifact>
- <excludes>
- <exclude>META-INF/*.SF</exclude>
- <exclude>META-INF/*.DSA</exclude>
- <exclude>META-INF/*.RSA</exclude>
- </excludes>
- </filter>
- <filter>
- <artifact>org.apache.kafka:*</artifact>
- <excludes>
- <exclude>kafka/kafka-version.properties</exclude>
- <exclude>LICENSE</exclude>
- <!-- Does not contain anything relevant.
- Cites a binary dependency on jersey, but this is neither reflected in the
- dependency graph, nor are any jersey files bundled. -->
- <exclude>NOTICE</exclude>
- </excludes>
- </filter>
- <filter>
- <artifact>javax.validation:validation-api:*</artifact>
- <excludes>
- <!-- Their header simply points to a ASLv2 license; excluded to have duplicate license files packaged -->
- <exclude>license.header</exclude>
- </excludes>
- </filter>
- </filters>
- </configuration>
</plugin>
</plugins>
</build>
-
</project>
\ No newline at end of file