1 Reply Latest reply on Oct 28, 2013 5:38 PM by jamezp

    Jboss-as maven plugin with Mysql datasource configuration

    jarednagle

      Hi There,

       

      I am attempting to configure a MySql Database to be deployed on jas 7 using the jboss-as-maven-plugin. I am having trouble setting it up and my persistence unit doesn't seem to detect the datasource. is there any examples of MySql datasource deployment using the plugin only? Thank you in advance

       

      I wish to deploy my datasource to the java:global/datasources/XXXX namespace. I am also deploying a mysql connector jar to the server with the name mysql.jar.

       

       

       

                          <execution>

                              <id>deploy-mysql-driver</id>

                              <phase>install</phase>

                              <goals>

                                  <goal>deploy-artifact</goal>

                              </goals>

                              <configuration>

                                  <groupId>mysql</groupId>

                                  <artifactId>mysql-connector-java</artifactId>

                                  <name>mysql.jar</name>

                              </configuration>

                          </execution>