You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by ng...@apache.org on 2020/04/08 12:56:10 UTC

svn commit: r1876298 - in /jackrabbit/oak/trunk: oak-benchmarks-elastic/pom.xml oak-benchmarks-lucene/pom.xml

Author: ngupta
Date: Wed Apr  8 12:56:10 2020
New Revision: 1876298

URL: http://svn.apache.org/viewvc?rev=1876298&view=rev
Log:
OAK-9000 | Classpath issues while executing oak-benchmarks-lucene and oak-benchmarks-elastic from commandline

Modified:
    jackrabbit/oak/trunk/oak-benchmarks-elastic/pom.xml
    jackrabbit/oak/trunk/oak-benchmarks-lucene/pom.xml

Modified: jackrabbit/oak/trunk/oak-benchmarks-elastic/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-benchmarks-elastic/pom.xml?rev=1876298&r1=1876297&r2=1876298&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-benchmarks-elastic/pom.xml (original)
+++ jackrabbit/oak/trunk/oak-benchmarks-elastic/pom.xml Wed Apr  8 12:56:10 2020
@@ -33,6 +33,43 @@
         <skip.deployment>true</skip.deployment>
     </properties>
 
+    <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>
+                            <createDependencyReducedPom>false</createDependencyReducedPom>
+                            <transformers>
+                                <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
+                                    <manifestEntries>
+                                        <Main-Class>org.apache.jackrabbit.oak.run.ElasticMain</Main-Class>
+                                    </manifestEntries>
+                                </transformer>
+                            </transformers>
+                            <filters>
+                                <filter>
+                                    <artifact>*:*</artifact>
+                                    <excludes>
+                                        <exclude>META-INF/*.SF</exclude>
+                                        <exclude>META-INF/*.DSA</exclude>
+                                        <exclude>META-INF/*.RSA</exclude>
+                                    </excludes>
+                                </filter>
+                            </filters>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
     <dependencies>
         <dependency>
             <groupId>org.apache.jackrabbit</groupId>
@@ -52,4 +89,4 @@
     </dependencies>
 
 
-</project>
\ No newline at end of file
+</project>

Modified: jackrabbit/oak/trunk/oak-benchmarks-lucene/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-benchmarks-lucene/pom.xml?rev=1876298&r1=1876297&r2=1876298&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-benchmarks-lucene/pom.xml (original)
+++ jackrabbit/oak/trunk/oak-benchmarks-lucene/pom.xml Wed Apr  8 12:56:10 2020
@@ -34,6 +34,43 @@
         <skip.deployment>true</skip.deployment>
     </properties>
 
+    <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>
+                            <createDependencyReducedPom>false</createDependencyReducedPom>
+                            <transformers>
+                                <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
+                                    <manifestEntries>
+                                        <Main-Class>org.apache.jackrabbit.oak.run.LuceneMain</Main-Class>
+                                    </manifestEntries>
+                                </transformer>
+                            </transformers>
+                            <filters>
+                                <filter>
+                                    <artifact>*:*</artifact>
+                                    <excludes>
+                                        <exclude>META-INF/*.SF</exclude>
+                                        <exclude>META-INF/*.DSA</exclude>
+                                        <exclude>META-INF/*.RSA</exclude>
+                                    </excludes>
+                                </filter>
+                            </filters>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
     <dependencies>
         <dependency>
             <groupId>org.apache.jackrabbit</groupId>
@@ -52,4 +89,4 @@
     </dependencies>
 
 
-</project>
\ No newline at end of file
+</project>