Skip to content

Commit

Permalink
Use Provisio plugin for packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
tdcmeehan authored and rschlussel committed Sep 19, 2024
1 parent 46eacc3 commit c00f8af
Show file tree
Hide file tree
Showing 6 changed files with 336 additions and 656 deletions.
32 changes: 31 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2368,7 +2368,8 @@
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>${dep.nexus-staging-plugin.version}</version>
<extensions>true</extensions>
<!-- This plugin is not registered as an extension because it will fail to activate
concurrently with the Maven Provisio plugin, as that has its own deployment lifecycle -->
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
Expand Down Expand Up @@ -2397,6 +2398,13 @@
<artifactId>presto-maven-plugin</artifactId>
</plugin>

<plugin>
<groupId>ca.vanzyl.provisio.maven.plugins</groupId>
<artifactId>provisio-maven-plugin</artifactId>
<version>1.0.18</version>
<extensions>true</extensions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand Down Expand Up @@ -2576,9 +2584,31 @@
<id>deploy-to-ossrh</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<!-- This plugin must be configured manually ("Maven 2" style in the docs) due to the usage of the
Maven Provisio plugin, which includes its own deployment lifecycle -->
<executions>
<execution>
<id>default-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
2 changes: 1 addition & 1 deletion presto-product-tests/conf/docker/common/compose-commons.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export HADOOP_BASE_IMAGE=${HADOOP_BASE_IMAGE:-"prestodb/hdp2.6-hive"}

if [[ -z "${PRESTO_SERVER_DIR:-}" ]]; then
source "${PRODUCT_TESTS_ROOT}/target/classes/presto.env"
PRESTO_SERVER_DIR="${PROJECT_ROOT}/presto-server/target/presto-server-${PRESTO_VERSION}/presto-server-${PRESTO_VERSION}/"
PRESTO_SERVER_DIR="${PROJECT_ROOT}/presto-server/target/presto-server-${PRESTO_VERSION}/"
fi
export_canonical_path PRESTO_SERVER_DIR

Expand Down
Loading

0 comments on commit c00f8af

Please sign in to comment.