1f4b310ac518d3960a56abde382e88f154190c31
[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.2.7_FJVL</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     <allow_file_protocol>false</allow_file_protocol>
41   </properties>
42
43   <build>
44     <resources>
45       <resource> <!-- include the LICENSE file in the jar -->
46         <directory>..</directory>
47         <includes><include>LICENSE</include></includes>
48       </resource>
49     </resources>
50
51     <plugins>
52       <plugin>
53         <groupId>org.codehaus.mojo</groupId>
54         <artifactId>build-helper-maven-plugin</artifactId>
55         <version>1.5</version>
56         <executions>
57           <execution>
58             <id>add-test-source</id>
59             <phase>process-resources</phase>
60             <goals>
61               <goal>add-test-source</goal>
62             </goals>
63             <configuration>
64               <sources>
65                 <source>src/it/java</source>
66               </sources>
67             </configuration>
68           </execution>
69         </executions>
70       </plugin>
71
72       <plugin>
73         <artifactId>maven-antrun-plugin</artifactId>
74         <version>1.8</version>
75         <executions>
76           <execution>
77             <id>gen-build</id>
78             <phase>generate-sources</phase>
79             <configuration>
80               <target>
81                 <tstamp>
82                   <format property="getdown.build.time" pattern="yyyy-MM-dd HH:mm" />
83                 </tstamp>
84                 <copy file="${project.build.sourceDirectory}/com/threerings/getdown/data/Build.java.tmpl" tofile="${project.build.sourceDirectory}/com/threerings/getdown/data/Build.java" overwrite="true">
85                   <filterset>
86                     <filter token="build_time" value="${getdown.build.time}" />
87                     <filter token="build_version" value="${project.version}" />
88                     <filter token="host_whitelist" value="${getdown.host.whitelist}" />
89                     <filter token="connect_timeout" value="${connect_timeout}" />
90                     <filter token="read_timeout" value="${read_timeout}" />
91                     <filter token="allow_file_protocol" value="${allow_file_protocol}" />
92                   </filterset>
93                 </copy>
94               </target>
95             </configuration>
96             <goals>
97               <goal>run</goal>
98             </goals>
99           </execution>
100         </executions>
101       </plugin>
102
103       <plugin>
104         <artifactId>maven-clean-plugin</artifactId>
105         <version>3.1.0</version>
106         <configuration>
107           <filesets>
108             <fileset>
109               <directory>${project.build.sourceDirectory}/</directory>
110               <includes>
111                 <include>com/threerings/getdown/data/Build.java</include>
112               </includes>
113               <followSymlinks>false</followSymlinks>
114             </fileset>
115           </filesets>
116         </configuration>
117       </plugin>
118
119       <plugin>
120         <groupId>org.apache.maven.plugins</groupId>
121         <artifactId>maven-failsafe-plugin</artifactId>
122         <version>2.22.0</version>
123         <executions>
124           <execution>
125             <goals>
126               <goal>integration-test</goal>
127               <goal>verify</goal>
128             </goals>
129           </execution>
130         </executions>
131         <configuration>
132           <useFile>false</useFile>
133         </configuration>
134       </plugin>
135
136       <plugin>
137         <groupId>org.apache.maven.plugins</groupId>
138         <artifactId>maven-jar-plugin</artifactId>
139         <version>3.1.0</version>
140         <configuration>
141           <archive>
142             <manifest>
143               <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
144             </manifest>
145           </archive>
146         </configuration>
147       </plugin>
148
149     </plugins>
150   </build>
151
152 </project>