You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by xi...@apache.org on 2020/01/13 23:28:22 UTC
[incubator-pinot] branch pinot-all-in-one-jar created (now 1214ca7)
This is an automated email from the ASF dual-hosted git repository.
xiangfu pushed a change to branch pinot-all-in-one-jar
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git.
at 1214ca7 Make pinot-distribution to build a pinot-all-in-one jar and assemble that into pinot distribution
This branch includes the following new commits:
new 1214ca7 Make pinot-distribution to build a pinot-all-in-one jar and assemble that into pinot distribution
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
[incubator-pinot] 01/01: Make pinot-distribution to build a
pinot-all-in-one jar and assemble that into pinot distribution
Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xiangfu pushed a commit to branch pinot-all-in-one-jar
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git
commit 1214ca7c62d14a6b7774c8d3d94bc40cff16678f
Author: Xiang Fu <fx...@gmail.com>
AuthorDate: Mon Jan 13 15:28:05 2020 -0800
Make pinot-distribution to build a pinot-all-in-one jar and assemble that into pinot distribution
---
pinot-distribution/pinot-assembly.xml | 24 ++++------------------
pinot-distribution/pom.xml | 18 ++++++++++++++++
.../pinot-batch-ingestion-standalone/pom.xml | 3 +++
.../src/main/resources/appAssemblerScriptTemplate | 2 +-
4 files changed, 26 insertions(+), 21 deletions(-)
diff --git a/pinot-distribution/pinot-assembly.xml b/pinot-distribution/pinot-assembly.xml
index 9e7abcc..b845460 100644
--- a/pinot-distribution/pinot-assembly.xml
+++ b/pinot-distribution/pinot-assembly.xml
@@ -28,26 +28,6 @@
<format>dir</format>
</formats>
<includeBaseDirectory>true</includeBaseDirectory>
- <dependencySets>
- <dependencySet>
- <useProjectArtifact>false</useProjectArtifact>
- <useTransitiveDependencies>true</useTransitiveDependencies>
- <outputDirectory>lib</outputDirectory>
- <unpack>false</unpack>
- <excludes>
- <exclude>${project.groupId}:*:*</exclude>
- </excludes>
- </dependencySet>
- <dependencySet>
- <useProjectArtifact>false</useProjectArtifact>
- <useTransitiveDependencies>true</useTransitiveDependencies>
- <outputDirectory>lib</outputDirectory>
- <unpack>false</unpack>
- <includes>
- <include>${project.groupId}:*:*</include>
- </includes>
- </dependencySet>
- </dependencySets>
<files>
<!-- Rename LICENSE-binary, NOTICE-binary to LICENSE, NOTICE and include them to a distribution tarbell -->
@@ -63,6 +43,10 @@
<file>
<source>${pinot.root}/DISCLAIMER</source>
</file>
+ <file>
+ <source>${pinot.root}/pinot-distribution/target/pinot-all-in-one-${project.version}-jar-with-dependencies.jar</source>
+ <destName>lib/pinot-all-in-one-${project.version}-jar-with-dependencies.jar</destName>
+ </file>
</files>
<fileSets>
<!-- Rename licenses-binary directory to licenses and include it to a distribution tarbell -->
diff --git a/pinot-distribution/pom.xml b/pinot-distribution/pom.xml
index f7478a6..dae986b 100644
--- a/pinot-distribution/pom.xml
+++ b/pinot-distribution/pom.xml
@@ -116,6 +116,24 @@
</algorithms>
</configuration>
</plugin>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>build-pinot-all-in-one-jar</id>
+ <configuration>
+ <descriptorRefs>
+ <descriptorRef>jar-with-dependencies</descriptorRef>
+ </descriptorRefs>
+ <finalName>pinot-all-in-one-${project.version}</finalName>
+ </configuration>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
<profiles>
diff --git a/pinot-plugins/pinot-batch-ingestion/pinot-batch-ingestion-standalone/pom.xml b/pinot-plugins/pinot-batch-ingestion/pinot-batch-ingestion-standalone/pom.xml
index 449571a..b8c8360 100644
--- a/pinot-plugins/pinot-batch-ingestion/pinot-batch-ingestion-standalone/pom.xml
+++ b/pinot-plugins/pinot-batch-ingestion/pinot-batch-ingestion-standalone/pom.xml
@@ -40,16 +40,19 @@
<groupId>org.apache.pinot</groupId>
<artifactId>pinot-spi</artifactId>
<version>${project.version}</version>
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.pinot</groupId>
<artifactId>pinot-common</artifactId>
<version>${project.version}</version>
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.pinot</groupId>
<artifactId>pinot-core</artifactId>
<version>${project.version}</version>
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
diff --git a/pinot-tools/src/main/resources/appAssemblerScriptTemplate b/pinot-tools/src/main/resources/appAssemblerScriptTemplate
index 06a7fb5..6ed5edd 100644
--- a/pinot-tools/src/main/resources/appAssemblerScriptTemplate
+++ b/pinot-tools/src/main/resources/appAssemblerScriptTemplate
@@ -96,7 +96,7 @@ then
REPO="$BASEDIR"/@REPO@
fi
-CLASSPATH=@CLASSPATH@
+CLASSPATH="$BASEDIR"/@REPO@/*
ENDORSED_DIR=@ENDORSED_DIR@
if [ -n "$ENDORSED_DIR" ] ; then
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org