You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2019/01/11 08:24:49 UTC

[myfaces-tobago] 01/03: TOBAGO-1970: Configure web.xml listeners via JARs (for Mojarra, MyFaces, OWB, etc.)

This is an automated email from the ASF dual-hosted git repository.

lofwyr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git

commit e4b9b2a05727d56b4288f6397d131243263d174d
Author: Udo Schnurpfeil <lo...@apache.org>
AuthorDate: Thu Jan 10 13:49:52 2019 +0100

    TOBAGO-1970: Configure web.xml listeners via JARs (for Mojarra, MyFaces, OWB, etc.)
---
 tobago-example/pom.xml                             | 31 +++-------------------
 .../src/main/webapp/WEB-INF/web.xml                |  8 ++----
 2 files changed, 6 insertions(+), 33 deletions(-)

diff --git a/tobago-example/pom.xml b/tobago-example/pom.xml
index 26554a4..360244a 100644
--- a/tobago-example/pom.xml
+++ b/tobago-example/pom.xml
@@ -86,35 +86,12 @@
           <artifactId>jetty-maven-plugin</artifactId>
           <version>9.4.14.v20181114</version>
           <configuration>
+            <!--
+            to run the webapp in jetty in development mode use
+            mvn clean jetty:run -Pdev
+             -->
             <scanIntervalSeconds>5</scanIntervalSeconds>
-<!--
-            <systemProperties>
-              <systemProperty>
-                <name>logback.configurationFile</name>
-                <value>/Users/lofwyr/t/logback.xml</value>
-              </systemProperty>
-              <systemProperty>
-                <name>java.util.logging.config.file</name>
-                <value>logging.properties</value>
-              </systemProperty>
-            </systemProperties>
--->
           </configuration>
-<!--
-          <dependencies>
-            <dependency>
-              <groupId>org.slf4j</groupId>
-              <artifactId>jul-to-slf4j</artifactId>
-              <version>${slf4j.version}</version>
-            </dependency>
-            <dependency>
-              <groupId>ch.qos.logback</groupId>
-              <artifactId>logback-classic</artifactId>
-              <version>${logback.version}</version>
-              <scope>runtime</scope>
-            </dependency>
-          </dependencies>
--->
         </plugin>
       </plugins>
     </pluginManagement>
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/WEB-INF/web.xml b/tobago-example/tobago-example-demo/src/main/webapp/WEB-INF/web.xml
index cc8bc3f..71791e8 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/WEB-INF/web.xml
+++ b/tobago-example/tobago-example-demo/src/main/webapp/WEB-INF/web.xml
@@ -25,12 +25,8 @@
 
   <display-name>Tobago Demo Application</display-name>
 
-  <!-- for local development you can set a Maven profile with -Pdev to set the stage to Development -->
-  <context-param>
-    <param-name>javax.faces.PROJECT_STAGE</param-name>
-    <!--<param-value>Development</param-value>-->
-    <param-value>Production</param-value>
-  </context-param>
+  <!-- for local development you can set a Maven profile with -Pdev to set the
+  javax.faces.PROJECT_STAGE to Development -->
 
   <context-param>
     <param-name>com.sun.faces.validateXml</param-name>