JAL-3348 jvmmempc allowed in jvl file
[jalview.git] / getdown / src / getdown / core / pom.xml
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/maven-v4_0_0.xsd">
3   <modelVersion>4.0.0</modelVersion>
4   <parent>
5     <groupId>com.threerings.getdown</groupId>
6     <artifactId>getdown</artifactId>
7     <version>1.8.3_1.1.5_JVL</version>
8   </parent>
9
10   <artifactId>getdown-core</artifactId>
11   <packaging>jar</packaging>
12   <name>Getdown Core</name>
13   <description>Core Getdown functionality</description>
14
15   <dependencies>
16     <dependency>
17       <groupId>junit</groupId>
18       <artifactId>junit</artifactId>
19       <version>4.12</version>
20       <scope>test</scope>
21     </dependency>
22     <dependency>
23       <groupId>org.mockito</groupId>
24       <artifactId>mockito-core</artifactId>
25       <version>2.22.0</version>
26       <scope>test</scope>
27     </dependency>
28   </dependencies>
29
30   <!-- By default, no host whitelist is added to the binary, so it can be used
31        to download and run applications from any server. To create a custom
32        Getdown build that can only talk to whitelisted servers, set this
33        property on the command line, e.g. -Dgetdown.host.whitelist=my.server.com
34        Wildcards can be used (*.mycompany.com) and multiple values can be
35        separated by commas (app1.foo.com,app2.bar.com,app3.baz.com). -->
36   <properties>
37     <getdown.host.whitelist>jalview.org,*.jalview.org</getdown.host.whitelist>
38     <connect_timeout>8</connect_timeout>
39     <read_timeout>15</read_timeout>
40   </properties>
41
42   <build>
43     <resources>
44       <resource> <!-- include the LICENSE file in the jar -->
45         <directory>..</directory>
46         <includes><include>LICENSE</include></includes>
47       </resource>
48     </resources>
49
50     <plugins>
51       <plugin>
52         <groupId>org.codehaus.mojo</groupId>
53         <artifactId>build-helper-maven-plugin</artifactId>
54         <version>1.5</version>
55         <executions>
56           <execution>
57             <id>add-test-source</id>
58             <phase>process-resources</phase>
59             <goals>
60               <goal>add-test-source</goal>
61             </goals>
62             <configuration>
63               <sources>
64                 <source>src/it/java</source>
65               </sources>
66             </configuration>
67           </execution>
68         </executions>
69       </plugin>
70
71       <plugin>
72         <artifactId>maven-antrun-plugin</artifactId>
73         <version>1.8</version>
74         <executions>
75           <execution>
76             <id>gen-build</id>
77             <phase>generate-sources</phase>
78             <configuration>
79               <target>
80                 <tstamp>
81                   <format property="getdown.build.time" pattern="yyyy-MM-dd HH:mm" />
82                 </tstamp>
83                 <copy file="${project.build.sourceDirectory}/com/threerings/getdown/data/Build.java.tmpl" tofile="${project.build.sourceDirectory}/com/threerings/getdown/data/Build.java" overwrite="true">
84                   <filterset>
85                     <filter token="build_time" value="${getdown.build.time}" />
86                     <filter token="build_version" value="${project.version}" />
87                     <filter token="host_whitelist" value="${getdown.host.whitelist}" />
88                     <filter token="connect_timeout" value="${connect_timeout}" />
89                     <filter token="read_timeout" value="${read_timeout}" />
90                   </filterset>
91                 </copy>
92               </target>
93             </configuration>
94             <goals>
95               <goal>run</goal>
96             </goals>
97           </execution>
98         </executions>
99       </plugin>
100
101       <plugin>
102         <artifactId>maven-clean-plugin</artifactId>
103         <version>3.1.0</version>
104         <configuration>
105           <filesets>
106             <fileset>
107               <directory>${project.build.sourceDirectory}/</directory>
108               <includes>
109                 <include>com/threerings/getdown/data/Build.java</include>
110               </includes>
111               <followSymlinks>false</followSymlinks>
112             </fileset>
113           </filesets>
114         </configuration>
115       </plugin>
116
117       <plugin>
118         <groupId>org.apache.maven.plugins</groupId>
119         <artifactId>maven-failsafe-plugin</artifactId>
120         <version>2.22.0</version>
121         <executions>
122           <execution>
123             <goals>
124               <goal>integration-test</goal>
125               <goal>verify</goal>
126             </goals>
127           </execution>
128         </executions>
129         <configuration>
130           <useFile>false</useFile>
131         </configuration>
132       </plugin>
133     </plugins>
134   </build>
135
136 </project>