Added wildfly-maven-plugin to ccm-bundle-devel-wildfly-web

Former-commit-id: 9c1af31883
pull/4/head
Jens Pelzetter 2020-06-14 18:49:08 +02:00
parent b32f1e3cf3
commit 846bbed7ee
2 changed files with 40 additions and 16 deletions

View File

@ -222,7 +222,9 @@
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<configuration>
<skip>true</skip>
<commands>
<command>/subsystem=datasources/data-source=ccm-devel:add(driver-name=postgresql,jndi-name="java:/comp/env/jdbc/libreccm/db",connection-url="${wildfly.datasource.connectionUrl}",user-name="${wildfly.datasource.username}",password="${wildfly.datasource.password}",use-ccm="false")</command>
</commands>
</configuration>
</plugin>-->
</plugins>
@ -243,7 +245,7 @@
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<executions>
<execution>
<!-- <execution>
<id>undeploy</id>
<phase>clean</phase>
<goals>
@ -252,13 +254,16 @@
<configuration>
<ignoreMissingDeployment>true</ignoreMissingDeployment>
</configuration>
</execution>
</execution>-->
<execution>
<id>start</id>
<phase>package</phase>
<goals>
<goal>start</goal>
</goals>
<configuration>
<stdout>System.out</stdout>
</configuration>
</execution>
<execution>
<id>deploy-jdbc-driver</id>
@ -274,17 +279,24 @@
</execution>
<execution>
<id>add-datasource</id>
<phase>install</phase>
<phase>package</phase>
<configuration>
<address>subsystem=datasources,data-source=ccm-devel</address>
<resources>
<resource>
<!--<enableResource>true</enableResource>-->
<properties>
<connection-url>${wildfly.datasource.connectionUrl}</connection-url>
<jndi-name>java:/comp/env/jdbc/libreccm/db</jndi-name>
<enabled>true</enabled>
<username>${wildfly.datasource.username}</username>
<user-name>${wildfly.datasource.username}</user-name>
<password>${wildfly.datasource.password}</password>
<use-ccm>false</use-ccm>
<driver-name>postgresql.jar</driver-name>
</properties>
</resource>
</resources>
</configuration>
<goals>
<goal>add-resource</goal>
@ -293,18 +305,30 @@
<!-- <execution>
<id>run</id>
<phase>package</phase>
<configuration>
<commands>
<command>/subsystem=datasources/data-source=ccm-devel:add(driver-name=postgresql,jndi-name="java:/comp/env/jdbc/libreccm/db",connection-url="${wildfly.datasource.connectionUrl}",user-name="${wildfly.datasource.username}",password="${wildfly.datasource.password}",use-ccm="false")</command>
</commands>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>-->
<!-- <execution>
<id>run</id>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
</execution>-->
<execution>
<id>deploy</id>
<phase>package</phase>
<goals>
<goal>deploy</goal>
<goal>deploy-only</goal>
</goals>
</execution>
<execution>
<!--<execution>
<id>start</id>
<phase>package</phase>
<goals>

View File

@ -329,7 +329,7 @@
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>2.0.2.Final</version>
<version>2.1.0.Beta1</version>
</plugin>
</plugins>
</pluginManagement>