From dd13055dbac806f37e57f6a31e9516fae5e70483 Mon Sep 17 00:00:00 2001 From: jensp Date: Mon, 27 Feb 2017 13:31:55 +0000 Subject: [PATCH] CCM NG/ccm-core: Managed profile which starts Wildfly automatically. git-svn-id: https://svn.libreccm.org/ccm/ccm_ng@4603 8810af33-2d31-482b-a856-94f89814c4df --- README.txt | 7 +++ ccm-core/pom.xml | 161 +++++++++++++++++++++++++++++++++++++++++++++++ pom.xml | 12 ++++ 3 files changed, 180 insertions(+) diff --git a/README.txt b/README.txt index 7e3de9342..d28c84678 100644 --- a/README.txt +++ b/README.txt @@ -56,3 +56,10 @@ To install the archetypes in your local Maven repository run 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. + diff --git a/ccm-core/pom.xml b/ccm-core/pom.xml index b4516bbd1..46e8c3bdc 100644 --- a/ccm-core/pom.xml +++ b/ccm-core/pom.xml @@ -774,6 +774,167 @@ + + wildfly-managed-h2-mem + + + org.wildfly.arquillian + wildfly-arquillian-container-managed + test + + + org.jacoco + org.jacoco.core + test + + + org.jboss.arquillian.extension + arquillian-jacoco + 1.0.0.Alpha9 + + + net.sf.saxon + Saxon-HE + + + + + + + src/test/resources + + + src/test/resources-wildfly-remote-h2-mem + + + ${project.build.directory}/generated-resources + + + + + + de.jpdigital + hibernate5-ddl-maven-plugin + + + h2 + postgresql9 + + + org.libreccm + + true + + + + + gen-ddl + + process-classes + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.19.1 + + always + 999 + true + + org.jboss.logmanager.LogManager + + false + + org.libreccm.tests.categories.UnitTest, + org.libreccm.tests.categories.IntegrationTest + + false + + + + + + + + wildfly-managed-pgsql + + + org.wildfly.arquillian + wildfly-arquillian-container-managed + test + + + org.jacoco + org.jacoco.core + test + + + net.sf.saxon + Saxon-HE + + + + + + + src/test/resources + + + src/test/resources-wildfly-remote-pgsql + + + ${project.build.directory}/generated-resources + + + + + + de.jpdigital + hibernate5-ddl-maven-plugin + + + h2 + postgresql9 + + + org.libreccm + + true + + + + + gen-ddl + + process-classes + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.19.1 + + always + 999 + true + + org.jboss.logmanager.LogManager + + false + + org.libreccm.tests.categories.UnitTest, + org.libreccm.tests.categories.IntegrationTest + + false + + + + + + wildfly-remote-h2-mem diff --git a/pom.xml b/pom.xml index 9dcafff68..ac6bec3e0 100644 --- a/pom.xml +++ b/pom.xml @@ -540,6 +540,18 @@ arquillian-persistence-dbunit 1.0.0.Alpha7 + + org.wildfly + wildfly-arquillian-container-managed + 8.2.1.Final + test + + + org.wildfly.arquillian + wildfly-arquillian-container-managed + 2.0.2.Final + test + org.wildfly wildfly-arquillian-container-remote