Last active
January 3, 2016 09:19
-
-
Save anthavio/8441862 to your computer and use it in GitHub Desktop.
Changes to pom.xml that makes webapp Openshift's Jenkins buildable and deployable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<profiles> | |
<profile> | |
<id>openshift</id> | |
<build> | |
<pluginManagement> | |
<plugins> | |
<!-- | |
Git repo is checked out into /var/lib/openshift/52d5741450044610e8000284/app-root/runtime/repo | |
and Maven is started in this directory. | |
Deployable artifacts, mainly ROOT.war, must be copiend into | |
/var/lib/openshift/52d5741450044610e8000284/app-root/runtime/repo/webapps/ROOT.war | |
Because wotan-browser is module in subdirectory and I would expect <outputDirectory>../webapps</outputDirectory> value | |
but interestingly it is not true and it must be <outputDirectory>webapps</outputDirectory> | |
--> | |
<plugin> | |
<artifactId>maven-war-plugin</artifactId> | |
<configuration> | |
<outputDirectory>webapps</outputDirectory> | |
<warName>wotan</warName> <!-- http://wotan-anthavio.rhcloud.com/wotan --> | |
<!-- <warName>ROOT</warName> http://wotan-anthavio.rhcloud.com/--> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-enforcer-plugin</artifactId> | |
<configuration> | |
<skip>true</skip> | |
</configuration> | |
</plugin> | |
</plugins> | |
</pluginManagement> | |
</build> | |
<repositories> | |
<repository> | |
<id>sonatype-oss-public</id> | |
<url>https://oss.sonatype.org/content/groups/public</url> | |
<releases> | |
<enabled>true</enabled> | |
</releases> | |
<snapshots> | |
<enabled>true</enabled> | |
</snapshots> | |
</repository> | |
</repositories> | |
</profile> | |
</profiles> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment