Migrating official Javaee-tutorial examples from GlassFish to WildFly
kunalc101 Aug 20, 2016 1:53 AM...
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.5.0</version>
<configuration>
<skip>true</skip>
<executable>${glassfish.home}/bin/asadmin${glassfish.executables.suffix}</executable>
</configuration>
</plugin>
</plugins>
</build>
..
There are several POM files in the examples using the exec maven plugin with- <executable>${glassfish.home}/bin/asadmin${glassfish.executables.suffix}</executable>.
In some cases, there additional configurations specified within <configuration>..</configuration>.
...
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.5.0</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<skip>false</skip>
<executable>{glassfish.home}/bin/asadmin${glassfish.executables.suffix}</executable>
<successCodes>
<successCode>0</successCode>
<successCode>1</successCode>
</successCodes>
<arguments>
<argument>create-auth-realm</argument>
<argument>--classname=com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm</argument>
<argument>--property=jaas-context=jdbcRealm:datasource-jndi=java\:global/ForestDataSource:user-table=forest.PERSON:user-name-column=email:password-column=password:group-table=forest.GROUPS:group-table-user-name-column=name:group-name-column=name:assign-groups=USERS,ADMINS:digest-algorithm=MD5</argument>
<argument>jdbcRealm</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
...
How do I change such GlassFish dependencies to work with Wildfly 10?