Git Repositories

No dependency-reduced-pom.xml
[xerox-elastic-poc.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index e9f9b38..cf53499 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -8,6 +8,11 @@
     <version>1.0</version>
     <dependencies>
         <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-simple</artifactId>
+            <version>1.7.21</version>
+        </dependency>
+        <dependency>
             <groupId>com.h2database</groupId>
             <artifactId>h2</artifactId>
             <version>1.4.192</version>
             <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>
                     <target>1.8</target>
                 </configuration>
             </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-shade-plugin</artifactId>
+                <version>2.4.3</version>
+                <executions>
+                    <execution>
+                        <id>exec-jar</id>
+                        <goals>
+                            <goal>shade</goal>
+                        </goals>
+                        <configuration>
+                            <shadedArtifactAttached>false</shadedArtifactAttached>
+                            <createDependencyReducedPom>false</createDependencyReducedPom>
+                            <transformers>
+                                <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
+                                    <mainClass>com.viseo.xerox.elastic.Main</mainClass>
+                                </transformer>
+                            </transformers>
+                        </configuration>
+                    </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>