Advertisement
Guest User

pom.xml

a guest
Mar 21st, 2014
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.44 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3.     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4.     <modelVersion>4.0.0</modelVersion>
  5.     <groupId>org.hadros.yyy-project</groupId>
  6.     <artifactId>yyy-project</artifactId>
  7.     <version>0.0.1-SNAPSHOT</version>
  8.     <packaging>pom</packaging>
  9.     <name>yyy-project</name>
  10.     <modules>
  11.         <module>yyy-project-client</module>
  12.         <module>yyy-project-example</module>
  13.         <module>yyy-project-web</module>
  14.         <module>yyy-project-jms</module>
  15.         <module>yyy-project-ear</module>
  16.     </modules>
  17.     <properties>
  18.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19.     </properties>
  20.     <build>
  21.         <finalName>yyy-project</finalName>
  22.         <plugins>
  23.             <plugin>
  24.                 <groupId>org.apache.maven.plugins</groupId>
  25.                 <artifactId>maven-compiler-plugin</artifactId>
  26.                 <version>3.1</version>
  27.                 <configuration>
  28.                     <source>1.7</source>
  29.                     <target>1.7</target>
  30.                 </configuration>
  31.             </plugin>
  32.             <plugin>
  33.                 <groupId>org.wildfly.plugins</groupId>
  34.                 <artifactId>wildfly-maven-plugin</artifactId>
  35.                 <version>1.0.1.Final</version>
  36.                 <executions>
  37.                     <execution>
  38.                         <id>deploy-postgresql</id>
  39.                         <phase>package</phase>
  40.                         <goals>
  41.                             <goal>deploy-artifact</goal>
  42.                         </goals>
  43.                         <configuration>
  44.                             <groupId>postgresql</groupId>
  45.                             <artifactId>postgresql</artifactId>
  46.                             <name>postgresql.jar</name>
  47.                         </configuration>
  48.                     </execution>
  49.                     <execution>
  50.                         <id>add-datasource</id>
  51.                         <phase>install</phase>
  52.                         <goals>
  53.                             <goal>add-resource</goal>
  54.                         </goals>
  55.                         <configuration>
  56.                             <address>subsystem=datasources</address>
  57.                             <resources>
  58.                                 <resource>
  59.                                     <address>xa-data-source=java:jboss/datasources/postgresDS</address>
  60.                                     <properties>
  61.                                         <xa-datasource-class>org.postgresql.xa.PGXADataSource</xa-datasource-class>
  62.                                         <jndi-name>java:jboss/datasources/postgresDS</jndi-name>
  63.                                         <enabled>true</enabled>
  64.                                         <driver-name>postgresql.jar</driver-name>
  65.                                     </properties>
  66.                                 </resource>
  67.                                 <resource>
  68.                                     <address>xa-data-source=java:jboss/datasources/postgresDS,xa-datasource-properties=DatabaseName</address>
  69.                                     <properties>
  70.                                         <value>yyy-projectdb</value>
  71.                                     </properties>
  72.                                 </resource>
  73.                                 <resource>
  74.                                     <address>xa-data-source=java:jboss/datasources/postgresDS,xa-datasource-properties=ServerName</address>
  75.                                     <properties>
  76.                                         <value>localhost</value>
  77.                                     </properties>
  78.                                 </resource>
  79.                                 <resource>
  80.                                     <address>xa-data-source=java:jboss/datasources/postgresDS,xa-datasource-properties=User</address>
  81.                                     <properties>
  82.                                         <value>yyy-project</value>
  83.                                     </properties>
  84.                                 </resource>
  85.                                 <resource>
  86.                                     <address>xa-data-source=java:jboss/datasources/postgresDS,xa-datasource-properties=Password</address>
  87.                                     <properties>
  88.                                         <value>yyy-project</value>
  89.                                     </properties>
  90.                                 </resource>
  91.                             </resources>
  92.                         </configuration>
  93.                     </execution>
  94.                 </executions>
  95.             </plugin>
  96.         </plugins>
  97.     </build>
  98.     <dependencies>
  99.         <dependency>
  100.             <groupId>postgresql</groupId>
  101.             <artifactId>postgresql</artifactId>
  102.             <version>9.1-901.jdbc4</version>
  103.             <scope>provided</scope>
  104.         </dependency>
  105.     </dependencies>
  106. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement