From 96bb98672f799216406ffc540b90f1bd32171e40 Mon Sep 17 00:00:00 2001 From: "Andreas C. Osowski" Date: Wed, 11 Nov 2015 17:41:37 +0100 Subject: [PATCH] Fixed maven-jetty-plugin support --- WebContent/WEB-INF/web.jetty.xml | 49 ++++++++++++++++++++++++++++++++ pom.xml | 47 +++++++++++++++++------------- 2 files changed, 76 insertions(+), 20 deletions(-) create mode 100644 WebContent/WEB-INF/web.jetty.xml diff --git a/WebContent/WEB-INF/web.jetty.xml b/WebContent/WEB-INF/web.jetty.xml new file mode 100644 index 0000000..3dd2a02 --- /dev/null +++ b/WebContent/WEB-INF/web.jetty.xml @@ -0,0 +1,49 @@ + + + policycompass.fcmmanager + + + CorsFilter + org.eclipse.jetty.servlets.CrossOriginFilter + + cors.allowed.methods + GET,POST,HEAD,OPTIONS,PUT + + + cors.allowed.headers + x-requested-with,content-type,accept,origin,authorization,x-csrftoken,x-user-path,x-user-token + + + + CorsFilter + /* + + + + index.html + index.htm + index.jsp + default.html + default.htm + default.jsp + + + + Jersey REST Service + com.sun.jersey.spi.container.servlet.ServletContainer + + com.sun.jersey.config.property.packages + policycompass.fcmmanager + + + com.sun.jersey.api.json.POJOMappingFeature + true + + 1 + + + + Jersey REST Service + /v1/* + + diff --git a/pom.xml b/pom.xml index aa14ac3..fbd7d6b 100755 --- a/pom.xml +++ b/pom.xml @@ -10,13 +10,14 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma UTF-8 - 4.3.5.Final + 4.3.5.Final 1.18 - 1.2.17 - 1.7 + 1.2.17 + 1.7 3.0 r09 ${CATALINA_HOME}/webapps + 9.3.3.v20150827 @@ -32,19 +33,25 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma - org.mortbay.jetty + org.eclipse.jetty jetty-maven-plugin - 8.1.11.v20130520 + ${jetty.version} + + + org.eclipse.jetty + jetty-servlets + ${jetty.version} + + - 10 - - - 8080 - 60000 - - - - + + 8080 + + + /api + WebContent/WEB-INF/web.jetty.xml + + 15 postgresql @@ -90,25 +97,25 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma asm-all 3.1 - + dom4j dom4j 1.6.1 - + org.hibernate hibernate-core 4.3.6.Final - + org.hibernate.common hibernate-commons-annotations 4.0.5.Final - + org.hibernate.javax.persistence hibernate-jpa-2.1-api @@ -170,5 +177,5 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma - +