Skip to content

Commit

Permalink
Moved shade plugin under profile
Browse files Browse the repository at this point in the history
  • Loading branch information
abevk2023 committed Jan 8, 2025
1 parent 95c66a8 commit 4426897
Showing 1 changed file with 27 additions and 20 deletions.
47 changes: 27 additions & 20 deletions presto-main/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -572,26 +572,6 @@
</ignoredDependencies>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<finalName>presto-function-server-executable</finalName>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.facebook.presto.server.FunctionServer</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down Expand Up @@ -644,5 +624,32 @@
</plugins>
</build>
</profile>
<profile>
<id>function-server</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<finalName>presto-function-server-executable</finalName>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.facebook.presto.server.FunctionServer</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit 4426897

Please sign in to comment.