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

Jens Pelzetter 2020-06-14 18:49:08 +02:00
parent 707ba15ac1
commit 9c1af31883
2 changed files with 40 additions and 16 deletions

View File

@ -222,7 +222,9 @@
<groupId>org.wildfly.plugins</groupId> <groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId> <artifactId>wildfly-maven-plugin</artifactId>
<configuration> <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> </configuration>
</plugin>--> </plugin>-->
</plugins> </plugins>
@ -243,7 +245,7 @@
<groupId>org.wildfly.plugins</groupId> <groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId> <artifactId>wildfly-maven-plugin</artifactId>
<executions> <executions>
<execution> <!-- <execution>
<id>undeploy</id> <id>undeploy</id>
<phase>clean</phase> <phase>clean</phase>
<goals> <goals>
@ -252,13 +254,16 @@
<configuration> <configuration>
<ignoreMissingDeployment>true</ignoreMissingDeployment> <ignoreMissingDeployment>true</ignoreMissingDeployment>
</configuration> </configuration>
</execution> </execution>-->
<execution> <execution>
<id>start</id> <id>start</id>
<phase>package</phase> <phase>package</phase>
<goals> <goals>
<goal>start</goal> <goal>start</goal>
</goals> </goals>
<configuration>
<stdout>System.out</stdout>
</configuration>
</execution> </execution>
<execution> <execution>
<id>deploy-jdbc-driver</id> <id>deploy-jdbc-driver</id>
@ -274,22 +279,41 @@
</execution> </execution>
<execution> <execution>
<id>add-datasource</id> <id>add-datasource</id>
<phase>install</phase> <phase>package</phase>
<configuration> <configuration>
<address>subsystem=datasources,data-source=ccm-devel</address> <address>subsystem=datasources,data-source=ccm-devel</address>
<properties> <resources>
<connection-url>${wildfly.datasource.connectionUrl}</connection-url> <resource>
<jndi-name>java:/comp/env/jdbc/libreccm/db</jndi-name> <!--<enableResource>true</enableResource>-->
<enabled>true</enabled> <properties>
<username>${wildfly.datasource.username}</username> <connection-url>${wildfly.datasource.connectionUrl}</connection-url>
<password>${wildfly.datasource.password}</password> <jndi-name>java:/comp/env/jdbc/libreccm/db</jndi-name>
<use-ccm>false</use-ccm> <enabled>true</enabled>
</properties> <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> </configuration>
<goals> <goals>
<goal>add-resource</goal> <goal>add-resource</goal>
</goals> </goals>
</execution> </execution>
<!-- <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> <!-- <execution>
<id>run</id> <id>run</id>
<phase>package</phase> <phase>package</phase>
@ -297,14 +321,14 @@
<goal>run</goal> <goal>run</goal>
</goals> </goals>
</execution>--> </execution>-->
<!-- <execution> <execution>
<id>deploy</id> <id>deploy</id>
<phase>package</phase> <phase>package</phase>
<goals> <goals>
<goal>deploy</goal> <goal>deploy-only</goal>
</goals> </goals>
</execution> </execution>
<execution> <!--<execution>
<id>start</id> <id>start</id>
<phase>package</phase> <phase>package</phase>
<goals> <goals>

View File

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