From cf3ca8149dcef095098af76aa505d418166b46d5 Mon Sep 17 00:00:00 2001
From: Catalin-Emanuel ENACHE <Catalin-Emanuel.ENACHE@ext.ec.europa.eu>
Date: Tue, 6 Feb 2018 09:17:41 +0100
Subject: [PATCH] [EDELIVERY-3114] added a profile and a .sh script for deploy
 under Weblogic/edelqulity

---
 deploy_war.sh |  2 ++
 pom.xml       | 29 +++++++++++++++++++++++++++++
 2 files changed, 31 insertions(+)
 create mode 100644 deploy_war.sh

diff --git a/deploy_war.sh b/deploy_war.sh
new file mode 100644
index 000000000..347227c43
--- /dev/null
+++ b/deploy_war.sh
@@ -0,0 +1,2 @@
+cp smp-webapp/target/smp.war /home/edelivery/oracle/middleware/domains/bdmsl/autodeploy/
+sleep 3m
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 35c5d42d4..ec02271f1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -124,6 +124,35 @@
                 </plugins>
             </build>
         </profile>
+
+        <profile>
+            <id>deploy-war</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <artifactId>exec-maven-plugin</artifactId>
+                        <version>1.6.0</version>
+                        <groupId>org.codehaus.mojo</groupId>
+                        <executions>
+                            <execution><!-- Run our version calculation script -->
+                                <id>Deploy war under weblogic</id>
+                                <phase>package</phase>
+                                <goals>
+                                    <goal>exec</goal>
+                                </goals>
+                                <configuration>
+                                    <executable>bash</executable>
+                                    <commandlineArgs>deploy_war.sh</commandlineArgs>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+
+                </plugins>
+
+            </build>
+        </profile>
+
     </profiles>
 
     <build>
-- 
GitLab