Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.hadros.yyy-project</groupId>
- <artifactId>yyy-project</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- <packaging>pom</packaging>
- <name>yyy-project</name>
- <modules>
- <module>yyy-project-client</module>
- <module>yyy-project-example</module>
- <module>yyy-project-web</module>
- <module>yyy-project-jms</module>
- <module>yyy-project-ear</module>
- </modules>
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- </properties>
- <build>
- <finalName>yyy-project</finalName>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.1</version>
- <configuration>
- <source>1.7</source>
- <target>1.7</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.wildfly.plugins</groupId>
- <artifactId>wildfly-maven-plugin</artifactId>
- <version>1.0.1.Final</version>
- <executions>
- <execution>
- <id>deploy-postgresql</id>
- <phase>package</phase>
- <goals>
- <goal>deploy-artifact</goal>
- </goals>
- <configuration>
- <groupId>postgresql</groupId>
- <artifactId>postgresql</artifactId>
- <name>postgresql.jar</name>
- </configuration>
- </execution>
- <execution>
- <id>add-datasource</id>
- <phase>install</phase>
- <goals>
- <goal>add-resource</goal>
- </goals>
- <configuration>
- <address>subsystem=datasources</address>
- <resources>
- <resource>
- <address>xa-data-source=java:jboss/datasources/postgresDS</address>
- <properties>
- <xa-datasource-class>org.postgresql.xa.PGXADataSource</xa-datasource-class>
- <jndi-name>java:jboss/datasources/postgresDS</jndi-name>
- <enabled>true</enabled>
- <driver-name>postgresql.jar</driver-name>
- </properties>
- </resource>
- <resource>
- <address>xa-data-source=java:jboss/datasources/postgresDS,xa-datasource-properties=DatabaseName</address>
- <properties>
- <value>yyy-projectdb</value>
- </properties>
- </resource>
- <resource>
- <address>xa-data-source=java:jboss/datasources/postgresDS,xa-datasource-properties=ServerName</address>
- <properties>
- <value>localhost</value>
- </properties>
- </resource>
- <resource>
- <address>xa-data-source=java:jboss/datasources/postgresDS,xa-datasource-properties=User</address>
- <properties>
- <value>yyy-project</value>
- </properties>
- </resource>
- <resource>
- <address>xa-data-source=java:jboss/datasources/postgresDS,xa-datasource-properties=Password</address>
- <properties>
- <value>yyy-project</value>
- </properties>
- </resource>
- </resources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- <dependencies>
- <dependency>
- <groupId>postgresql</groupId>
- <artifactId>postgresql</artifactId>
- <version>9.1-901.jdbc4</version>
- <scope>provided</scope>
- </dependency>
- </dependencies>
- </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement