You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hugegraph.apache.org by ji...@apache.org on 2022/12/11 16:38:11 UTC
[incubator-hugegraph-toolchain] 01/01: fix gpg signature error & remove redundant configs
This is an automated email from the ASF dual-hosted git repository.
jin pushed a commit to branch update-pom
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph-toolchain.git
commit 675e7f49277d0e49bb0143de36fd880f36026a57
Author: imbajin <ji...@apache.org>
AuthorDate: Sat Dec 10 23:13:35 2022 +0800
fix gpg signature error & remove redundant configs
---
hugegraph-client/pom.xml | 104 +++++-----------
hugegraph-hubble/hubble-be/pom.xml | 1 -
hugegraph-hubble/hubble-dist/pom.xml | 1 +
hugegraph-hubble/pom.xml | 2 +-
hugegraph-loader/pom.xml | 164 +++++++++++++-------------
hugegraph-tools/pom.xml | 89 ++++++--------
pom.xml | 222 ++++++++++++++++++-----------------
7 files changed, 269 insertions(+), 314 deletions(-)
diff --git a/hugegraph-client/pom.xml b/hugegraph-client/pom.xml
index 15019628..ae670bf7 100644
--- a/hugegraph-client/pom.xml
+++ b/hugegraph-client/pom.xml
@@ -28,14 +28,13 @@
<packaging>jar</packaging>
<name>${project.artifactId}</name>
- <url>https://github.com/apache/incubator-hugegraph-toolchain/tree/master/hugegraph-client</url>
+ <url>https://github.com/apache/hugegraph-toolchain/tree/master/hugegraph-client</url>
<description>
hugegraph-client is a Java-written client of HugeGraph, providing
operations of graph, schema, gremlin, variables and traversals etc.
</description>
<properties>
- <hugegraph.common.version>1.0.0</hugegraph.common.version>
<jersey.version>3.0.3</jersey.version>
<mockito.version>2.8.47</mockito.version>
</properties>
@@ -44,7 +43,6 @@
<dependency>
<groupId>org.apache.hugegraph</groupId>
<artifactId>hugegraph-common</artifactId>
- <version>${hugegraph.common.version}</version>
</dependency>
<dependency>
<groupId>org.lz4</groupId>
@@ -66,35 +64,29 @@
<build>
<plugins>
- <plugin>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.1</version>
- <configuration>
- <source>${compiler.source}</source>
- <target>${compiler.target}</target>
- <compilerArguments>
- <Xmaxerrs>500</Xmaxerrs>
- </compilerArguments>
- <compilerArgs>
- <arg>-Xlint:unchecked</arg>
- </compilerArgs>
- </configuration>
- </plugin>
-
+<!-- <plugin>-->
+<!-- <groupId>org.apache.maven.plugins</groupId>-->
+<!-- <artifactId>maven-compiler-plugin</artifactId>-->
+<!-- <configuration>-->
+<!-- <source>${compiler.source}</source>-->
+<!-- <target>${compiler.target}</target>-->
+<!-- <compilerArguments>-->
+<!-- <Xmaxerrs>500</Xmaxerrs>-->
+<!-- </compilerArguments>-->
+<!-- <compilerArgs>-->
+<!-- <arg>-Xlint:unchecked</arg>-->
+<!-- </compilerArgs>-->
+<!-- </configuration>-->
+<!-- </plugin>-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
- <version>2.4</version>
<configuration>
<archive>
<index>true</index>
<manifest>
- <addDefaultImplementationEntries>
- false
- </addDefaultImplementationEntries>
- <addDefaultSpecificationEntries>
- true
- </addDefaultSpecificationEntries>
+ <addDefaultImplementationEntries>false</addDefaultImplementationEntries>
+ <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
<manifestEntries>
<!-- Must be on one line, otherwise the automatic
@@ -104,7 +96,6 @@
</archive>
</configuration>
</plugin>
-
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
@@ -138,56 +129,21 @@
<profiles>
<profile>
- <id>release</id>
+ <id>apache-release</id>
<build>
<plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-source-plugin</artifactId>
- <version>2.2.1</version>
- <executions>
- <execution>
- <id>attach-sources</id>
- <goals>
- <goal>jar-no-fork</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <version>2.9.1</version>
- <executions>
- <execution>
- <id>attach-javadocs</id>
- <goals>
- <goal>jar</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-gpg-plugin</artifactId>
- <version>1.5</version>
- <executions>
- <execution>
- <id>sign-artifacts</id>
- <phase>verify</phase>
- <goals>
- <goal>sign</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <!-- Prevent `gpg` from using pinentry programs -->
- <gpgArguments>
- <arg>--pinentry-mode</arg>
- <arg>loopback</arg>
- </gpgArguments>
- </configuration>
- </plugin>
+<!-- <plugin>-->
+<!-- <groupId>org.apache.maven.plugins</groupId>-->
+<!-- <artifactId>maven-source-plugin</artifactId>-->
+<!-- </plugin>-->
+<!-- <plugin>-->
+<!-- <groupId>org.apache.maven.plugins</groupId>-->
+<!-- <artifactId>maven-javadoc-plugin</artifactId>-->
+<!-- </plugin>-->
+<!-- <plugin>-->
+<!-- <groupId>org.apache.maven.plugins</groupId>-->
+<!-- <artifactId>maven-gpg-plugin</artifactId>-->
+<!-- </plugin>-->
</plugins>
</build>
</profile>
diff --git a/hugegraph-hubble/hubble-be/pom.xml b/hugegraph-hubble/hubble-be/pom.xml
index 590e8a83..781b02f1 100644
--- a/hugegraph-hubble/hubble-be/pom.xml
+++ b/hugegraph-hubble/hubble-be/pom.xml
@@ -90,7 +90,6 @@
<dependency>
<groupId>org.apache.hugegraph</groupId>
<artifactId>hugegraph-common</artifactId>
- <version>${project.version}</version>
</dependency>
<dependency>
diff --git a/hugegraph-hubble/hubble-dist/pom.xml b/hugegraph-hubble/hubble-dist/pom.xml
index 281e2d60..5ad3343f 100644
--- a/hugegraph-hubble/hubble-dist/pom.xml
+++ b/hugegraph-hubble/hubble-dist/pom.xml
@@ -112,6 +112,7 @@
<includes>
<include>*.tar.gz</include>
<include>${final.name}/**</include>
+ <include>.flattened-pom.xml</include>
</includes>
<followSymlinks>false</followSymlinks>
</fileset>
diff --git a/hugegraph-hubble/pom.xml b/hugegraph-hubble/pom.xml
index d8cba158..63188761 100644
--- a/hugegraph-hubble/pom.xml
+++ b/hugegraph-hubble/pom.xml
@@ -28,7 +28,7 @@
<packaging>pom</packaging>
<name>${project.artifactId}</name>
- <url>https://github.com/apache/incubator-hugegraph-toolchain/tree/master/hugegraph-hubble</url>
+ <url>https://github.com/apache/hugegraph-toolchain/tree/master/hugegraph-hubble</url>
<description>
hugegraph-hubble is a graph management and analysis platform that provides features:
graph data load, schema management, graph relationship analysis and graphical display.
diff --git a/hugegraph-loader/pom.xml b/hugegraph-loader/pom.xml
index 419ec33c..256cd418 100644
--- a/hugegraph-loader/pom.xml
+++ b/hugegraph-loader/pom.xml
@@ -25,7 +25,7 @@
</parent>
<artifactId>hugegraph-loader</artifactId>
-<!-- <packaging>jar</packaging>-->
+ <packaging>jar</packaging>
<name>${project.artifactId}</name>
<url>https://github.com/apache/incubator-hugegraph-toolchain/tree/master/hugegraph-loader</url>
@@ -546,58 +546,58 @@
</properties>
</profile>
<profile>
- <id>release</id>
+ <id>apache-release</id>
<build>
<plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-source-plugin</artifactId>
- <executions>
- <execution>
- <id>attach-sources</id>
- <goals>
- <goal>jar-no-fork</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <executions>
- <execution>
- <id>attach-javadocs</id>
- <goals>
- <goal>jar</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <additionalJOptions>
- <additionalJOption>-Xdoclint:none</additionalJOption>
- </additionalJOptions>
- </configuration>
- </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>
- <configuration>
- <!-- Prevent `gpg` from using pinentry programs -->
- <gpgArguments>
- <arg>--pinentry-mode</arg>
- <arg>loopback</arg>
- </gpgArguments>
- </configuration>
- </plugin>
+<!-- <plugin>-->
+<!-- <groupId>org.apache.maven.plugins</groupId>-->
+<!-- <artifactId>maven-source-plugin</artifactId>-->
+<!-- <executions>-->
+<!-- <execution>-->
+<!-- <id>attach-sources</id>-->
+<!-- <goals>-->
+<!-- <goal>jar-no-fork</goal>-->
+<!-- </goals>-->
+<!-- </execution>-->
+<!-- </executions>-->
+<!-- </plugin>-->
+<!-- <plugin>-->
+<!-- <groupId>org.apache.maven.plugins</groupId>-->
+<!-- <artifactId>maven-javadoc-plugin</artifactId>-->
+<!-- <executions>-->
+<!-- <execution>-->
+<!-- <id>attach-javadocs</id>-->
+<!-- <goals>-->
+<!-- <goal>jar</goal>-->
+<!-- </goals>-->
+<!-- </execution>-->
+<!-- </executions>-->
+<!-- <configuration>-->
+<!-- <additionalJOptions>-->
+<!-- <additionalJOption>-Xdoclint:none</additionalJOption>-->
+<!-- </additionalJOptions>-->
+<!-- </configuration>-->
+<!-- </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>-->
+<!-- <configuration>-->
+<!-- <!– Prevent `gpg` from using pinentry programs –>-->
+<!-- <gpgArguments>-->
+<!-- <arg>--pinentry-mode</arg>-->
+<!-- <arg>loopback</arg>-->
+<!-- </gpgArguments>-->
+<!-- </configuration>-->
+<!-- </plugin>-->
</plugins>
</build>
</profile>
@@ -605,19 +605,19 @@
<build>
<plugins>
- <plugin>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>${compiler.source}</source>
- <target>${compiler.target}</target>
- <compilerArguments>
- <Xmaxerrs>500</Xmaxerrs>
- </compilerArguments>
- <compilerArgs>
- <arg>-Xlint:unchecked</arg>
- </compilerArgs>
- </configuration>
- </plugin>
+<!-- <plugin>-->
+<!-- <artifactId>maven-compiler-plugin</artifactId>-->
+<!-- <configuration>-->
+<!-- <source>${compiler.source}</source>-->
+<!-- <target>${compiler.target}</target>-->
+<!-- <compilerArguments>-->
+<!-- <Xmaxerrs>500</Xmaxerrs>-->
+<!-- </compilerArguments>-->
+<!-- <compilerArgs>-->
+<!-- <arg>-Xlint:unchecked</arg>-->
+<!-- </compilerArgs>-->
+<!-- </configuration>-->
+<!-- </plugin>-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
@@ -660,24 +660,24 @@
</execution>
</executions>
</plugin>
- <plugin>
- <artifactId>maven-clean-plugin</artifactId>
- <configuration>
- <filesets>
- <fileset>
- <directory>${project.basedir}</directory>
- <includes>
- <include>*.tar.gz</include>
- <include>${final.name}/**</include>
- </includes>
- <followSymlinks>false</followSymlinks>
- </fileset>
- <fileset>
- <directory>${final.name}</directory>
- </fileset>
- </filesets>
- </configuration>
- </plugin>
+<!-- <plugin>-->
+<!-- <artifactId>maven-clean-plugin</artifactId>-->
+<!-- <configuration>-->
+<!-- <filesets>-->
+<!-- <fileset>-->
+<!-- <directory>${project.basedir}</directory>-->
+<!-- <includes>-->
+<!-- <include>*.tar.gz</include>-->
+<!-- <include>${final.name}/**</include>-->
+<!-- </includes>-->
+<!-- <followSymlinks>false</followSymlinks>-->
+<!-- </fileset>-->
+<!-- <fileset>-->
+<!-- <directory>${final.name}</directory>-->
+<!-- </fileset>-->
+<!-- </filesets>-->
+<!-- </configuration>-->
+<!-- </plugin>-->
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
diff --git a/hugegraph-tools/pom.xml b/hugegraph-tools/pom.xml
index b6bfc9a4..6bd82106 100644
--- a/hugegraph-tools/pom.xml
+++ b/hugegraph-tools/pom.xml
@@ -27,7 +27,7 @@
<artifactId>hugegraph-tools</artifactId>
<packaging>jar</packaging>
- <url>https://github.com/apache/incubator-hugegraph-toolchain/tree/master/hugegraph-tools</url>
+ <url>https://github.com/apache/hugegraph-toolchain/tree/master/hugegraph-tools</url>
<name>${project.artifactId}</name>
<properties>
@@ -38,33 +38,22 @@
<shell-executable>bash</shell-executable>
<junit.version>4.12</junit.version>
<maven.build.timestamp.format>yyyy-MM-dd HH:mm:ssZ</maven.build.timestamp.format>
- <hugegraph-client-version>1.0.0</hugegraph-client-version>
<jcommand-version>1.72</jcommand-version>
<hadoop-version>3.1.1</hadoop-version>
<guava.version>25.1-jre</guava.version>
</properties>
- <dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>${junit.version}</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
- </dependencyManagement>
-
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
+ <version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.hugegraph</groupId>
<artifactId>hugegraph-client</artifactId>
- <version>${hugegraph-client-version}</version>
+ <version>${revision}</version>
<exclusions>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
@@ -188,16 +177,15 @@
<build>
<plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.7.0</version>
- <configuration>
- <source>${java.version}</source>
- <target>${java.version}</target>
- <encoding>${project.build.sourceEncoding}</encoding>
- </configuration>
- </plugin>
+<!-- <plugin>-->
+<!-- <groupId>org.apache.maven.plugins</groupId>-->
+<!-- <artifactId>maven-compiler-plugin</artifactId>-->
+<!-- <configuration>-->
+<!-- <source>${java.version}</source>-->
+<!-- <target>${java.version}</target>-->
+<!-- <encoding>${project.build.sourceEncoding}</encoding>-->
+<!-- </configuration>-->
+<!-- </plugin>-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
@@ -240,32 +228,31 @@
</execution>
</executions>
</plugin>
- <plugin>
- <artifactId>maven-clean-plugin</artifactId>
- <version>3.0.0</version>
- <configuration>
- <filesets>
- <fileset>
- <directory>${project.basedir}</directory>
- <includes>
- <include>*.tar.gz</include>
- <include>${final.name}/**</include>
- </includes>
- <followSymlinks>false</followSymlinks>
- </fileset>
- <fileset>
- <directory>${final.name}</directory>
- </fileset>
- </filesets>
- </configuration>
- </plugin>
+<!-- <plugin>-->
+<!-- <artifactId>maven-clean-plugin</artifactId>-->
+<!-- <configuration>-->
+<!-- <filesets>-->
+<!-- <fileset>-->
+<!-- <directory>${project.basedir}</directory>-->
+<!-- <includes>-->
+<!-- <include>*.tar.gz</include>-->
+<!-- <include>${final.name}/**</include>-->
+<!-- </includes>-->
+<!-- <followSymlinks>false</followSymlinks>-->
+<!-- </fileset>-->
+<!-- <fileset>-->
+<!-- <directory>${final.name}</directory>-->
+<!-- </fileset>-->
+<!-- </filesets>-->
+<!-- </configuration>-->
+<!-- </plugin>-->
</plugins>
</build>
<profiles>
<!-- mvn clean install -Prelease -->
<profile>
- <id>release</id>
+ <id>apache-release</id>
<build>
<plugins>
<plugin>
@@ -294,13 +281,13 @@
</execution>
</executions>
</plugin>
- <plugin>
- <artifactId>maven-release-plugin</artifactId>
- <configuration>
- <!-- Pass these arguments to the deploy plugin. -->
- <arguments>-Prelease</arguments>
- </configuration>
- </plugin>
+<!-- <plugin>-->
+<!-- <artifactId>maven-release-plugin</artifactId>-->
+<!-- <configuration>-->
+<!-- <!– Pass these arguments to the deployment plugin. –>-->
+<!-- <arguments>-Prelease</arguments>-->
+<!-- </configuration>-->
+<!-- </plugin>-->
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
diff --git a/pom.xml b/pom.xml
index 7b9758df..09220c8d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -116,93 +116,106 @@
<docker.repo>${project.name}</docker.repo>
<docker.tag>${project.version}</docker.tag>
<hbase.version>2.2.3</hbase.version>
+ <hugegraph.common.version>1.0.0</hugegraph.common.version>
</properties>
- <dependencies>
- <!--TODO: enhance it later to avoid conflicts now -->
-<!-- <dependency>-->
-<!-- <groupId>commons-io</groupId>-->
-<!-- <artifactId>commons-io</artifactId>-->
-<!-- <version>2.7</version>-->
-<!-- </dependency>-->
-<!-- <dependency>-->
-<!-- <groupId>org.apache.commons</groupId>-->
-<!-- <artifactId>commons-lang3</artifactId>-->
-<!-- <version>3.9</version>-->
-<!-- </dependency>-->
-<!-- <dependency>-->
-<!-- <groupId>com.google.guava</groupId>-->
-<!-- <artifactId>guava</artifactId>-->
-<!-- <version>29.0-jre</version>-->
-<!-- </dependency>-->
-<!-- <dependency>-->
-<!-- <groupId>org.apache.commons</groupId>-->
-<!-- <artifactId>commons-compress</artifactId>-->
-<!-- <version>1.21</version>-->
-<!-- </dependency>-->
- </dependencies>
+ <!-- Note: dependencies won't be imported in root & won't be inherited by default,
+ just defined for submodules (more flexible) -->
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.hugegraph</groupId>
+ <artifactId>hugegraph-common</artifactId>
+ <version>${hugegraph.common.version}</version>
+ </dependency>
-<!-- <profiles>-->
-<!-- <profile>-->
-<!-- <id>release</id>-->
-<!-- <build>-->
-<!-- <plugins>-->
-<!-- <plugin>-->
-<!-- <groupId>org.apache.maven.plugins</groupId>-->
-<!-- <artifactId>maven-source-plugin</artifactId>-->
-<!-- <version>2.2.1</version>-->
-<!-- <executions>-->
-<!-- <execution>-->
-<!-- <id>attach-sources</id>-->
-<!-- <goals>-->
-<!-- <goal>jar-no-fork</goal>-->
-<!-- </goals>-->
-<!-- </execution>-->
-<!-- </executions>-->
-<!-- </plugin>-->
-<!-- <plugin>-->
-<!-- <groupId>org.apache.maven.plugins</groupId>-->
-<!-- <artifactId>maven-javadoc-plugin</artifactId>-->
-<!-- <version>2.9.1</version>-->
-<!-- <executions>-->
-<!-- <execution>-->
-<!-- <id>attach-javadocs</id>-->
-<!-- <goals>-->
-<!-- <goal>jar</goal>-->
-<!-- </goals>-->
-<!-- </execution>-->
-<!-- </executions>-->
-<!-- <configuration>-->
-<!-- <additionalJOptions>-->
-<!-- <additionalJOption>-Xdoclint:none</additionalJOption>-->
-<!-- </additionalJOptions>-->
-<!-- </configuration>-->
-<!-- </plugin>-->
-<!-- <plugin>-->
-<!-- <groupId>org.apache.maven.plugins</groupId>-->
-<!-- <artifactId>maven-gpg-plugin</artifactId>-->
-<!-- <version>1.5</version>-->
-<!-- <executions>-->
-<!-- <execution>-->
-<!-- <id>sign-artifacts</id>-->
-<!-- <phase>verify</phase>-->
-<!-- <goals>-->
-<!-- <goal>sign</goal>-->
-<!-- </goals>-->
-<!-- </execution>-->
-<!-- </executions>-->
-<!-- <configuration>-->
-<!-- <!– Prevent `gpg` from using pinentry programs –>-->
-<!-- <gpgArguments>-->
-<!-- <arg>--pinentry-mode</arg>-->
-<!-- <arg>loopback</arg>-->
-<!-- </gpgArguments>-->
-<!-- </configuration>-->
-<!-- </plugin>-->
-<!-- </plugins>-->
-<!-- </build>-->
-<!-- </profile>-->
-<!-- </profiles>-->
+ <!--TODO: enhance it later to avoid conflicts now -->
+ <!-- <dependency>-->
+ <!-- <groupId>commons-io</groupId>-->
+ <!-- <artifactId>commons-io</artifactId>-->
+ <!-- <version>2.7</version>-->
+ <!-- </dependency>-->
+ <!-- <dependency>-->
+ <!-- <groupId>org.apache.commons</groupId>-->
+ <!-- <artifactId>commons-lang3</artifactId>-->
+ <!-- <version>3.9</version>-->
+ <!-- </dependency>-->
+ <!-- <dependency>-->
+ <!-- <groupId>com.google.guava</groupId>-->
+ <!-- <artifactId>guava</artifactId>-->
+ <!-- <version>29.0-jre</version>-->
+ <!-- </dependency>-->
+ <!-- <dependency>-->
+ <!-- <groupId>org.apache.commons</groupId>-->
+ <!-- <artifactId>commons-compress</artifactId>-->
+ <!-- <version>1.21</version>-->
+ <!-- </dependency>-->
+ </dependencies>
+ </dependencyManagement>
+
+ <dependencies> <!-- dependencies will be inherited by default here --></dependencies>
+
+ <profiles>
+ <profile>
+ <id>apache-release</id>
+ <build>
+ <!-- plugins under management won't be executed in root & won't be inherited
+ by default, just defined for submodules (more flexible)
+ refer: https://maven.apache.org/pom.html#Plugin_Management -->
+ <!--<pluginManagement></pluginManagement>-->
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-sources</id>
+ <goals>
+ <goal>jar-no-fork</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-javadocs</id>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <doclint>none</doclint>
+ <failOnError>false</failOnError>
+ </configuration>
+ </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>
+ <configuration>
+ <!-- Prevent `gpg` from using pinentry programs -->
+ <gpgArguments>
+ <arg>--pinentry-mode</arg>
+ <arg>loopback</arg>
+ </gpgArguments>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
<build>
<plugins>
@@ -239,10 +252,10 @@
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
- <version>3.1</version>
<configuration>
<source>${compiler.source}</source>
<target>${compiler.target}</target>
+ <encoding>${project.build.sourceEncoding}</encoding>
<compilerArguments>
<Xmaxerrs>500</Xmaxerrs>
</compilerArguments>
@@ -298,25 +311,25 @@
<!-- </execution>-->
<!-- </executions>-->
<!-- </plugin>-->
-<!-- <plugin>-->
-<!-- <artifactId>maven-clean-plugin</artifactId>-->
-<!-- <version>3.0.0</version>-->
-<!-- <configuration>-->
-<!-- <filesets>-->
-<!-- <fileset>-->
-<!-- <directory>${project.basedir}</directory>-->
-<!-- <includes>-->
-<!-- <include>*.tar.gz</include>-->
-<!-- <include>${final.name}/**</include>-->
-<!-- </includes>-->
-<!-- <followSymlinks>false</followSymlinks>-->
-<!-- </fileset>-->
-<!-- <fileset>-->
-<!-- <directory>${final.name}</directory>-->
-<!-- </fileset>-->
-<!-- </filesets>-->
-<!-- </configuration>-->
-<!-- </plugin>-->
+ <plugin>
+ <artifactId>maven-clean-plugin</artifactId>
+ <configuration>
+ <filesets>
+ <fileset>
+ <directory>${project.basedir}</directory>
+ <includes>
+ <include>*.tar.gz</include>
+ <include>${final.name}/**</include>
+ <include>.flattened-pom.xml</include>
+ </includes>
+ <followSymlinks>false</followSymlinks>
+ </fileset>
+ <fileset>
+ <directory>${final.name}</directory>
+ </fileset>
+ </filesets>
+ </configuration>
+ </plugin>
<!-- <plugin>-->
<!-- <groupId>org.jacoco</groupId>-->
<!-- <artifactId>jacoco-maven-plugin</artifactId>-->
@@ -416,7 +429,6 @@
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
- <version>0.15</version>
<configuration>
<excludes>
<exclude>**/*.versionsBackup</exclude>