From 5993c879a62388befcc24478f74e09a0c2d8d847 Mon Sep 17 00:00:00 2001
From: Sebastian Schuster <sebastian.schuster@bosch-si.com>
Date: Thu, 12 Jan 2017 13:17:52 +0100
Subject: [PATCH] Removed version from created war and added maven jetty plugin
 with context so URLs are prefixed correctly in uma-server-webapp

---
 uma-server-webapp/pom.xml | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/uma-server-webapp/pom.xml b/uma-server-webapp/pom.xml
index 9a82d2612..a934f6eb1 100644
--- a/uma-server-webapp/pom.xml
+++ b/uma-server-webapp/pom.xml
@@ -53,6 +53,7 @@
 				<groupId>org.apache.maven.plugins</groupId>
 				<artifactId>maven-war-plugin</artifactId>
 				<configuration>
+					<warName>uma-server-webapp</warName>
 					<overlays>
 						<overlay>
 							<groupId>org.mitre</groupId>
@@ -61,6 +62,16 @@
 					</overlays>
 				</configuration>
 			</plugin>
+			<plugin>
+				<groupId>org.eclipse.jetty</groupId>
+				<artifactId>jetty-maven-plugin</artifactId>
+				<configuration>
+					<war>${project.build.directory}/uma-server-webapp.war</war>
+					<webAppConfig>
+						<contextPath>/uma-server-webapp</contextPath>
+					</webAppConfig>
+				</configuration>
+			</plugin>
 		</plugins>
 		<pluginManagement>
 			<plugins>