You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by jf...@apache.org on 2019/08/02 12:29:49 UTC
[incubator-iotdb] branch master updated: Merge pull request #329
from apache/feature/fix-binary-distribution
This is an automated email from the ASF dual-hosted git repository.
jfeinauer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 8ccf006 Merge pull request #329 from apache/feature/fix-binary-distribution
8ccf006 is described below
commit 8ccf00688e36c72958f39505844e3d8dc58a3981
Author: Julian <j....@pragmaticminds.de>
AuthorDate: Fri Aug 2 14:16:44 2019 +0200
Merge pull request #329 from apache/feature/fix-binary-distribution
- Fix the main issues with the assembly of the binary distribution.
---
distribution/pom.xml | 86 ++++++++++++++++++++++
.../src}/assembly/distribution.xml | 24 ++++--
pom.xml | 15 +---
3 files changed, 103 insertions(+), 22 deletions(-)
diff --git a/distribution/pom.xml b/distribution/pom.xml
new file mode 100644
index 0000000..1557d79
--- /dev/null
+++ b/distribution/pom.xml
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.iotdb</groupId>
+ <artifactId>iotdb-parent</artifactId>
+ <version>0.8.0-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+ <artifactId>iotdb-distribution</artifactId>
+ <name>IoTDB Distribution</name>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <executions>
+ <!-- Package binaries-->
+ <execution>
+ <id>binary-release-assembly</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <configuration>
+ <descriptors>
+ <descriptor>src/assembly/distribution.xml</descriptor>
+ </descriptors>
+ <finalName>apache-iotdb-${project.version}-incubating</finalName>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <!--
+ Create SHA512 checksum files for the release artifacts.
+ -->
+ <plugin>
+ <groupId>net.nicoulaj.maven.plugins</groupId>
+ <artifactId>checksum-maven-plugin</artifactId>
+ <version>1.8</version>
+ <executions>
+ <execution>
+ <id>sign-source-release</id>
+ <phase>package</phase>
+ <goals>
+ <goal>files</goal>
+ </goals>
+ <configuration>
+ <algorithms>
+ <algorithm>SHA-512</algorithm>
+ </algorithms>
+ <fileSets>
+ <fileSet>
+ <directory>${project.build.directory}</directory>
+ <includes>
+ <include>apache-iotdb-${project.version}-incubating-bin.zip</include>
+ </includes>
+ </fileSet>
+ </fileSets>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/src/assembly/distribution.xml b/distribution/src/assembly/distribution.xml
similarity index 82%
rename from src/assembly/distribution.xml
rename to distribution/src/assembly/distribution.xml
index 00721f9..736b276 100644
--- a/src/assembly/distribution.xml
+++ b/distribution/src/assembly/distribution.xml
@@ -25,15 +25,31 @@
<format>zip</format>
</formats>
<includeBaseDirectory>true</includeBaseDirectory>
+ <moduleSets>
+ <moduleSet>
+ <!-- Forces the assembly module to be moved to the end of the build -->
+ <useAllReactorProjects>true</useAllReactorProjects>
+ <includes>
+ <include>org.apache.iotdb:iotdb-server</include>
+ <include>org.apache.iotdb:iotdb-client</include>
+ </includes>
+ <binaries>
+ <outputDirectory>lib</outputDirectory>
+ <unpack>false</unpack>
+ </binaries>
+ </moduleSet>
+ </moduleSets>
<files>
<file>
<source>${maven.multiModuleProjectDirectory}/README.md</source>
</file>
<file>
<source>${maven.multiModuleProjectDirectory}/LICENSE-binary</source>
+ <destName>LICENSE</destName>
</file>
<file>
<source>${maven.multiModuleProjectDirectory}/NOTICE-binary</source>
+ <destName>NOTICE</destName>
</file>
<file>
<source>${maven.multiModuleProjectDirectory}/DISCLAIMER</source>
@@ -56,14 +72,6 @@
<outputDirectory>conf</outputDirectory>
</fileSet>
<fileSet>
- <directory>${maven.multiModuleProjectDirectory}/server/iotdb/lib</directory>
- <outputDirectory>lib</outputDirectory>
- </fileSet>
- <fileSet>
- <directory>${maven.multiModuleProjectDirectory}/client/cli/lib</directory>
- <outputDirectory>lib</outputDirectory>
- </fileSet>
- <fileSet>
<directory>${maven.multiModuleProjectDirectory}/server/iotdb/sbin</directory>
<outputDirectory>sbin</outputDirectory>
</fileSet>
diff --git a/pom.xml b/pom.xml
index 8369f11..917718e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -143,6 +143,7 @@
<module>grafana</module>
<module>spark-tsfile</module>
<!-- <module>hadoop</module> -->
+ <module>distribution</module>
</modules>
<build>
<pluginManagement>
@@ -608,19 +609,6 @@
<finalName>apache-iotdb-${project.version}-incubating</finalName>
</configuration>
</execution>
- <!-- Package binaries-->
- <execution>
- <phase>package</phase>
- <goals>
- <goal>single</goal>
- </goals>
- <configuration>
- <descriptors>
- <descriptor>src/assembly/distribution.xml</descriptor>
- </descriptors>
- <finalName>apache-iotdb-${project.version}-incubating</finalName>
- </configuration>
- </execution>
</executions>
</plugin>
<!--
@@ -646,7 +634,6 @@
<directory>${project.build.directory}</directory>
<includes>
<include>apache-iotdb-${project.version}-incubating-source-release.zip</include>
- <include>apache-iotdb-${project.version}-incubating-bin.zip</include>
</includes>
</fileSet>
</fileSets>