| Modify oak-run-elastic pom top replace the default oak-run-elastic with the one created in assembly
<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>
</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>
