Git Repositories

No dependency-reduced-pom.xml
[xerox-elastic-poc.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index 89e4acf..cf53499 100644 (file)
--- a/pom.xml
+++ b/pom.xml
             <version>2.8.4</version>
         </dependency>
     </dependencies>
+    <profiles>
+        <profile>
+            <id>query</id>
+            <activation>
+                <activeByDefault>true</activeByDefault>
+            </activation>
+            <properties>
+                <exec-argument>query</exec-argument>
+            </properties>
+        </profile>
+        <profile>
+            <id>create</id>
+            <properties>
+                <exec-argument>create</exec-argument>
+            </properties>
+        </profile>
+        <profile>
+            <id>index</id>
+            <properties>
+                <exec-argument>index</exec-argument>
+            </properties>
+        </profile>
+    </profiles>
     <build>
         <plugins>
             <plugin>
@@ -75,7 +98,8 @@
                             <goal>shade</goal>
                         </goals>
                         <configuration>
-                            <shadedArtifactAttached>true</shadedArtifactAttached>
+                            <shadedArtifactAttached>false</shadedArtifactAttached>
+                            <createDependencyReducedPom>false</createDependencyReducedPom>
                             <transformers>
                                 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                                     <mainClass>com.viseo.xerox.elastic.Main</mainClass>
                     </execution>
                 </executions>
             </plugin>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>exec-maven-plugin</artifactId>
+                <version>1.5.0</version>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>java</goal>
+                        </goals>
+                    </execution>
+                </executions>
+                <configuration>
+                    <mainClass>com.viseo.xerox.elastic.Main</mainClass>
+                    <arguments>
+                        <argument>${exec-argument}</argument>
+                    </arguments>
+                </configuration>
+            </plugin>
         </plugins>
     </build>
-</project>
\ No newline at end of file
+</project>