Skip to content

Commit

Permalink
Revert "Try to move the env vars into pluginManagement"
Browse files Browse the repository at this point in the history
This reverts commit 54b647d.
  • Loading branch information
kabir committed Apr 25, 2024
1 parent 54b647d commit 8fd8158
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 27 deletions.
21 changes: 7 additions & 14 deletions ejb-txn-remote-call/client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -190,16 +190,6 @@
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>${version.plugin.wildfly}</version>
<configuration>
<!-- Env used when calling wildfly:start goal -->
<env>
<POSTGRESQL_DATABASE>test</POSTGRESQL_DATABASE>
<POSTGRESQL_JNDI>java:jboss/datasources/ejbJtaDs</POSTGRESQL_JNDI>
<POSTGRESQL_PASSWORD>${postgresqlUsername}</POSTGRESQL_PASSWORD>
<POSTGRESQL_USER>${postgresqlPassword}</POSTGRESQL_USER>
</env>
</configuration>

</plugin>
</plugins>
</pluginManagement>
Expand All @@ -225,10 +215,13 @@
<configuration>
<filename>client.war</filename>
<serverConfig>standalone.xml</serverConfig>
<!--
Note that the pluginManagement section for this plugin contains environment variables
which are needed to connect to the database when doing 'mvn wildfly:start'
-->
<!-- Env used when calling wildfly:start goal -->
<env>
<POSTGRESQL_DATABASE>test</POSTGRESQL_DATABASE>
<POSTGRESQL_JNDI>java:jboss/datasources/ejbJtaDs</POSTGRESQL_JNDI>
<POSTGRESQL_PASSWORD>${postgresqlUsername}</POSTGRESQL_PASSWORD>
<POSTGRESQL_USER>${postgresqlPassword}</POSTGRESQL_USER>
</env>
</configuration>
<executions>
<execution>
Expand Down
20 changes: 7 additions & 13 deletions ejb-txn-remote-call/server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,6 @@
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>${version.plugin.wildfly}</version>
<configuration>
<!-- Env used when calling wildfly:start goal -->
<env>
<POSTGRESQL_DATABASE>test</POSTGRESQL_DATABASE>
<POSTGRESQL_JNDI>java:jboss/datasources/ejbJtaDs</POSTGRESQL_JNDI>
<POSTGRESQL_PASSWORD>${postgresqlUsername}</POSTGRESQL_PASSWORD>
<POSTGRESQL_USER>${postgresqlPassword}</POSTGRESQL_USER>
</env>
</configuration>
</plugin>
</plugins>
</pluginManagement>
Expand Down Expand Up @@ -210,10 +201,13 @@
<configuration>
<filename>server.war</filename>
<serverConfig>standalone-ha.xml</serverConfig>
<!--
Note that the pluginManagement section for this plugin contains environment variables
which are needed to connect to the database when doing 'mvn wildfly:start'
-->
<!-- Env used when calling wildfly:start goal -->
<env>
<POSTGRESQL_DATABASE>test</POSTGRESQL_DATABASE>
<POSTGRESQL_JNDI>java:jboss/datasources/ejbJtaDs</POSTGRESQL_JNDI>
<POSTGRESQL_PASSWORD>${postgresqlUsername}</POSTGRESQL_PASSWORD>
<POSTGRESQL_USER>${postgresqlPassword}</POSTGRESQL_USER>
</env>
</configuration>
<executions>
<execution>
Expand Down

0 comments on commit 8fd8158

Please sign in to comment.