diff --git a/.gitignore b/.gitignore
index 6c5749265..ef6e85bec 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
+it-pgsql-datasources.properties
nb-configuration.xml
node
node_modules
diff --git a/Jenkinsfile b/Jenkinsfile
index 568677614..6ee6b771e 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -7,22 +7,16 @@ pipeline {
stage('Build and Test') {
steps {
dir('') {
- // sh 'mvn clean package test -Pwildfly-remote-h2-mem'
- sh 'mvn clean package -Pwildfly-remote-h2-mem'
- }
- }
- post {
- always {
- sh 'sudo systemctl restart wildfly'
+ sh 'mvn clean verify -Prun-its-with-wildfly-h2mem -Dwildfly.propertiesFile=/srv/libreccm-wildfly.properties'
}
}
}
stage("Analyse") {
steps {
dir('') {
- sh 'mvn package pmd:pmd pmd:cpd spotbugs:spotbugs'
+ sh 'mvn pmd:pmd pmd:cpd spotbugs:spotbugs'
}
- }
+ }
}
stage("Deploy") {
steps {
@@ -46,8 +40,9 @@ pipeline {
body: "Build ${env.BUILD_URL} failed."
}
always {
- junit testResults: '**/target/surefire-reports/*.xml'
-
+ junit allowEmptyResults: true, testResults: '**/target/surefire-reports/*.xml'
+
+
recordIssues enabledForFailure: true, tools: [java(), javaDoc()]
recordIssues enabledForFailure: false, tool: spotBugs()
recordIssues enabledForFailure: false, tool: cpd(pattern: '**/target/cpd.xml')
diff --git a/README.md b/README.md
index d470d98c9..c99cffc42 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,13 @@
# LibreCCM
-The [https://libreccm.org](LibreCCM) framework and the
-[https://librecms.org](LibreCMS) web content management system.
+The [https://libreccm.org](LibreCCM) framework and the
+[https://librecms.org](LibreCMS) web content management system.
-This repository contains the Jakarta EE based, new version of LibreCCM
-and LibreCMS. We are now using Maven as build tool.
+## Overview
+
+This repository contains the Jakarta EE based, new version of
+[https://libreccm.org](LibreCCM) and [https://librecms.org](LibreCMS). We are
+now using Maven as build tool.
Some more documentation is provided as Maven project site. To create the site
run
@@ -15,46 +18,86 @@ and open the ./target/staging/index.html file in your browser.
The recreate the site run
- mvn clean package site site:stage
+ mvn package site site:stage
again.
-To include integration tests into the reports
+Note: The ./target/staging folder is left intact when cleaning. If you
+want to remove the folder you have delete it manually.
- mvn clean package test site site:stage -P$profile-name
+To include integration tests into the reports run
-Note: If there are test failures the package goal fails and the site is not
+ mvn clean verifiy site site:stage -P${profileName}
+
+Note: If there are test failures the build fails and the site is not
build. The build the site anywhy use
mvn clean package site site:stage -Dmaven.test.failure.ignore=true
-or with a profile
+or with the integration tests included
- mvn clean package site site:stage -Dmaven.test.failure.ignore=true -Pwildfly-remote-h2-mem
+ mvn clean verify site site:stage -Dmaven.test.failure.ignore=true -P${profileName}
-The available profiles are listed in the documentation. All modules should
-provide a profile called wildfly-remote-h2-mem. This profile uses a remote
-Wildfly application server and its integrated H2 in-memory database for
-running the tests. Before you can run the integration tests you must download
-Wildfly from http://www.wildfly.org. Unzip the downloaded archive and start
-the server using the bin/standalone.sh file. Then go to another terminal,
-navigate to the CCM NG directory and run
+## Running integration tests
- mvn clean package test site site:stage -Pwildfly-remote-h2-mem
+Some of the modules provide integration tests which use
+[Arquillian](http://arquillian.org/) to run tests inside an application server.
+If a module provides integration tests it should have at least four profiles
+for running them (at the time of writing):
+
+* `run-its-with-wildfly-h2mem`: This profile uses the
+ [wildfly-maven-plugin](https://docs.jboss.org/wildfly/plugins/maven/latest/)
+ to start a Wildfly and run the integration tests. The H2 database which is
+ integrated with Wildfly is used for run the tests. No configuration
+ is necessary.
+* `run-its-with-wildfly-pgsql`: This profile uses the
+ [wildfly-maven-plugin](https://docs.jboss.org/wildfly/plugins/maven/latest/)
+ to start a Wildfly and run the integration tests. A PostgreSQL database is
+ used to run the tests. The connection parameters are configured using
+ the `it-pgsql-datasources.properties` file in the project root. Make sure
+ to create a database for all modules and configure them before using
+ this profile.
+* `run-its-in-remote-wildfly-h2mem`: This profile uses a remote Wildfly and
+ the H2 database for
+ running the tests. The user it responsible for starting the Wildfly container
+ and for creating the required databases.
+* `run-its-in-remote-wildfly-pgsql`: This profile uses a remote Wildfly and
+ PostgreSQL databases for
+ running the tests. The user it responsible for starting the Wildfly container
+ and for creating the required databases.
+
+To run the integration tests select a profile - we recommend to use the profiles
+which use the wildfly-maven-plugin` to manage to Wildfly application server -
+and run
+
+ mvn verify site site:stage -P${profileName}
+
+## Running LibreCCM (development environment)
+
+Before running a bundle the WAR file has the be generated using
+
+ mvn package
To run LibreCCM choose the bundle to run, for instance
-ccm-bundle-devel-wildfly. Depending on the bundle and the selected profile
-you may have to configure a datasource in the Wildfly server and create a
-database. Also you need to configure an environement variable which points to
-your Wildfly installation. Then you can run LibreCCM using
+`ccm-bundle-devel-wildfly`. You can run the bundle
- mvn package wildfly:run -DskipTests -pl ccm-bundle-devel-wildfly -am -Pgeneric
+ mvn wildfly:run -pl ${bundleName} -am
-The above example skips all tests to speed up the start process. The generic
-profile used in this example uses an existing Wildfly installation. The
-JBOSS_HOME environment variable must either be configured or must be provided.
-Alternativly you can provide the location of your Wildfly installation using
-the -D switch: mvn -Djboss-as.home=/path/to/wildfly/
+This will start a Wildfly server running the selected bundle. Before running
+the bundle the Wildfly container has the be configured. For these purpose, run
+
+ mvn wildfly:run -pl ${bundleName} -am -Psetup-runtime
+
+This will start the Wildfly server, deploy the bundle WAR, and create a
+datasource. At the moment only PostgreSQL is supported as database. The
+datasource configuration is provided by the `datasource.properties` file in the
+bundle directory. To create one copy the example file and adjust the settings.
+
+You also have to create a wildfly.properties file which contains some settings
+for the Wildfly server, for isntance the port the Wildfly server binds to. An
+example file is provided.
+
+## Archetypes
To install the archetypes in your local Maven repository run
@@ -64,15 +107,6 @@ for example
mvn clean install -pl ccm-cms-archetypes-contenttype -am
-Using the managed profiles (example is for testing):
-
-mvn clean test -Djboss.home=/path/to/wildfly/ -DstartupTimeoutInSeconds=180 -Pwildfly-managed-h2-mem
-
-You might need to increase the timeout.
-
-For convience, we also provide a small Bash script which makes calling some Maven tasks easier. For more information please refer to the help of the ccm.sh script:
-
- ccm.sh --help
-
+
diff --git a/build-site.sh b/build-site.sh
index a7e755ab7..2aa5a6bbe 100755
--- a/build-site.sh
+++ b/build-site.sh
@@ -1 +1 @@
-mvn clean package site site:stage -Dmaven.test.failure.ignore=true -Pwildfly-remote-h2-mem
+mvn clean verify site site:stage -Dmaven.test.failure.ignore=true -Prun-its-with-wildfly-h2mem
diff --git a/ccm-archetype-module/pom.xml b/ccm-archetype-module/pom.xml
index 5d2a09390..158f56063 100644
--- a/ccm-archetype-module/pom.xml
+++ b/ccm-archetype-module/pom.xml
@@ -12,7 +12,7 @@
ccm-archetype-module7.0.0-SNAPSHOT
- LibreCCM Module archetype
+ LibreCCM Module Archetypehttp://www.libreccm.org/devel/modules
diff --git a/ccm-archetype-module/src/main/resources/archetype-resources/pom.xml b/ccm-archetype-module/src/main/resources/archetype-resources/pom.xml
index 3aa8c284b..22b4300ff 100644
--- a/ccm-archetype-module/src/main/resources/archetype-resources/pom.xml
+++ b/ccm-archetype-module/src/main/resources/archetype-resources/pom.xml
@@ -228,11 +228,6 @@
jacoco-maven-plugin0.7.5.201505241946
-
- org.codehaus.mojo
- findbugs-maven-plugin
- 3.0.1
- org.apache.maven.plugins
diff --git a/ccm-archetype-module/src/main/resources/archetype-resources/src/test/java/__moduleClass__Test.java b/ccm-archetype-module/src/main/resources/archetype-resources/src/test/java/__moduleClass__IT.java
similarity index 94%
rename from ccm-archetype-module/src/main/resources/archetype-resources/src/test/java/__moduleClass__Test.java
rename to ccm-archetype-module/src/main/resources/archetype-resources/src/test/java/__moduleClass__IT.java
index 91a1b9d6b..601637e48 100644
--- a/ccm-archetype-module/src/main/resources/archetype-resources/src/test/java/__moduleClass__Test.java
+++ b/ccm-archetype-module/src/main/resources/archetype-resources/src/test/java/__moduleClass__IT.java
@@ -26,9 +26,7 @@ import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
-import org.junit.experimental.categories.Category;
import org.junit.runner.RunWith;
-import org.libreccm.tests.categories.IntegrationTest;
import java.io.File;
import java.util.List;
@@ -39,7 +37,6 @@ import javax.persistence.PersistenceContext;
import static org.junit.Assert.*;
-@Category(IntegrationTest.class)
@RunWith(Arquillian.class)
@PersistenceTest
@Transactional(TransactionMode.COMMIT)
diff --git a/ccm-bundle-devel-thorntail/pom.xml b/ccm-bundle-devel-thorntail/pom.xml
index dc1a04f60..6178bfbf9 100644
--- a/ccm-bundle-devel-thorntail/pom.xml
+++ b/ccm-bundle-devel-thorntail/pom.xml
@@ -3,12 +3,6 @@
4.0.0
-
-
org.libreccmccm-bundle-devel
@@ -142,17 +136,14 @@
org.webjarsfont-awesome
- 4.7.0org.webjarsrequirejs
- 2.3.6org.webjarsrequirejs-domready
- 2.0.1-2
diff --git a/ccm-bundle-devel-wildfly-web/nb-configuration.xml b/ccm-bundle-devel-wildfly-web/nb-configuration.xml
deleted file mode 100644
index d6dddb53c..000000000
--- a/ccm-bundle-devel-wildfly-web/nb-configuration.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
- libreccm
-
-
diff --git a/ccm-bundle-devel-wildfly-web/pom.xml b/ccm-bundle-devel-wildfly-web/pom.xml
deleted file mode 100644
index fd843c4d1..000000000
--- a/ccm-bundle-devel-wildfly-web/pom.xml
+++ /dev/null
@@ -1,200 +0,0 @@
-
-
-
-
- UTF-8
-
-
- 4.0.0
-
-
- org.libreccm
- ccm-bundle-devel
- ../ccm-bundle-devel
- 7.0.0-SNAPSHOT
-
-
- org.libreccm
- ccm-bundle-devel-wildfly-web
-
- war
-
- LibreCCM Devel Bundle Web for Wildfly
- http://www.libreccm.org/modules/web/wildfly
-
-
-
- org.webjars
- font-awesome
-
-
-
- org.webjars
- requirejs
-
-
-
- org.webjars
- requirejs-domready
-
-
-
- org.webjars.npm
- tinymce
-
-
-
-
- org.librecms
- ccm-cms-pagemodelseditor
- ${project.parent.version}
-
-
- org.librecms
- ccm-cms-tinymce
- ${project.parent.version}
-
-
-
-
- libreccm-web-wildfly
-
-
-
- src/main/resources
-
-
- ${project.build.directory}/generated-resources
-
-
-
-
-
- org.apache.maven.plugins
- maven-compiler-plugin
-
- 1.8
- 1.8
- true
- true
- ${project.build.sourceEncoding}
-
-
-
-
- com.github.eirslett
- frontend-maven-plugin
-
-
- ../node
-
-
-
-
- Install node.js and NPM
-
- install-node-and-npm
-
-
- v12.18.2
-
-
-
- npm install ccm-cms-pagemodelseditor
-
- npm
-
-
- install ../ccm-cms-pagemodelseditor
-
-
-
- npm install
-
- npm
-
-
-
- build
-
- npm
-
-
- run build
-
-
-
-
-
-
- org.apache.maven.plugins
- maven-war-plugin
-
-
-
-
- src/main/resources
-
-
- ${project.build.directory}/generated-resources
-
-
-
-
-
- org.libreccm
- ccm-editor
- jar
-
-
- org.libreccm
- ccm-pagemodelseditor
- jar
-
-
- org.libreccm
- ccm-theme-foundry
- jar
-
-
- org.libreccm
- ccm-core
- jar
-
- assets/
-
-
-
- org.librecms
- ccm-cms
- jar
-
- templates/
-
-
-
- org.librecms
- ccm-cms-tinymce
- jar
-
- scripts/
-
-
-
-
-
-
-
- org.wildfly.plugins
- wildfly-maven-plugin
-
- true
-
-
-
-
-
diff --git a/ccm-bundle-devel-wildfly-web/pom.xml.releaseBackup b/ccm-bundle-devel-wildfly-web/pom.xml.releaseBackup
deleted file mode 100644
index 0a5ef02fb..000000000
--- a/ccm-bundle-devel-wildfly-web/pom.xml.releaseBackup
+++ /dev/null
@@ -1,107 +0,0 @@
-
-
-
-
- UTF-8
-
-
- 4.0.0
-
-
- org.libreccm
- ccm-bundle-devel
- ../ccm-bundle-devel
- 7.0.0-SNAPSHOT
-
-
- org.libreccm
- ccm-bundle-devel-wildfly-web
-
- war
-
- LibreCCM Devel Bundle Web for Wildfly
- http://www.libreccm.org/modules/web/wildfly
-
-
-
- org.webjars
- font-awesome
- 4.7.0
-
-
- org.webjars
- requirejs
- 2.3.5
-
-
- org.webjars
- requirejs-domready
- 2.0.1-2
-
-
-
-
- libreccm-web-wildfly
-
-
-
- org.apache.maven.plugins
- maven-compiler-plugin
-
- 1.8
- 1.8
- true
- true
- ${project.build.sourceEncoding}
-
-
-
-
- org.apache.maven.plugins
- maven-war-plugin
-
-
-
- org.libreccm
- ccm-editor
- jar
-
-
- org.libreccm
- ccm-theme-foundry
- jar
-
-
- org.libreccm
- ccm-core
- jar
-
- assets/
- VAADIN/
-
-
-
- org.librecms
- ccm-cms
- jar
-
- templates/
-
-
-
-
-
-
-
- org.wildfly.plugins
- wildfly-maven-plugin
-
- true
-
-
-
-
-
diff --git a/ccm-bundle-devel-wildfly-web/src/site/apt/index.apt b/ccm-bundle-devel-wildfly-web/src/site/apt/index.apt
deleted file mode 100644
index 494ab2cc9..000000000
--- a/ccm-bundle-devel-wildfly-web/src/site/apt/index.apt
+++ /dev/null
@@ -1,12 +0,0 @@
- --------------
- Overview
- --------------
- Jens Pelzetter
- --------------
- 2016-03-18
- --------------
-
-LibreCCM Bundle Web for Wildfly
-
- This module provides the web application part of the the LibreCCM devel
- bundle for the Wildfly application server.
diff --git a/ccm-bundle-devel-wildfly-web/src/site/site.xml b/ccm-bundle-devel-wildfly-web/src/site/site.xml
deleted file mode 100644
index c18a2230c..000000000
--- a/ccm-bundle-devel-wildfly-web/src/site/site.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ccm-bundle-devel-wildfly/.gitignore b/ccm-bundle-devel-wildfly/.gitignore
new file mode 100644
index 000000000..ee3de53b9
--- /dev/null
+++ b/ccm-bundle-devel-wildfly/.gitignore
@@ -0,0 +1,2 @@
+datasource.properties
+wildfly.properties
diff --git a/ccm-bundle-devel-wildfly/README.md b/ccm-bundle-devel-wildfly/README.md
new file mode 100644
index 000000000..8f7efd49b
--- /dev/null
+++ b/ccm-bundle-devel-wildfly/README.md
@@ -0,0 +1,42 @@
+# ccm-bundle-devel-wildfly README
+
+This module creates a WAR which can be deployed to a Wildfly Application
+Server. For testing, the module also provides an runtime environment
+and the setup. The runtime is managed using the
+[wildfly-maven-plugin](https://docs.jboss.org/wildfly/plugins/maven/latest/).
+
+At the moment the runtime only supports PostgreSQL as database.
+
+To use these runtime some prepration steps are necessary.
+
+1. Create the configuration files. The runtime is configured using two files:
+ * wildfly.properties allows it to configure the ports used by the Wildfly server
+ * datasource.properties provides the configuration data for datasource used by
+ LibreCCM.
+
+ For both files examples are provided (`datasource.example.properties`,
+ `wildfly.example.properties`). Copy the example files and customize
+ the settings is necessary.
+
+2. Run a build using the `setup-runtime` profile. It is important to add the
+ `package` goal, otherwise the WAR file which is deployed in this step is
+ not build correctly:
+
+ ```
+ mvn package -Psetup-runtime -pl ccm-bundle-devel-wildfly -am
+ ```
+
+ During the `package` phase of the this module Wildfly will be downloaded,
+ unpackaged into the `target` directory, the PostgreSQL driver will be
+ deployed, a datasource will be generated and the WAR file will be deployed.
+
+To run LibreCCM in this environment, use the `enable-runtime` profile and the `wildfly:start`
+goal:
+
+ mvn -pl ccm-bundle-devel-wildfly wildfly:start
+
+To shutdown the server:
+
+ mvn -pl ccm-bundle-devel-wildfly wildfly:shutdown
+
+
diff --git a/ccm-bundle-devel-wildfly/datasource.example.properties b/ccm-bundle-devel-wildfly/datasource.example.properties
new file mode 100644
index 000000000..2ce5dd016
--- /dev/null
+++ b/ccm-bundle-devel-wildfly/datasource.example.properties
@@ -0,0 +1,3 @@
+libreccm.datasource.connectionUrl=jdbc:postgresql://localhost:5432/ccm-devel-beta
+libreccm.datasource.username=ccm
+libreccm.datasource.password=ccm
diff --git a/ccm-bundle-devel-wildfly-web/package-lock.json b/ccm-bundle-devel-wildfly/package-lock.json
similarity index 100%
rename from ccm-bundle-devel-wildfly-web/package-lock.json
rename to ccm-bundle-devel-wildfly/package-lock.json
diff --git a/ccm-bundle-devel-wildfly-web/package.json b/ccm-bundle-devel-wildfly/package.json
similarity index 100%
rename from ccm-bundle-devel-wildfly-web/package.json
rename to ccm-bundle-devel-wildfly/package.json
diff --git a/ccm-bundle-devel-wildfly/pom.xml b/ccm-bundle-devel-wildfly/pom.xml
index 879f9eedc..3b5274fa5 100644
--- a/ccm-bundle-devel-wildfly/pom.xml
+++ b/ccm-bundle-devel-wildfly/pom.xml
@@ -1,202 +1,362 @@
-
+
UTF-8
- 12.0.0.Final
+
-
+
4.0.0
-
+
org.libreccm
- libreccm-parent
+ ccm-bundle-devel
+ ../ccm-bundle-devel7.0.0-SNAPSHOT
-
+
org.libreccmccm-bundle-devel-wildfly
- ear
-
- LibreCCM Devel Bundle for Wildfly
- http://www.libreccm.org/bundles/devel/wildfly
+ war
+ LibreCCM Devel Bundle for Wildfly
+ http://www.libreccm.org/modules/web/wildfly
+
- org.libreccm
- ccm-bundle-devel-wildfly-web
- ${project.parent.version}
- war
+ org.webjars
+ font-awesome
+
+
+
+ org.webjars
+ requirejs
+
+
+
+ org.webjars
+ requirejs-domready
+
+
+
+ org.webjars.npm
+ tinymce
+
+
+
+
+ org.librecms
+ ccm-cms-pagemodelseditor
+ ${project.parent.version}
+
+
+ org.librecms
+ ccm-cms-tinymce
+ ${project.parent.version}
-
-
-
- libreccm-devel-${project.version}
+
+
+
+
+ libreccm-web-wildfly
+
+
+
+ src/main/resources
+
+
+ ${project.build.directory}/generated-resources
+
+
+
org.apache.maven.plugins
- maven-ear-plugin
+ maven-compiler-plugin
-
- 7
-
- lib
- no-version
-
-
+ 1.8
+ 1.8
+ true
+ true
+ ${project.build.sourceEncoding}
+
+
+
+
+ com.github.eirslett
+ frontend-maven-plugin
+
+
+ ../node
+
+
+
+
+ Install node.js and NPM
+
+ install-node-and-npm
+
+
+ v8.11.4
+
+
+
+
+ npm link @librecms/ccm-cms-pagemodelseditor
+
+ npm
+
+
+ link @librecms/ccm-cms-pagemodelseditor
+
+
+
+
+
+ npm install
+
+ npm
+
+
+
+ build
+
+ npm
+
+
+ run build
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-war-plugin
+
+
+
+
+ src/main/resources
+
+
+ ${project.build.directory}/generated-resources
+
+
+
+
+ org.libreccm
- ccm-bundle-devel-wildfly-web
- /libreccm
-
-
+ ccm-editor
+ jar
+
+
+ org.libreccm
+ ccm-pagemodelseditor
+ jar
+
+
+ org.libreccm
+ ccm-theme-foundry
+ jar
+
+
+ org.libreccm
+ ccm-core
+ jar
+
+ assets/
+
+
+
+ org.librecms
+ ccm-cms
+ jar
+
+ templates/
+
+
+
+ org.librecms
+ ccm-cms-tinymce
+ jar
+
+ scripts/
+
+
+
+
+ org.apache.maven.plugins
+ maven-clean-plugin
+
+ true
+
+
+ ${project.build.directory}
+
+ wildfly*/**
+
+
+
+
+
+
+
+ org.wildfly.plugins
+ wildfly-maven-plugin
+
+ false
+ ${project.basedir}/wildfly.properties
+
+
+
-
-
+
-
-
- h2
-
-
-
-
- org.wildfly.plugins
- wildfly-maven-plugin
-
-
- ${wildfly.version}
-
- false
-
-
-
-
- admin
- admin123
-
-
-
-
-
-
- data-source add --jndi-name=java:/comp/env/jdbc/libreccm/db --name=ccm-devel --connection-url=jdbc:h2:${project.build.directory}/libreccm-db;DB_CLOSE_ON_EXIT=FALSE --driver-name=h2 --driver-class=org.h2.Driver --user-name=sa --password=sa
-
-
-
-
- -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8787
-
-
-
-
-
-
-
-
-
-
-
- pgsql
-
+ setup-runtimeorg.postgresqlpostgresql
- 9.4.1208
-
+
+ org.codehaus.mojo
+ properties-maven-plugin
+
+
+ read-datasource-properties
+ initialize
+
+ read-project-properties
+
+
+
+ ${project.basedir}/datasource.properties
+
+
+
+
+ org.wildfly.pluginswildfly-maven-plugin
-
- ${wildfly.version}
-
false
-
-
-
-
- admin
- admin1234
-
-
-
-
-
-
-
- module add --name=org.postgres --resources=${project.build.directory}/${project.build.finalName}/lib/postgresql.jar --dependencies=javax.api,javax.transaction.api
- /subsystem=datasources/jdbc-driver=postgres:add(driver-name="postgres",driver-module-name="org.postgres",driver-class-name=org.postgresql.Driver)
- data-source add --jndi-name=java:/comp/env/jdbc/libreccm/db --name=libreccm-devel --connection-url=jdbc:postgresql://localhost:5432/libreccm-devel --driver-name=postgres --driver-class=org.postgresql.Driver --user-name=ccm --password=ccm47web
-
-
-
-
- -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8787
-
-
+ ${project.basedir}/wildfly.properties
-
+
+
+ start-for-prepare
+
+ start
+
+ package
+
+ System.out
+
+
+
+ deploy-jdbc-driver
+
+ org.postgresql
+ postgresql
+ postgresql.jar
+ true
+
+ package
+
+ deploy-artifact
+
+
+
+ add-datasource
+
+ subsystem=datasources,data-source=ccm-devel
+ true
+
+
+
+ ${libreccm.datasource.connectionUrl}
+ java:/comp/env/jdbc/libreccm/db
+ true
+ ${libreccm.datasource.username}
+ ${libreccm.datasource.password}
+ false
+ postgresql.jar
+
+
+
+
+
+ package
+
+ add-resource
+
+
+
+ deploy-libreccm-bundle-devel
+
+ true
+
+ package
+
+ deploy-only
+
+
+
+ shutdown-after-deploy
+ package
+
+ shutdown
+
+
+
-
-
-
- generic
-
-
-
-
- org.wildfly.plugins
- wildfly-maven-plugin
-
-
- ${wildfly.version}
-
- false
- 120
-
-
- -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8787
-
-
-
-
-
-
-
+
-
diff --git a/ccm-bundle-devel-wildfly/pom.xml.releaseBackup b/ccm-bundle-devel-wildfly/pom.xml.releaseBackup
index 2fff1b822..0a5ef02fb 100644
--- a/ccm-bundle-devel-wildfly/pom.xml.releaseBackup
+++ b/ccm-bundle-devel-wildfly/pom.xml.releaseBackup
@@ -6,200 +6,102 @@
UTF-8
- 10.0.0.Final4.0.0org.libreccm
- libreccm-parent
+ ccm-bundle-devel
+ ../ccm-bundle-devel7.0.0-SNAPSHOTorg.libreccm
- ccm-bundle-devel-wildfly
+ ccm-bundle-devel-wildfly-web
- ear
+ war
+
+ LibreCCM Devel Bundle Web for Wildfly
+ http://www.libreccm.org/modules/web/wildfly
- LibreCCM Devel Bundle for Wildfly
- http://www.libreccm.org/bundles/devel/wildfly
-
- org.libreccm
- ccm-bundle-devel-wildfly-web
- ${project.parent.version}
- war
+ org.webjars
+ font-awesome
+ 4.7.0
+
+
+ org.webjars
+ requirejs
+ 2.3.5
+
+
+ org.webjars
+ requirejs-domready
+ 2.0.1-2
- libreccm-devel-${project.version}
+ libreccm-web-wildflyorg.apache.maven.plugins
- maven-ear-plugin
+ maven-compiler-plugin
-
- 7
-
- lib
- no-version
-
-
- org.libreccm
- ccm-bundle-devel-wildfly-web
- /libreccm
-
-
+ 1.8
+ 1.8
+ true
+ true
+ ${project.build.sourceEncoding}
+
+ org.apache.maven.plugins
+ maven-war-plugin
+
+
+
+ org.libreccm
+ ccm-editor
+ jar
+
+
+ org.libreccm
+ ccm-theme-foundry
+ jar
+
+
+ org.libreccm
+ ccm-core
+ jar
+
+ assets/
+ VAADIN/
+
+
+
+ org.librecms
+ ccm-cms
+ jar
+
+ templates/
+
+
+
+
+
+
+
+ org.wildfly.plugins
+ wildfly-maven-plugin
+
+ true
+
+
-
-
-
-
-
-
- h2
-
-
-
-
- org.wildfly.plugins
- wildfly-maven-plugin
-
-
- ${wildfly.version}
-
- false
-
-
-
-
- admin
- admin123
-
-
-
-
-
-
- data-source add --jndi-name=java:/comp/env/jdbc/libreccm/db --name=ccm-devel --connection-url=jdbc:h2:${project.build.directory}/libreccm-db;DB_CLOSE_ON_EXIT=FALSE --driver-name=h2 --driver-class=org.h2.Driver --user-name=sa --password=sa
-
-
-
-
- -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8787
-
-
-
-
-
-
-
-
-
-
-
- pgsql
-
-
-
- org.postgresql
- postgresql
- 9.4.1208
-
-
-
-
-
-
- org.wildfly.plugins
- wildfly-maven-plugin
-
-
- ${wildfly.version}
-
- false
-
-
-
-
- admin
- admin1234
-
-
-
-
-
-
-
- module add --name=org.postgres --resources=${project.build.directory}/${project.build.finalName}/lib/postgresql.jar --dependencies=javax.api,javax.transaction.api
- /subsystem=datasources/jdbc-driver=postgres:add(driver-name="postgres",driver-module-name="org.postgres",driver-class-name=org.postgresql.Driver)
- data-source add --jndi-name=java:/comp/env/jdbc/libreccm/db --name=libreccm-devel --connection-url=jdbc:postgresql://localhost:5432/libreccm-devel --driver-name=postgres --driver-class=org.postgresql.Driver --user-name=ccm --password=ccm47web
-
-
-
-
- -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8787
-
-
-
-
-
-
-
-
-
-
-
- generic
-
-
-
-
- org.wildfly.plugins
- wildfly-maven-plugin
-
-
- ${wildfly.version}
-
- false
- 120
-
-
- -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8787
-
-
-
-
-
-
-
-
-
diff --git a/ccm-bundle-devel-wildfly-web/src/main/resources/log4j2.xml b/ccm-bundle-devel-wildfly/src/main/resources/log4j2.xml
similarity index 100%
rename from ccm-bundle-devel-wildfly-web/src/main/resources/log4j2.xml
rename to ccm-bundle-devel-wildfly/src/main/resources/log4j2.xml
diff --git a/ccm-bundle-devel-wildfly-web/src/main/resources/scripts/ccm-cms/tinymce-loader.js b/ccm-bundle-devel-wildfly/src/main/resources/scripts/ccm-cms/tinymce-loader.js
similarity index 100%
rename from ccm-bundle-devel-wildfly-web/src/main/resources/scripts/ccm-cms/tinymce-loader.js
rename to ccm-bundle-devel-wildfly/src/main/resources/scripts/ccm-cms/tinymce-loader.js
diff --git a/ccm-bundle-devel-wildfly-web/src/main/resources/shiro.ini b/ccm-bundle-devel-wildfly/src/main/resources/shiro.ini
similarity index 100%
rename from ccm-bundle-devel-wildfly-web/src/main/resources/shiro.ini
rename to ccm-bundle-devel-wildfly/src/main/resources/shiro.ini
diff --git a/ccm-bundle-devel-wildfly-web/src/main/resources/stylesheet-paths.txt b/ccm-bundle-devel-wildfly/src/main/resources/stylesheet-paths.txt
similarity index 100%
rename from ccm-bundle-devel-wildfly-web/src/main/resources/stylesheet-paths.txt
rename to ccm-bundle-devel-wildfly/src/main/resources/stylesheet-paths.txt
diff --git a/ccm-bundle-devel-wildfly-web/src/main/resources/systeminformation.properties b/ccm-bundle-devel-wildfly/src/main/resources/systeminformation.properties
similarity index 100%
rename from ccm-bundle-devel-wildfly-web/src/main/resources/systeminformation.properties
rename to ccm-bundle-devel-wildfly/src/main/resources/systeminformation.properties
diff --git a/ccm-bundle-devel-wildfly-web/src/main/typescript/ccm-cms-pagemodelseditor.ts b/ccm-bundle-devel-wildfly/src/main/typescript/ccm-cms-pagemodelseditor.ts
similarity index 100%
rename from ccm-bundle-devel-wildfly-web/src/main/typescript/ccm-cms-pagemodelseditor.ts
rename to ccm-bundle-devel-wildfly/src/main/typescript/ccm-cms-pagemodelseditor.ts
diff --git a/ccm-bundle-devel-wildfly-web/src/main/typescript/ccm-cms-tinymce.ts.off b/ccm-bundle-devel-wildfly/src/main/typescript/ccm-cms-tinymce.ts.off
similarity index 100%
rename from ccm-bundle-devel-wildfly-web/src/main/typescript/ccm-cms-tinymce.ts.off
rename to ccm-bundle-devel-wildfly/src/main/typescript/ccm-cms-tinymce.ts.off
diff --git a/ccm-bundle-devel-wildfly-web/src/main/typescript/ccm-cms.ts b/ccm-bundle-devel-wildfly/src/main/typescript/ccm-cms.ts
similarity index 100%
rename from ccm-bundle-devel-wildfly-web/src/main/typescript/ccm-cms.ts
rename to ccm-bundle-devel-wildfly/src/main/typescript/ccm-cms.ts
diff --git a/ccm-bundle-devel-wildfly-web/src/main/typescript/tinymce.off/ccm-cms-tinymce-loader.ts.off b/ccm-bundle-devel-wildfly/src/main/typescript/tinymce.off/ccm-cms-tinymce-loader.ts.off
similarity index 100%
rename from ccm-bundle-devel-wildfly-web/src/main/typescript/tinymce.off/ccm-cms-tinymce-loader.ts.off
rename to ccm-bundle-devel-wildfly/src/main/typescript/tinymce.off/ccm-cms-tinymce-loader.ts.off
diff --git a/ccm-bundle-devel-wildfly-web/src/main/webapp/WEB-INF/beans.xml b/ccm-bundle-devel-wildfly/src/main/webapp/WEB-INF/beans.xml
similarity index 100%
rename from ccm-bundle-devel-wildfly-web/src/main/webapp/WEB-INF/beans.xml
rename to ccm-bundle-devel-wildfly/src/main/webapp/WEB-INF/beans.xml
diff --git a/ccm-bundle-devel-wildfly-web/src/main/webapp/WEB-INF/classes/META-INF/persistence.xml b/ccm-bundle-devel-wildfly/src/main/webapp/WEB-INF/classes/META-INF/persistence.xml
similarity index 100%
rename from ccm-bundle-devel-wildfly-web/src/main/webapp/WEB-INF/classes/META-INF/persistence.xml
rename to ccm-bundle-devel-wildfly/src/main/webapp/WEB-INF/classes/META-INF/persistence.xml
diff --git a/ccm-bundle-devel-wildfly-web/src/main/webapp/WEB-INF/conf/registry/registry.properties b/ccm-bundle-devel-wildfly/src/main/webapp/WEB-INF/conf/registry/registry.properties
similarity index 100%
rename from ccm-bundle-devel-wildfly-web/src/main/webapp/WEB-INF/conf/registry/registry.properties
rename to ccm-bundle-devel-wildfly/src/main/webapp/WEB-INF/conf/registry/registry.properties
diff --git a/ccm-bundle-devel-wildfly-web/src/main/webapp/WEB-INF/faces-config.xml b/ccm-bundle-devel-wildfly/src/main/webapp/WEB-INF/faces-config.xml
similarity index 100%
rename from ccm-bundle-devel-wildfly-web/src/main/webapp/WEB-INF/faces-config.xml
rename to ccm-bundle-devel-wildfly/src/main/webapp/WEB-INF/faces-config.xml
diff --git a/ccm-bundle-devel-wildfly/src/main/webapp/WEB-INF/jboss-web.xml b/ccm-bundle-devel-wildfly/src/main/webapp/WEB-INF/jboss-web.xml
new file mode 100644
index 000000000..3b2f84d32
--- /dev/null
+++ b/ccm-bundle-devel-wildfly/src/main/webapp/WEB-INF/jboss-web.xml
@@ -0,0 +1,4 @@
+
+
+ /libreccm
+
diff --git a/ccm-bundle-devel-wildfly-web/src/main/webapp/WEB-INF/web.xml b/ccm-bundle-devel-wildfly/src/main/webapp/WEB-INF/web.xml
similarity index 100%
rename from ccm-bundle-devel-wildfly-web/src/main/webapp/WEB-INF/web.xml
rename to ccm-bundle-devel-wildfly/src/main/webapp/WEB-INF/web.xml
diff --git a/ccm-bundle-devel-wildfly-web/src/main/webapp/ccm-editor/ccm-editor-loader.js b/ccm-bundle-devel-wildfly/src/main/webapp/ccm-editor/ccm-editor-loader.js
similarity index 100%
rename from ccm-bundle-devel-wildfly-web/src/main/webapp/ccm-editor/ccm-editor-loader.js
rename to ccm-bundle-devel-wildfly/src/main/webapp/ccm-editor/ccm-editor-loader.js
diff --git a/ccm-bundle-devel-wildfly-web/src/main/webapp/test-index.xhtml b/ccm-bundle-devel-wildfly/src/main/webapp/test-index.xhtml
similarity index 100%
rename from ccm-bundle-devel-wildfly-web/src/main/webapp/test-index.xhtml
rename to ccm-bundle-devel-wildfly/src/main/webapp/test-index.xhtml
diff --git a/ccm-bundle-devel-wildfly/src/site/apt/index.apt b/ccm-bundle-devel-wildfly/src/site/apt/index.apt
index 21efc60eb..494ab2cc9 100644
--- a/ccm-bundle-devel-wildfly/src/site/apt/index.apt
+++ b/ccm-bundle-devel-wildfly/src/site/apt/index.apt
@@ -3,61 +3,10 @@
--------------
Jens Pelzetter
--------------
- 2016-06-03
+ 2016-03-18
--------------
-LibreCCM Bundle for Wildfly
+LibreCCM Bundle Web for Wildfly
- This module provides the LibreCCM development bundle for the Wildfly
- application server.
-
- This bundle is not meant for production use as its contains most of the
- available modules.
-
- Developers can run this LibreCCM directly from Maven. Three profiles are
- provided:
-
- [h2] Uses a H2 database located in the project build directory. This means
- that the database is deleted every time <<>>.
-
- [pgsql] Uses an PostgresSQL database with a generic configuration. The
- PostgreSQL server must run on localhost and the standard port and there
- must be a database called with <<>> which is accessible
- for the user <<>> using the password <<>>.
-
- [generic] Uses an existing Wildfly installation. The datasource for the
- database which is used by LibreCCM has to be configured by the user for this
- profile. Also, Maven or more exactly the wildfly-maven-plugin has to know
- the location of the Wildfly instance to use. The location of the Wildfly
- instance can either be provided on the command line when invoking Maven
- or by setting the <<>> environment variable.
-
- When using the <<
>> it is not necessary to install a Wildfly application
- server first. The will download the Wildfly
- application server and extract the server into the <<>> directory.
-
- The <<
>> and the <<>> profile add a user to the Wildfly server
- with the username <<>> and the password <<>> which allow
- the developer to access the management web UI of the Wildfly server.
-
-* Run examples
-
- ** Profile h2
-
- To run the LibreCCM bundle using a H2 database:
-
- mvn package wildfly:run -pl ccm-bundle-devel-wildfly -am -Ph2
-
- ** Profile pgsql
-
- mvn package wildfly:run -pl ccm-bundle-devel-wildfly -am -Ppgsql
-
- ** Profile generic
-
- mvn -Djboss-as.home=/home/mustermann/java-ee-servers/wildfly/wildfly-10.0.0.Final package wildfly:run -pl ccm-bundle-devel-wildfly -am -Pgeneric
-
- ** Additional options
-
- The <<>> goal of the provides several
- other options. For a complete list please refer to the documentation of the
- {{{https://docs.jboss.org/wildfly/plugins/maven/latest/run-mojo.html}run goal}}.
\ No newline at end of file
+ This module provides the web application part of the the LibreCCM devel
+ bundle for the Wildfly application server.
diff --git a/ccm-bundle-devel-wildfly/src/site/site.xml b/ccm-bundle-devel-wildfly/src/site/site.xml
index c862aebae..c18a2230c 100644
--- a/ccm-bundle-devel-wildfly/src/site/site.xml
+++ b/ccm-bundle-devel-wildfly/src/site/site.xml
@@ -10,11 +10,10 @@