java - Openshift jobssas 7 cloud was building the war but not deploying it -
openshift building war not deploying it
if 1 wants deploy generated war, must copied command
cp app-root/runtime/repo/target/gamestore-0.0.1-snapshot.war app-root/dependencies/jbossas/deployments/root.war
how copy generated war automatically ?
firstly, openshift jbossas7 cloud require presence of pom.xml
build code after push throw git push
command. secondly, auto deploy generated war after building write in pom.xml
<profiles> <profile> <!-- when built in openshift 'openshift' profile used when invoking mvn. --> <!-- use profile openshift specific customization app need. --> <!-- default put resulting archive 'deployments' folder. --> <!-- http://maven.apache.org/guides/mini/guide-building-for-different-environments.html --> <id>openshift</id> <build> <finalname>gamestore</finalname> <plugins> <plugin> <artifactid>maven-war-plugin</artifactid> <version>2.1.1</version> <configuration> <outputdirectory>deployments</outputdirectory> <warname>root</warname> </configuration> </plugin> </plugins> </build> </profile> </profiles>
Comments
Post a Comment