From 40c64efc90cae861211af7cd417a30c39e8e3d21 Mon Sep 17 00:00:00 2001 From: "Niels Erik G. Nielsen" Date: Thu, 27 Jun 2013 16:32:18 -0400 Subject: [PATCH] Adds option to build library for Tomcat7 or Glassfish/JBoss ... attempts to avoid the need for Git branches for the different versions, adds different beans.xml and web.xml files and different profiles in the pom. --- pom.xml | 87 ++++++++++++++++++++++++++++++----- src/main/resources/as/beans.xml | 12 +++++ src/main/resources/tomcat/beans.xml | 7 +++ 3 files changed, 94 insertions(+), 12 deletions(-) create mode 100644 src/main/resources/as/beans.xml create mode 100644 src/main/resources/tomcat/beans.xml diff --git a/pom.xml b/pom.xml index d93927a..29e9467 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ provided - + org.glassfish javax.faces @@ -24,19 +24,14 @@ javax.servlet.jsp.jstl javax.servlet.jsp.jstl-api 1.2.1 - - + org.jboss.weld.servlet weld-servlet 1.1.10.Final - - - org.apache.httpcomponents - httpclient - 4.2.3 - - + + + org.apache.myfaces.tomahawk tomahawk20 @@ -46,7 +41,14 @@ commons-io commons-io 2.1 - + + + org.apache.httpcomponents + httpclient + 4.2.3 + + + com.indexdata masterkey-common @@ -63,6 +65,7 @@ main/ *.java + META-INF/beans.xml @@ -90,6 +93,15 @@ true + + org.apache.maven.plugins + maven-jar-plugin + 2.2 + + ${env} + + + @@ -128,7 +140,58 @@ - UTF-8 + + UTF-8 + + + + default + + true + + + + + + + + + + META-INF + src/main/resources/tomcat + + beans.xml + + + + + + + + + as + + as + + + + + + + META-INF + src/main/resources/as + + beans.xml + + + + + + diff --git a/src/main/resources/as/beans.xml b/src/main/resources/as/beans.xml new file mode 100644 index 0000000..c616832 --- /dev/null +++ b/src/main/resources/as/beans.xml @@ -0,0 +1,12 @@ + + + + com.indexdata.mkjsf.config.WebXmlConfigReader + + + + \ No newline at end of file diff --git a/src/main/resources/tomcat/beans.xml b/src/main/resources/tomcat/beans.xml new file mode 100644 index 0000000..b87599c --- /dev/null +++ b/src/main/resources/tomcat/beans.xml @@ -0,0 +1,7 @@ + + + \ No newline at end of file -- 1.7.10.4