From 8a036eeb724280122a8426602b12d5b7ce06f34f Mon Sep 17 00:00:00 2001 From: jensp Date: Mon, 11 Dec 2017 19:36:54 +0000 Subject: [PATCH] CCM NG: Devel Bundle using Wildfly Swarm git-svn-id: https://svn.libreccm.org/ccm/ccm_ng@5163 8810af33-2d31-482b-a856-94f89814c4df --- ccm-bundle-devel-wildfly-swarm/pom.xml | 86 ++++++++++++++- .../java/org/libreccm/CcmBundleDevel.java.off | 19 ++++ .../src/main/resources/log4j2.xml | 102 ++++++++++++++++++ .../src/main/resources/shiro.ini | 15 +++ .../src/main/resources/stylesheet-paths.txt | 65 +++++++++++ .../resources/systeminformation.properties | 3 + .../src/main/webapp/WEB-INF/beans.xml | 7 ++ .../src/main/webapp/WEB-INF/web.xml | 83 ++++++++++++++ pom.xml | 41 ++++--- 9 files changed, 399 insertions(+), 22 deletions(-) create mode 100644 ccm-bundle-devel-wildfly-swarm/src/main/java/org/libreccm/CcmBundleDevel.java.off create mode 100644 ccm-bundle-devel-wildfly-swarm/src/main/resources/log4j2.xml create mode 100644 ccm-bundle-devel-wildfly-swarm/src/main/resources/shiro.ini create mode 100644 ccm-bundle-devel-wildfly-swarm/src/main/resources/stylesheet-paths.txt create mode 100644 ccm-bundle-devel-wildfly-swarm/src/main/resources/systeminformation.properties create mode 100644 ccm-bundle-devel-wildfly-swarm/src/main/webapp/WEB-INF/beans.xml create mode 100644 ccm-bundle-devel-wildfly-swarm/src/main/webapp/WEB-INF/web.xml diff --git a/ccm-bundle-devel-wildfly-swarm/pom.xml b/ccm-bundle-devel-wildfly-swarm/pom.xml index 585f0273c..466b1417b 100644 --- a/ccm-bundle-devel-wildfly-swarm/pom.xml +++ b/ccm-bundle-devel-wildfly-swarm/pom.xml @@ -6,16 +6,44 @@ 4.0.0 - + + + + org.libreccm + ccm-bundle-devel + ../ccm-bundle-devel + 7.0.0-SNAPSHOT org.libreccm ccm-bundle-devel-wildfly-swarm war + LibreCCM Devel Bundle for Wildfly Swarm + http://www.libreccm.org + + + libreccm-site + LibreCCM + http://www.libreccm.org/project-sites/ + + + + + LibreCCM Foundation + + + + + LGPLv2 or newer + http://www.gnu.org/licenses/lgpl-2.0.html + + + false @@ -24,8 +52,8 @@ org.wildfly.swarm - bom - 2017.1.1 + bom-all + 2017.11.0 import pom @@ -33,15 +61,63 @@ + + + org.wildfly.swarm + cdi + + org.wildfly.swarm container + + + org.wildfly.swarm + datasources + + + + org.wildfly.swarm + logging + + + + org.wildfly.swarm + jaxrs + + + + org.wildfly.swarm + jaxrs-cdi + + + + org.wildfly.swarm + jsf + + + + + org.wildfly.swarm + mail + + + + org.wildfly.swarm + undertow + + + + com.h2database + h2 + org.postgresql postgresql - 9.4.1212.jre7 + 42.1.4.jre7 + @@ -61,7 +137,7 @@ - + diff --git a/ccm-bundle-devel-wildfly-swarm/src/main/java/org/libreccm/CcmBundleDevel.java.off b/ccm-bundle-devel-wildfly-swarm/src/main/java/org/libreccm/CcmBundleDevel.java.off new file mode 100644 index 000000000..5e0447046 --- /dev/null +++ b/ccm-bundle-devel-wildfly-swarm/src/main/java/org/libreccm/CcmBundleDevel.java.off @@ -0,0 +1,19 @@ +package org.libreccm; + +import org.wildfly.swarm.Swarm; + +/** + * + * @author Jens Pelzetter + */ +public class CcmBundleDevel { + + public static void main(final String[] args) throws Exception { + + final Swarm swarm = new Swarm(); + + swarm.start(); + + } + +} diff --git a/ccm-bundle-devel-wildfly-swarm/src/main/resources/log4j2.xml b/ccm-bundle-devel-wildfly-swarm/src/main/resources/log4j2.xml new file mode 100644 index 000000000..4927cf628 --- /dev/null +++ b/ccm-bundle-devel-wildfly-swarm/src/main/resources/log4j2.xml @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ccm-bundle-devel-wildfly-swarm/src/main/resources/shiro.ini b/ccm-bundle-devel-wildfly-swarm/src/main/resources/shiro.ini new file mode 100644 index 000000000..469c812fa --- /dev/null +++ b/ccm-bundle-devel-wildfly-swarm/src/main/resources/shiro.ini @@ -0,0 +1,15 @@ +[main] + +passwordMatcher = org.apache.shiro.authc.credential.PasswordMatcher +passwordService = org.apache.shiro.authc.credential.DefaultPasswordService +passwordMatcher.passwordService = $passwordService + +ccmRealm = org.libreccm.security.CcmShiroRealm +ccmRealm.credentialsMatcher = $passwordMatcher + +securityManager.realms = $ccmRealm +securityManager.rememberMeManager.cipherKey = p5h/Aphy0gfV+XThbEPqSG4iQNh2fTNH9ZEkSBAt/Ok= + +cacheManager = org.apache.shiro.cache.MemoryConstrainedCacheManager +securityManager.cacheManager = $cacheManager + diff --git a/ccm-bundle-devel-wildfly-swarm/src/main/resources/stylesheet-paths.txt b/ccm-bundle-devel-wildfly-swarm/src/main/resources/stylesheet-paths.txt new file mode 100644 index 000000000..221b973e1 --- /dev/null +++ b/ccm-bundle-devel-wildfly-swarm/src/main/resources/stylesheet-paths.txt @@ -0,0 +1,65 @@ +# -*- text -*- +# This file locates stylesheets, if you are using the +# "PatternStylesheetResolver". Please read the Javadoc for that file for +# the full story. + +# Currently the "resource" part is actually "short-circuited", see +# Templating#transformURL(url). As long as we store and synchronize all theme +# files in each server's local file system, we use the direct file apprach to +# avoid unnecessary http request and traffic between client (user) and server! +# Additionally all modules are installed into one webapp context, so the +# webapp tag is redundant, but sort of required by some part of the code. + + +# Theme with single entry point (e.g Mandalay) managed by themedirector +#http://::host::/resource/::webapp::/themes/::themedir::/::theme::/start.xsl +http://::host::/::webapp::/themes/::themedir::/::theme::/start.xsl + +# Theme with single entry point (e.g Mandalay) unmanaged default +#http://::host::/resource/::webapp::/themes/mandalay/start.xsl +#http://::host::/::webapp::/themes/mandalay/start.xsl + +# Theme with single entry point (e.g Mandalay) unmanaged default +#http://::host::/resource/::webapp::/themes/mandalay/start.xsl +http://::host::/::webapp::/themes/libreccm-default/start.xsl + + + + +# ============================================================================== +# The following is for multi-entry themes, not used in ScientificCMS +# ============================================================================== + +# Output type is for things such as text/javascript +# NOT used by ScientificCMS, uses Mandalay only! +#http://::host::/resource/::webapp::/themes/heirloom/apps/::application::/xsl/::url::-::outputtype::-::locale::.xsl +#http://::host::/resource/::webapp::/themes/heirloom/apps/::application::/xsl/::url::-::outputtype::.xsl + +# Grabs custom item xsl for CMS +# NOT used by ScientificCMS, uses Mandalay only! +#http://::host::/themes/servlet/content-item/index.xsl?oid=::item_template_oid::&delegated=::item_delegated_url:: + +# Theme, with optional locale & prefix +# NOT used by ScientificCMS, uses Mandalay only! +#http://::host::/resource/::webapp::/themes/::themedir::/::theme::/::application::-::url::-::prefix::-::locale::.xsl +#http://::host::/resource/::webapp::/themes/::themedir::/::theme::/::application::-::url::-::prefix::.xsl + +# Theme, with optional locale +# NOT used by ScientificCMS, uses Mandalay only! +#http://::host::/resource/::webapp::/themes/::themedir::/::theme::/::application::-::url::-::locale::.xsl +#http://::host::/resource/::webapp::/themes/::themedir::/::theme::/::application::-::url::.xsl + +# APLAWS generic default, with locale and prefix +# XXX change ROOT -> ccm-ldn-aplaws +# http://::host::/resource/ROOT/themes/static/aplaws-generic/::application::-::url::-::prefix::-::locale::.xsl +# http://::host::/resource/ROOT/themes/static/aplaws-generic/::application::-::url::-::prefix::.xsl + +# APLAWS generic default, with locale +# XXX change ROOT -> ccm-ldn-aplaws +# http://::host::/resource/ROOT/themes/static/aplaws-generic/::application::-::url::-::locale::.xsl +# http://::host::/resource/ROOT/themes/static/aplaws-generic/::application::-::url::.xsl + +# Global default, from application's own web app +# NOT used by ScientificCMS +#http://::host::/resource/::webapp::/themes/heirloom/apps/::application::/xsl/::url::-::locale::.xsl +#http://::host::/resource/::webapp::/themes/heirloom/apps/::application::/xsl/::url::.xsl diff --git a/ccm-bundle-devel-wildfly-swarm/src/main/resources/systeminformation.properties b/ccm-bundle-devel-wildfly-swarm/src/main/resources/systeminformation.properties new file mode 100644 index 000000000..f34883af8 --- /dev/null +++ b/ccm-bundle-devel-wildfly-swarm/src/main/resources/systeminformation.properties @@ -0,0 +1,3 @@ +version = 7.0.0-SNAPSHOT +appname = LibreCCM +apphomepage = http://www.libreccm.org diff --git a/ccm-bundle-devel-wildfly-swarm/src/main/webapp/WEB-INF/beans.xml b/ccm-bundle-devel-wildfly-swarm/src/main/webapp/WEB-INF/beans.xml new file mode 100644 index 000000000..194f21e6e --- /dev/null +++ b/ccm-bundle-devel-wildfly-swarm/src/main/webapp/WEB-INF/beans.xml @@ -0,0 +1,7 @@ + + + \ No newline at end of file diff --git a/ccm-bundle-devel-wildfly-swarm/src/main/webapp/WEB-INF/web.xml b/ccm-bundle-devel-wildfly-swarm/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 000000000..2afd7ee37 --- /dev/null +++ b/ccm-bundle-devel-wildfly-swarm/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,83 @@ + + + + LibreCCM Devel Bundle for Wildfly + + + ccm.develmode + true + + + ccm.distribution + libreccm + + + + + COOKIE + + + + + ShiroFilter + org.apache.shiro.web.servlet.ShiroFilter + + + + ShiroFilter + /* + + + + org.apache.shiro.web.env.EnvironmentLoaderListener + + + + + + + Faces Servlet + javax.faces.webapp.FacesServlet + 1 + + + + Faces Servlet + *.xhtml + + + + javax.faces.PROJECT_STAGE + Development + + + javax.faces.FACELETS_SKIP_COMMENTS + true + + + + vaadin-servlet + com.vaadin.cdi.server.VaadinCDIServlet + + + + vaadin-servlet + /vaadin/* + + + vaadin-servlet + /VAADIN/* + + + diff --git a/pom.xml b/pom.xml index 7a552742e..e014de955 100644 --- a/pom.xml +++ b/pom.xml @@ -39,34 +39,41 @@ + + ccm-core - ccm-shortcuts + + ccm-testutils - ccm-docrepo + ccm-xafilesystemadapter - - - - - - ccm-theme-foundry - - - ccm-archetype-module + ccm-cms - ccm-cms-archetype-contenttype + ccm-cms-types-agenda ccm-cms-types-bookmark - ccm-cms-types-minutes ccm-cms-types-decisiontree - ccm-cms-types-glossaryitem - ccm-cms-types-faqitem ccm-cms-types-externallink + ccm-cms-types-faqitem + ccm-cms-types-glossaryitem + ccm-cms-types-minutes + + + ccm-docrepo + ccm-shortcuts + + + ccm-theme-foundry + + ccm-bundle-devel ccm-bundle-devel-wildfly-web ccm-bundle-devel-wildfly - - ccm-xafilesystemadapter + ccm-bundle-devel-wildfly-swarm + + + ccm-archetype-module + ccm-cms-archetype-contenttype