diff --git a/deploy_war.sh b/deploy_war.sh new file mode 100644 index 0000000000000000000000000000000000000000..347227c43103bb1b2cdfb51507b93c1c384dfd1c --- /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 35c5d42d4e21278295fb007bf78297eb1aba5b7a..ec02271f184ca87a50ad933e87cc7376a804826d 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>