Skip to content

Commit

Permalink
build: add the deployment plugin and configuration
Browse files Browse the repository at this point in the history
1. Add the deployment related plugins and configurations;
2. Add the
maven central repository dependency into the README.md
  • Loading branch information
yuyang733 committed Mar 20, 2022
1 parent 20b4e1e commit 955fd12
Show file tree
Hide file tree
Showing 6 changed files with 108 additions and 6 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,19 @@ mvn clean package -DskipTests -Phadoop-2 -Dfs.hadoopshaded.version=2.x.x

下载地址:[Flink-cos-fs release](https://github.com/yuyang733/flink-cos-fs/releases)

从 Maven 中央仓库中依赖:

```xml
<dependencies>
<dependency>
<groupId>com.qcloud.cos</groupId>
<artifactId>flink-cos-fs-hadoop</artifactId>
<version>${flink.version>-${version></version>
</dependency>
</dependencies>

```


### 安装Flink-cos-fs依赖

Expand Down
1 change: 1 addition & 0 deletions flink-cos-fs-base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<maven.deploy.skip>true</maven.deploy.skip>
<fs.cos.sdk.version>5.6.69</fs.cos.sdk.version>
<fs.cosn.version>8.0.5</fs.cosn.version>
</properties>
Expand Down
1 change: 1 addition & 0 deletions flink-cos-fs-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<maven.deploy.skip>true</maven.deploy.skip>
</properties>

<dependencies>
Expand Down
1 change: 1 addition & 0 deletions flink-cos-fs-hadoop/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<!-- hadoop.shading.prefix 必须跟 hadoop shaded module 中的-->
<hadoop.shading.prefix>org.apache.flink.fs.shaded.hadoop</hadoop.shading.prefix>
<cos.shading.prefix>org.apache.flink.fs.coshadoop</cos.shading.prefix>
<maven.deploy.skip>false</maven.deploy.skip>
</properties>

<dependencies>
Expand Down
1 change: 1 addition & 0 deletions flink-fs-hadoop-shaded/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<shading.prefix>org.apache.flink.fs.shaded.hadoop</shading.prefix>
<maven.deploy.skip>true</maven.deploy.skip>
</properties>

<profiles>
Expand Down
97 changes: 91 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,46 @@
an interface that requires exactly-once semantics to write to COS.
</description>

<licenses>
<license>
<name>Tencent Cloud with MIT License</name>
<url>https://github.com/tencentyun/flink-cos-fs/blob/master/LICENSE</url>
</license>
</licenses>

<developers>
<developer>
<name>iainyu</name>
<email>[email protected]</email>
</developer>
</developers>

<licenses>
<license>
<name>Tencent Cloud with MIT License</name>
<url>https://github.com/tencentyun/flink-cos-fs/blob/master/LICENSE</url>
</license>
</licenses>
<scm>
<connection>scm:git:https://github.com/tencentyun/flink-cos-fs.git</connection>
<developerConnection>scm:git:https://github.com/tencentyun/flink-cos-fs.git</developerConnection>
<url>https://github.com/tencentyun/flink-cos-fs</url>
</scm>

<distributionManagement>
<repository>
<id>oss</id>
<name>flink-cos-fs</name>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
</repository>

<snapshotRepository>
<id>oss</id>
<name>flink-cos-fs</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>

<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<flink.version>1.10.0</flink.version>
<fs.hadoopshaded.version>3.1.0</fs.hadoopshaded.version>
<maven.deploy.skip>true</maven.deploy.skip>
</properties>

<modules>
Expand All @@ -58,4 +79,68 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<configuration>
<attach>true</attach>
</configuration>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<additionalJOption>-Xdoclint:none</additionalJOption>
</configuration>
<executions>
<execution>
<id>javadoc-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<executions>
<execution>
<id>deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 955fd12

Please sign in to comment.