Skip to content

Commit

Permalink
Update pom files for preparing Apache release (#3772)
Browse files Browse the repository at this point in the history
1. Changed the version from "0.016" to "0.1.0-SNAPSHOT"
2. Added two profiles (-Psrc-dist, -Pbin-dist) for creating
   binary, source distribution tarbell. For bin-dist profile,
   LICENSE-binary, NOTICE-binary, and licenses-binary are
   included to a distribution tarbell after removing "-binary"
   from their names.
3. Added "maven-remote-resources-plugin" to include NOTICE,
   LICENSE, DISCLAIMER files in META-INF/ for jar bundle.

From now on, "mvn install -DskipTest" will only package the
projects into jars. In order to create a binary distribution
or source distribution, we will need to run the following
commands:

mvn install -Psrc-dist -DskipTests
mvn install -Pbin-dist -DskipTests
mvn install -Psrc-dist,bin-dist -DskipTests
  • Loading branch information
Seunghyun Lee committed Feb 1, 2019
1 parent 7e28022 commit f48fdd3
Show file tree
Hide file tree
Showing 21 changed files with 185 additions and 111 deletions.
18 changes: 8 additions & 10 deletions DISCLAIMER
@@ -1,12 +1,10 @@
Apache Pinot (incubating) is an effort undergoing incubation at
the Apache Software Foundation (ASF), sponsored by the Apache
Incubator PMC.
Apache Pinot (incubating) is an effort undergoing incubation at the Apache Software
Foundation (ASF), sponsored by the Apache Incubator PMC.

Incubation is required of all newly accepted projects until a
further review indicates that the infrastructure, communications,
and decision making process have stabilized in a manner consistent
with other successful ASF projects.
Incubation is required of all newly accepted projects until a further review
indicates that the infrastructure, communications, and decision making process
have stabilized in a manner consistent with other successful ASF projects.

While incubation status is not necessarily a reflection of the
completeness or stability of the code, it does indicate that the
project has yet to be fully endorsed by the ASF.
While incubation status is not necessarily a reflection of the completeness
or stability of the code, it does indicate that the project has yet to be
fully endorsed by the ASF.
2 changes: 1 addition & 1 deletion NOTICE
@@ -1,5 +1,5 @@
Apache Pinot (incubating)
Copyright 2018 The Apache Software Foundation
Copyright 2018-2019 The Apache Software Foundation

This product includes software developed at
The Apache Software Foundation (http://www.apache.org/).
3 changes: 1 addition & 2 deletions pinot-api/pom.xml
Expand Up @@ -25,10 +25,9 @@
<parent>
<artifactId>pinot</artifactId>
<groupId>org.apache.pinot</groupId>
<version>0.016</version>
<version>0.1.0-SNAPSHOT</version>
</parent>
<artifactId>pinot-api</artifactId>
<version>0.016</version>
<name>Pinot API</name>
<url>https://pinot.apache.org/</url>
<properties>
Expand Down
3 changes: 1 addition & 2 deletions pinot-azure-filesystem/pom.xml
Expand Up @@ -25,10 +25,9 @@
<parent>
<artifactId>pinot</artifactId>
<groupId>org.apache.pinot</groupId>
<version>0.016</version>
<version>0.1.0-SNAPSHOT</version>
</parent>
<artifactId>pinot-azure-filesystem</artifactId>
<version>0.016</version>
<name>Pinot Azure Filesystem</name>
<url>https://pinot.apache.org/</url>
<properties>
Expand Down
3 changes: 1 addition & 2 deletions pinot-broker/pom.xml
Expand Up @@ -25,10 +25,9 @@
<parent>
<artifactId>pinot</artifactId>
<groupId>org.apache.pinot</groupId>
<version>0.016</version>
<version>0.1.0-SNAPSHOT</version>
</parent>
<artifactId>pinot-broker</artifactId>
<version>0.016</version>
<name>Pinot Broker</name>
<url>https://pinot.apache.org/</url>
<properties>
Expand Down
3 changes: 1 addition & 2 deletions pinot-common/pom.xml
Expand Up @@ -25,10 +25,9 @@
<parent>
<artifactId>pinot</artifactId>
<groupId>org.apache.pinot</groupId>
<version>0.016</version>
<version>0.1.0-SNAPSHOT</version>
</parent>
<artifactId>pinot-common</artifactId>
<version>0.016</version>
<name>Pinot Common</name>
<url>https://pinot.apache.org/</url>
<properties>
Expand Down
3 changes: 1 addition & 2 deletions pinot-controller/pom.xml
Expand Up @@ -25,10 +25,9 @@
<parent>
<artifactId>pinot</artifactId>
<groupId>org.apache.pinot</groupId>
<version>0.016</version>
<version>0.1.0-SNAPSHOT</version>
</parent>
<artifactId>pinot-controller</artifactId>
<version>0.016</version>
<name>Pinot Controller</name>
<url>https://pinot.apache.org/</url>
<properties>
Expand Down
3 changes: 1 addition & 2 deletions pinot-core/pom.xml
Expand Up @@ -25,10 +25,9 @@
<parent>
<artifactId>pinot</artifactId>
<groupId>org.apache.pinot</groupId>
<version>0.016</version>
<version>0.1.0-SNAPSHOT</version>
</parent>
<artifactId>pinot-core</artifactId>
<version>0.016</version>
<name>Pinot Core</name>
<url>https://pinot.apache.org/</url>
<properties>
Expand Down
27 changes: 21 additions & 6 deletions pinot-distribution/pinot-assembly.xml
Expand Up @@ -24,7 +24,7 @@
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id>bin</id>
<formats>
<format>zip</format>
<format>tar.gz</format>
<format>dir</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
Expand All @@ -48,13 +48,28 @@
</includes>
</dependencySet>
</dependencySets>

<files>
<!-- Rename LICENSE-binary, NOTICE-binary to LICENSE, NOTICE and include them to a distribution tarbell -->
<file>
<source>${pinot.root}/LICENSE-binary</source>
<destName>LICENSE</destName>
</file>
<file>
<source>${pinot.root}/NOTICE-binary</source>
<destName>NOTICE</destName>
</file>
<!-- Include DISCLAIMER -->
<file>
<source>${pinot.root}/DISCLAIMER</source>
</file>
</files>
<fileSets>
<!-- Rename liscenses-binary directory to licenses and include it to a distribution tarbell -->
<fileSet>
<directory>${pinot.root}</directory>
<includes>
<include>LICENSE</include>
</includes>
<outputDirectory></outputDirectory>
<useDefaultExcludes>false</useDefaultExcludes>
<directory>${pinot.root}/licenses-binary</directory>
<outputDirectory>licenses</outputDirectory>
</fileSet>
<fileSet>
<useDefaultExcludes>false</useDefaultExcludes>
Expand Down
47 changes: 47 additions & 0 deletions pinot-distribution/pinot-source-assembly.xml
@@ -0,0 +1,47 @@
<!--
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.
-->
<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id>source-release</id>
<formats>
<format>tar.gz</format>
</formats>
<fileSets>
<fileSet>
<directory>${pinot.root}</directory>
<excludes>
<exclude>**/target/**</exclude>
<exclude>**/*.iml</exclude>
<exclude>**/*.ipr</exclude>
<exclude>**/*.iws</exclude>
<exclude>**/*.log</exclude>
<exclude>**/.idea/**</exclude>
<exclude>thirdeye/**</exclude>
<exclude>.travis*</exclude>
<exclude>.codecov*</exclude>
<exclude>.gitignore</exclude>
<exclude>contrib/**</exclude>
</excludes>
</fileSet>
</fileSets>
</assembly>
95 changes: 46 additions & 49 deletions pinot-distribution/pom.xml
Expand Up @@ -22,13 +22,13 @@
<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>
<packaging>pom</packaging>
<parent>
<artifactId>pinot</artifactId>
<groupId>org.apache.pinot</groupId>
<version>0.016</version>
<version>0.1.0-SNAPSHOT</version>
</parent>
<artifactId>pinot-distribution</artifactId>
<version>0.016</version>
<name>Pinot Distribution</name>
<url>https://pinot.apache.org/</url>
<properties>
Expand Down Expand Up @@ -85,67 +85,64 @@
<artifactId>pinot-tools</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<finalName>pinot-${project.version}-pkg</finalName>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
<executions>
<execution>
<id>make-bundles</id>
<goals>
<goal>single</goal>
</goals>
<phase>package</phase>
<configuration>
<descriptors>
<descriptor>pinot-assembly.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>github-release-profile</id>
<activation>
<activeByDefault>false</activeByDefault>
<property>
<name>doGitHubRelease</name>
<value>true</value>
</property>
</activation>
<id>src-dist</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>source-release-assembly-pinot</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<finalName>apache-pinot-incubating-${project.version}-src</finalName>
<tarLongFileMode>posix</tarLongFileMode>
<descriptors>
<descriptor>${pinot.root}/pinot-distribution/pinot-source-assembly.xml</descriptor>
</descriptors>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>bin-dist</id>
<build>
<plugins>
<plugin>
<groupId>de.jutzig</groupId>
<artifactId>github-release-plugin</artifactId>
<version>1.1.1</version>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<description></description>
<releaseName>SNAPSHOT ${maven.build.timestamp}</releaseName>
<tag>SNAPSHOT-${maven.build.timestamp}</tag>
<repositoryId>linkedin/pinot</repositoryId>
<artifact>${project.build.directory}/pinot-${project.version}-pkg.zip</artifact>
<finalName>apache-pinot-incubating-${project.version}-bin</finalName>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
<executions>
<execution>
<phase>install</phase>
<id>make-bundles</id>
<goals>
<goal>release</goal>
<goal>single</goal>
</goals>
<phase>package</phase>
<configuration>
<descriptors>
<descriptor>pinot-assembly.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
Expand Down
3 changes: 1 addition & 2 deletions pinot-filesystem/pom.xml
Expand Up @@ -25,10 +25,9 @@
<parent>
<artifactId>pinot</artifactId>
<groupId>org.apache.pinot</groupId>
<version>0.016</version>
<version>0.1.0-SNAPSHOT</version>
</parent>
<artifactId>pinot-filesystem</artifactId>
<version>0.016</version>
<name>Pinot Filesystem</name>
<url>https://pinot.apache.org/</url>
<properties>
Expand Down
5 changes: 2 additions & 3 deletions pinot-hadoop-filesystem/pom.xml
Expand Up @@ -25,10 +25,9 @@
<parent>
<artifactId>pinot</artifactId>
<groupId>org.apache.pinot</groupId>
<version>0.016</version>
<version>0.1.0-SNAPSHOT</version>
</parent>
<artifactId>pinot-hadoop-filesystem</artifactId>
<version>0.016</version>
<name>Pinot Hadoop Filesystem</name>
<url>https://pinot.apache.org/</url>
<properties>
Expand Down Expand Up @@ -75,7 +74,7 @@
<dependency>
<groupId>org.apache.pinot</groupId>
<artifactId>pinot-filesystem</artifactId>
<version>0.016</version>
<version>${project.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
3 changes: 1 addition & 2 deletions pinot-hadoop/pom.xml
Expand Up @@ -25,10 +25,9 @@
<parent>
<artifactId>pinot</artifactId>
<groupId>org.apache.pinot</groupId>
<version>0.016</version>
<version>0.1.0-SNAPSHOT</version>
</parent>
<artifactId>pinot-hadoop</artifactId>
<version>0.016</version>
<name>Pinot Hadoop</name>
<url>https://pinot.apache.org/</url>
<properties>
Expand Down
3 changes: 1 addition & 2 deletions pinot-integration-tests/pom.xml
Expand Up @@ -25,10 +25,9 @@
<parent>
<artifactId>pinot</artifactId>
<groupId>org.apache.pinot</groupId>
<version>0.016</version>
<version>0.1.0-SNAPSHOT</version>
</parent>
<artifactId>pinot-integration-tests</artifactId>
<version>0.016</version>
<name>Pinot Integration Tests</name>
<url>https://pinot.apache.org/</url>
<properties>
Expand Down
3 changes: 1 addition & 2 deletions pinot-minion/pom.xml
Expand Up @@ -25,10 +25,9 @@
<parent>
<artifactId>pinot</artifactId>
<groupId>org.apache.pinot</groupId>
<version>0.016</version>
<version>0.1.0-SNAPSHOT</version>
</parent>
<artifactId>pinot-minion</artifactId>
<version>0.016</version>
<name>Pinot Minion</name>
<url>https://pinot.apache.org/</url>
<properties>
Expand Down
3 changes: 1 addition & 2 deletions pinot-perf/pom.xml
Expand Up @@ -25,10 +25,9 @@
<parent>
<artifactId>pinot</artifactId>
<groupId>org.apache.pinot</groupId>
<version>0.016</version>
<version>0.1.0-SNAPSHOT</version>
</parent>
<artifactId>pinot-perf</artifactId>
<version>0.016</version>
<name>Pinot Perf</name>
<url>https://pinot.apache.org/</url>
<properties>
Expand Down

0 comments on commit f48fdd3

Please sign in to comment.