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/ccm-core/pom.xml b/ccm-core/pom.xml
index 86a5e1167..2c481f807 100644
--- a/ccm-core/pom.xml
+++ b/ccm-core/pom.xml
@@ -946,7 +946,7 @@
- test-with-wildfly
+ test-with-wildfly-h2mem
org.wildfly.arquillian
@@ -1044,19 +1044,19 @@
subsystem=datasources,data-source=ccm-core-testdb-h2-mem
true
-
-
-
- jdbc:h2:mem:ccm-core-testdb
- java:/comp/env/jdbc/org/libreccm/ccm-core/h2-mem
- true
- sa
- sa
- false
- h2
-
-
-
+
+
+
+ jdbc:h2:mem:ccm-core-testdb
+ java:/comp/env/jdbc/org/libreccm/ccm-core/h2-mem
+ true
+ sa
+ sa
+ false
+ h2
+
+
+
@@ -1087,7 +1087,186 @@
+
+
+
+ test-with-wildfly-pgsql
+
+
+ org.wildfly.arquillian
+ wildfly-arquillian-container-remote
+ test
+
+
+ net.sf.saxon
+ Saxon-HE
+
+
+ org.postgresql
+ postgresql
+ provided
+
+
+
+
+
+
+ src/test/resources
+
+
+ src/test/resources-wildfly-remote-pgsql
+
+
+ ${project.build.directory}/generated-resources
+
+
+
+
+
+
+ de.jpdigital
+ hibernate53-ddl-maven-plugin
+
+
+ h2
+ postgresql9
+
+
+ org.libreccm
+
+ true
+
+
+
+
+ gen-ddl
+
+ process-classes
+
+
+
+
+ org.apache.maven.plugins
+ maven-failsafe-plugin
+
+
+
+ integration-test
+ verify
+
+
+
+
+ always
+ 999
+ true
+
+ org.jboss.logmanager.LogManager
+
+ false
+ false
+
+
+
+ org.codehaus.mojo
+ properties-maven-plugin
+
+
+ read-datasource-properties
+ initialize
+
+ read-project-properties
+
+
+
+ ${project.basedir}/../it-pgsql-datasources.properties
+
+
+
+
+
+
+ org.wildfly.plugins
+ wildfly-maven-plugin
+
+ false
+
+
+
+ start-test-env
+
+ start
+
+ pre-integration-test
+
+ System.out
+
+
+
+ prepare-deploy-jdbc-driver
+
+ org.postgresql
+ postgresql
+ postgresql.jar
+ true
+
+ pre-integration-test
+
+ deploy-artifact
+
+
+
+ prepare-test-env
+
+ add-resource
+
+ pre-integration-test
+
+ subsystem=datasources,data-source=ccm-core-testdb-pgsql
+ true
+
+
+
+ ${it.ccm-core.datasource.connectionUrl}
+ java:/comp/env/jdbc/org/libreccm/ccm-core/pgsql
+ true
+ ${it.ccm-core.datasource.username}
+ ${it.ccm-core.datasource.password}
+ false
+ postgresql.jar
+
+
+
+
+
+
+ shutdown-test-env
+
+ shutdown
+
+ post-integration-test
+
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-surefire-report-plugin
+
+
+ integration-tests
+
+ failsafe-report-only
+
+
+
+
+
+
diff --git a/it-pgsql-datasources.example.properties b/it-pgsql-datasources.example.properties
new file mode 100644
index 000000000..206a580c5
--- /dev/null
+++ b/it-pgsql-datasources.example.properties
@@ -0,0 +1,11 @@
+# Example configuration file for the PostgreSQL datasources used in integration test
+# profiles test-with-wildfly-pgsql
+# name format: it.${moduleName}.datasource.${property}
+#
+# Copy these file to it-pgsql-datasources.properties and customize the settings
+# to fit your environment
+
+it.ccm-core.datasource.connectionUrl=jdbc://postgresql://localhost:5432/ccm-core-testdb
+it.ccm-core.datasource.username=ccm
+it.ccm-core.datasource.password=ccm
+
diff --git a/pom.xml b/pom.xml
index 3a1cda1a4..f82eb789c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -483,7 +483,7 @@
org.postgresql
postgresql
- 42.2.13
+ 42.2.14