Skip to content
Permalink
Browse files
OAK-9550 | Modify oak-run-elastic pom top replace the default oak-run…
…-elastic with the one created in assembly (#349)
  • Loading branch information
nit0906 committed Aug 24, 2021
1 parent 9105806 commit 645fdcb97796c239ccbfda6a3641caa624d9db40
Showing 1 changed file with 29 additions and 1 deletion.
@@ -33,7 +33,11 @@
<properties>
<jetty.version>8.2.0.v20160908</jetty.version>
<groovy.version>2.4.17</groovy.version>
<max.jar.size>27000000</max.jar.size>
<!--
Size History:
98 MB : Seeting constraint to default oak-run jar post adding the build plugin to rename the fat jar with embedded dependencies as the default jar.
-->
<max.jar.size>98000000</max.jar.size>
</properties>

<build>
@@ -85,6 +89,30 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<phase>package</phase>
<configuration>
<target>
<!--
Replace the default oak-run with the one created in assembly so
as to ensure default artifact oak-run is the one which has all jars
embedded
-->
<copy file="${project.build.directory}/${project.build.finalName}-oak.jar" tofile="${project.build.directory}/${project.build.finalName}.jar" />
<delete file="${project.build.directory}/${project.build.finalName}-oak.jar" />
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>

0 comments on commit 645fdcb

Please sign in to comment.