Skip to content

Commit

Permalink
Move plugin assembly into a separate profile to fix apache release (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackie-Jiang authored Nov 7, 2024
1 parent 2f73107 commit 0eea5c5
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 47 deletions.
9 changes: 0 additions & 9 deletions pinot-plugins/pinot-metrics/pinot-dropwizard/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,6 @@
<shade.phase.prop>package</shade.phase.prop>
</properties>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>io.dropwizard.metrics</groupId>
Expand Down
82 changes: 44 additions & 38 deletions pinot-plugins/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
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">
<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>
<artifactId>pinot</artifactId>
Expand All @@ -32,7 +33,7 @@
<url>https://pinot.apache.org/</url>
<properties>
<pinot.root>${basedir}/..</pinot.root>
<plugin.type />
<plugin.type/>
<hadoop.dependencies.scope>compile</hadoop.dependencies.scope>
</properties>

Expand All @@ -50,42 +51,6 @@
<module>pinot-timeseries-lang</module>
</modules>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<dependencies>
<dependency>
<groupId>org.apache.pinot</groupId>
<artifactId>assembly-descriptor</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptorRefs>
<descriptorRef>pinot-plugin</descriptorRef>
</descriptorRefs>
<archiverConfig>
<compress>${archiver.compress}</compress>
</archiverConfig>
<recompressZippedFiles>${archiver.recompressZippedFiles}</recompressZippedFiles>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>

<dependencies>
<dependency>
<groupId>org.apache.pinot</groupId>
Expand All @@ -105,6 +70,47 @@
</dependency>
</dependencies>
<profiles>
<profile>
<id>plugin-assembly</id>
<activation>
<file>
<exists>src/main/resources/pinot-plugin.properties</exists>
</file>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<dependencies>
<dependency>
<groupId>org.apache.pinot</groupId>
<artifactId>assembly-descriptor</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptorRefs>
<descriptorRef>pinot-plugin</descriptorRef>
</descriptorRefs>
<archiverConfig>
<compress>${archiver.compress}</compress>
</archiverConfig>
<recompressZippedFiles>${archiver.recompressZippedFiles}</recompressZippedFiles>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>use-provided-hadoop</id>
<activation>
Expand Down

0 comments on commit 0eea5c5

Please sign in to comment.