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