Advertisement
gerrga

Untitled

Oct 25th, 2017
419
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.76 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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4
  3. .0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <artifactId>qa-system-deployment</artifactId>
  7. <groupId>com.deltabasics</groupId>
  8. <version>2.56-SNAPSHOT</version>
  9. </parent>
  10.  
  11. <artifactId>qa-system-deployment-qa</artifactId>
  12. <packaging>pom</packaging>
  13. <name>qa-system-deployment-qa</name>
  14.  
  15. <description>
  16. This project enables deployment of the QA system and all of its
  17. components per the version ID above.
  18. </description>
  19.  
  20. <properties>
  21. <version-gb_services_api-ear>1.9-SNAPSHOT</version-gb_services_api-ear>
  22. <version-myproduct_model>1.32-SNAPSHOT</version-myproduct_model>
  23. <version-postgresql-driver>9.3-1102-jdbc41</version-postgresql-driver>
  24.  
  25. <http-listener.max-post-size>52428800</http-listener.max-post-size>
  26.  
  27. <database.qa_db-rw.min>20</database.qa_db-rw.min>
  28. <database.qa_db-rw.max>50</database.qa_db-rw.max>
  29. <database.qa_db-rw.hostname>127.0.0.1</database.qa_db-rw.hostname>
  30. <database.qa_db-rw.port>5432</database.qa_db-rw.port>
  31. <database.qa_db-rw.username>qa</database.qa_db-rw.username>
  32. <database.qa_db-rw.password>qa</database.qa_db-rw.password>
  33. <database.qa_db-rw.password_syntax>/subsystem=datasources/xa-data-source="java:jboss/datasources/qa_db-rw":read-resource</database.qa_db-rw.password_syntax>
  34. <database.qa_db.name>qa_development</database.qa_db.name>
  35.  
  36. <!-- auth db connection -->
  37. <database.qa-auth.db_name>qa_development</database.qa-auth.db_name>
  38. <database.qa-auth.hostname>127.0.0.1</database.qa-auth.hostname>
  39. <database.qa-auth.port>5432</database.qa-auth.port>
  40. <database.qa-auth.username>qa</database.qa-auth.username>
  41. <database.qa-auth.password>qa</database.qa-auth.password>
  42. <database.qa-auth.password_syntax />
  43. <database.qa-auth.min>1</database.qa-auth.min>
  44. <database.qa-auth.max>25</database.qa-auth.max>
  45.  
  46. <database.system.webservice>localhost</database.system.webservice>
  47. <database.system.port>5432</database.system.port>
  48. <database.webservice.name>qa_development</database.webservice.name>
  49. <liquibase.dbuser>postgres</liquibase.dbuser>
  50. <liquibase.dbpassword />
  51. <liquibase.emptyPassword>true</liquibase.emptyPassword>
  52. <database.webservice.targetSchema>public</database.webservice.targetSchema>
  53.  
  54.  
  55. <ssh_key_path>~/.ssh/id_rsa_sandbox</ssh_key_path>
  56. <ssh_user>jboss</ssh_user>
  57. <ssh_host>ci.webservice.varian.com</ssh_host>
  58. <jboss-home>/usr/local/wildfly-9.0.1.Final</jboss-home>
  59. <server_jboss_path>${jboss-home}</server_jboss_path>
  60.  
  61. <confversion>${project.version}</confversion>
  62. </properties>
  63.  
  64. <dependencyManagement>
  65. <dependencies>
  66. <dependency>
  67. <groupId>com.deltabasics</groupId>
  68. <artifactId>gb_services_api-ear</artifactId>
  69. <version>${version-gb_services_api-ear}</version>
  70. <type>ear</type>
  71. </dependency>
  72. <dependency>
  73. <groupId>com.deltabasics</groupId>
  74. <artifactId>login_module-ear</artifactId>
  75. <version>${version-login_module-ear}</version>
  76. <type>ear</type>
  77. </dependency>
  78. <dependency>
  79. <groupId>com.deltabasics</groupId>
  80. <artifactId>gb_services_api-web</artifactId>
  81. <version>${version-gb_services_api-ear}</version>
  82. <classifier>static-html</classifier>
  83. <type>tar.gz</type>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.postgresql</groupId>
  87. <artifactId>postgresql</artifactId>
  88. <version>${version-postgresql-driver}</version>
  89. </dependency>
  90. </dependencies>
  91. </dependencyManagement>
  92.  
  93. <build>
  94. <pluginManagement>
  95. <plugins>
  96. <plugin>
  97. <groupId>org.liquibase</groupId>
  98. <artifactId>liquibase-maven-plugin</artifactId>
  99. <configuration>
  100. <driver>org.postgresql.Driver</driver>
  101. <url>jdbc:postgresql://${database.system.webservice}:${database.system.port}/${database.webservice.name}?ApplicationName=liquibase</url>
  102. <username>${liquibase.dbuser}</username>
  103. <password>${liquibase.dbpassword}</password>
  104. <emptyPassword>${liquibase.emptyPassword}</emptyPassword>
  105. <defaultSchemaName>${database.webservice.targetSchema}</defaultSchemaName>
  106. <!-- 'targetSchema' is an expression in some of the change-logs due
  107. to a bug in the MySQL driver. When creating triggers, the driver won't default
  108. to the current schema, so objects need to be qualified. -->
  109. <expressionVars>
  110. <property>
  111. <name>targetSchema</name>
  112. <value>${database.webservice.targetSchema}</value>
  113. </property>
  114. </expressionVars>
  115. <verbose>true</verbose>
  116. <promptOnNonLocalDatabase>false</promptOnNonLocalDatabase>
  117. </configuration>
  118. <executions>
  119. <execution>
  120. <id>apply-db-changelog</id>
  121. <phase>generate-resources</phase>
  122. <goals>
  123. <goal>update</goal>
  124. </goals>
  125. </execution>
  126. </executions>
  127. <dependencies>
  128. <dependency>
  129. <groupId>com.deltabasics</groupId>
  130. <artifactId>myproduct_model</artifactId>
  131. <version>${version-myproduct_model}</version>
  132. <classifier>liquibase</classifier>
  133. </dependency>
  134. <dependency>
  135. <groupId>org.postgresql</groupId>
  136. <artifactId>postgresql</artifactId>
  137. <version>${version-postgresql-driver}</version>
  138. </dependency>
  139. </dependencies>
  140. </plugin>
  141. </plugins>
  142. </pluginManagement>
  143. </build>
  144.  
  145.  
  146. <profiles>
  147. <profile>
  148. <id>copy_login_module_dependencies</id>
  149. <dependencies>
  150. <dependency>
  151. <groupId>com.deltabasics</groupId>
  152. <artifactId>login_module-model-ejb</artifactId>
  153. <version>${version-login_module-ear}</version>
  154. <type>jar</type>
  155. </dependency>
  156. <dependency>
  157. <groupId>com.deltabasics</groupId>
  158. <artifactId>login_module-api-ejb</artifactId>
  159. <version>${version-login_module-ear}</version>
  160. <type>jar</type>
  161. </dependency>
  162. <dependency>
  163. <groupId>org.mindrot</groupId>
  164. <artifactId>jbcrypt</artifactId>
  165. <version>${version-login_module-jbcrypt}</version>
  166. <type>jar</type>
  167. </dependency>
  168. <!--<dependency>-->
  169. <!--<groupId>commons-httpclient</groupId>-->
  170. <!--<artifactId>commons-httpclient</artifactId>-->
  171. <!--<version>${version-login_module-commons-httpclient}</version>-->
  172. <!--<type>jar</type>-->
  173. <!--</dependency>-->
  174. <dependency>
  175. <groupId>org.apache.httpcomponents</groupId>
  176. <artifactId>httpclient</artifactId>
  177. <version>${version-login_module-commons-httpcomponents}</version>
  178. <type>jar</type>
  179. </dependency>
  180. <dependency>
  181. <groupId>org.apache.httpcomponents</groupId>
  182. <artifactId>httpcore</artifactId>
  183. <version>${version-login_module-commons-httpcomponents}</version>
  184. <type>jar</type>
  185. </dependency>
  186. <dependency>
  187. <groupId>com.google.code.gson</groupId>
  188. <artifactId>gson</artifactId>
  189. <version>${version-login_module-gson}</version>
  190. <type>jar</type>
  191. </dependency>
  192. <dependency>
  193. <groupId>org.glassfish</groupId>
  194. <artifactId>javax.json</artifactId>
  195. <version>${version-login_module-javax.json}</version>
  196. <type>jar</type>
  197. </dependency>
  198. <dependency>
  199. <groupId>commons-io</groupId>
  200. <artifactId>commons-io</artifactId>
  201. <version>${version-login_module-commons-ioutils}</version>
  202. <type>jar</type>
  203. </dependency>
  204. </dependencies>
  205. <build>
  206. <plugins>
  207. <plugin>
  208. <groupId>org.apache.maven.plugins</groupId>
  209. <artifactId>maven-dependency-plugin</artifactId>
  210. <version>2.8</version>
  211. <executions>
  212. <execution>
  213. <id>copy-dependencies</id>
  214. <phase>package</phase>
  215. <goals>
  216. <goal>copy-dependencies</goal>
  217. </goals>
  218. <configuration>
  219. <outputDirectory>${project.build.directory}/login_module_artifacts</outputDirectory>
  220. <stripVersion>true</stripVersion>
  221. <includeGroupIds>org.mindrot,com.deltabasics,org.glassfish,org.apache.httpcomponents,com.google.code.gson,commons-io</includeGroupIds> <!-- ,commons-httpclien
  222. t -->
  223. <includeArtifactIds>login_module-model-ejb,login_module-api-ejb,jbcrypt,javax.json,httpclient,httpcore,gson,commons-io</includeArtifactIds> <!-- commons-httpc
  224. lient, -->
  225. </configuration>
  226. </execution>
  227. </executions>
  228. </plugin>
  229. </plugins>
  230. </build>
  231. </profile>
  232. <profile>
  233. <id>copy_dependencies</id>
  234. <dependencies>
  235. <dependency>
  236. <groupId>com.deltabasics</groupId>
  237. <artifactId>gb_services_api-web</artifactId>
  238. <classifier>static-html</classifier>
  239. <type>tar.gz</type>
  240. </dependency>
  241. </dependencies>
  242. <build>
  243. <plugins>
  244. <plugin>
  245. <groupId>org.apache.maven.plugins</groupId>
  246. <artifactId>maven-dependency-plugin</artifactId>
  247. <version>2.8</version>
  248. <executions>
  249. <execution>
  250. <id>copy-dependencies</id>
  251. <phase>package</phase>
  252. <goals>
  253. <goal>copy-dependencies</goal>
  254. </goals>
  255. <configuration>
  256. <outputDirectory>${project.build.directory}/deployment_artifacts</outputDirectory>
  257. <overWriteReleases>false</overWriteReleases>
  258. <overWriteSnapshots>true</overWriteSnapshots>
  259. <excludeTransitive>true</excludeTransitive>
  260. </configuration>
  261. </execution>
  262. </executions>
  263. </plugin>
  264. </plugins>
  265. </build>
  266. </profile>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement