|
11 | 11 | <name>Test</name>
|
12 | 12 | <url>http://maven.apache.org</url>
|
13 | 13 |
|
| 14 | + <dependencyManagement> |
| 15 | + <dependencies> |
| 16 | + <dependency> |
| 17 | + <groupId>org.cdlib.mrt</groupId> |
| 18 | + <artifactId>mrt-reflectoring-bom</artifactId> |
| 19 | + <version>1.0.0</version> |
| 20 | + <type>pom</type> |
| 21 | + <scope>import</scope> |
| 22 | + </dependency> |
| 23 | + </dependencies> |
| 24 | + </dependencyManagement> |
| 25 | + |
| 26 | + <parent> |
| 27 | + <groupId>org.cdlib.mrt</groupId> |
| 28 | + <artifactId>mrt-parent-properties</artifactId> |
| 29 | + <version>1.0.0</version> |
| 30 | + </parent> |
| 31 | + |
| 32 | + <!-- force UTF-8 --> |
14 | 33 | <properties>
|
15 | 34 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
| 35 | + <docker.skip>${env.SKIP_DOCKER_TEST}</docker.skip> |
| 36 | + <skipTests>${env.SKIP_DOCKER_TEST}</skipTests> |
16 | 37 | </properties>
|
17 |
| - |
18 | 38 | <dependencies>
|
19 |
| - <dependency> |
20 |
| - <groupId>org.json</groupId> |
21 |
| - <artifactId>json</artifactId> |
22 |
| - <version>20240303</version> |
23 |
| - </dependency> |
24 |
| - <dependency> |
25 |
| - <groupId>org.yaml</groupId> |
26 |
| - <artifactId>snakeyaml</artifactId> |
27 |
| - <version>2.2</version> |
28 |
| - </dependency> |
29 |
| - <dependency> |
30 |
| - <groupId>com.google.code.gson</groupId> |
31 |
| - <artifactId>gson</artifactId> |
32 |
| - <version>2.10.1</version> |
33 |
| - </dependency> |
34 |
| - <dependency> |
35 |
| - <groupId>junit</groupId> |
36 |
| - <artifactId>junit</artifactId> |
37 |
| - <version>4.13.2</version> |
38 |
| - <scope>test</scope> |
39 |
| - </dependency> |
40 |
| - <dependency> |
41 |
| - <groupId>org.apache.zookeeper</groupId> |
42 |
| - <artifactId>zookeeper</artifactId> |
43 |
| - <version>3.8.3</version> |
44 |
| - </dependency> |
45 |
| - </dependencies> |
| 39 | + <dependency> |
| 40 | + <groupId>org.json</groupId> |
| 41 | + <artifactId>json</artifactId> |
| 42 | + <!--TODO: move this to the BOM--> |
| 43 | + <version>20240303</version> |
| 44 | + </dependency> |
| 45 | + <dependency> |
| 46 | + <groupId>org.yaml</groupId> |
| 47 | + <artifactId>snakeyaml</artifactId> |
| 48 | + </dependency> |
| 49 | + <dependency> |
| 50 | + <groupId>com.google.code.gson</groupId> |
| 51 | + <artifactId>gson</artifactId> |
| 52 | + </dependency> |
| 53 | + <dependency> |
| 54 | + <groupId>junit</groupId> |
| 55 | + <artifactId>junit</artifactId> |
| 56 | + <scope>test</scope> |
| 57 | + </dependency> |
| 58 | + <dependency> |
| 59 | + <groupId>org.apache.zookeeper</groupId> |
| 60 | + <artifactId>zookeeper</artifactId> |
| 61 | + </dependency> |
| 62 | + </dependencies> |
46 | 63 | <build>
|
47 | 64 | <plugins>
|
| 65 | + <plugin> |
| 66 | + <groupId>io.fabric8</groupId> |
| 67 | + <artifactId>docker-maven-plugin</artifactId> |
| 68 | + <version>${docker.maven.plugin.version}</version> |
| 69 | + <executions> |
| 70 | + <execution> |
| 71 | + <id>prepare-it-server</id> |
| 72 | + <phase>pre-integration-test</phase> |
| 73 | + <goals> |
| 74 | + <goal>start</goal> |
| 75 | + </goals> |
| 76 | + <configuration> |
| 77 | + <images> |
| 78 | + <image> |
| 79 | + <name>zookeeper:3.8.3</name> |
| 80 | + <alias>zoo</alias> |
| 81 | + <run> |
| 82 | + <ports> |
| 83 | + <port>zoo.port:2181</port> |
| 84 | + </ports> |
| 85 | + <wait> |
| 86 | + <time>2000</time> |
| 87 | + </wait> |
| 88 | + </run> |
| 89 | + </image> |
| 90 | + </images> |
| 91 | + </configuration> |
| 92 | + </execution> |
| 93 | + <execution> |
| 94 | + <id>remove-it-server</id> |
| 95 | + <phase>post-integration-test</phase> |
| 96 | + <goals> |
| 97 | + <goal>stop</goal> |
| 98 | + </goals> |
| 99 | + </execution> |
| 100 | + </executions> |
| 101 | + </plugin> |
48 | 102 | <plugin>
|
49 | 103 | <groupId>org.apache.maven.plugins</groupId>
|
50 |
| - <artifactId>maven-compiler-plugin</artifactId> |
51 |
| - <version>2.3.2</version> |
| 104 | + <artifactId>maven-failsafe-plugin</artifactId> |
| 105 | + <version>${maven.failsafe.plugin.version}</version> |
| 106 | + <executions> |
| 107 | + <execution> |
| 108 | + <goals> |
| 109 | + <goal>integration-test</goal> |
| 110 | + <goal>verify</goal> |
| 111 | + </goals> |
| 112 | + </execution> |
| 113 | + </executions> |
| 114 | + <configuration> |
| 115 | + <includes> |
| 116 | + <include>**/*IT</include> |
| 117 | + </includes> |
| 118 | + <environmentVariables> |
| 119 | + <zoo.port>${zoo.port}</zoo.port> |
| 120 | + </environmentVariables> |
| 121 | + </configuration> |
| 122 | + </plugin> |
| 123 | + <plugin> |
| 124 | + <groupId>org.apache.maven.plugins</groupId> |
| 125 | + <artifactId>maven-surefire-plugin</artifactId> |
| 126 | + <version>${maven.surefire.plugin.version}</version> |
52 | 127 | <configuration>
|
53 |
| - <source>1.8</source> |
54 |
| - <target>1.8</target> |
| 128 | + <!-- Includes Test* and *Test by default --> |
| 129 | + <!-- skips surefire tests without skipping failsafe tests. |
| 130 | + Property |
| 131 | + value seems to magically default to false --> |
| 132 | + <skipTests>${skip.surefire.tests}</skipTests> |
55 | 133 | </configuration>
|
56 | 134 | </plugin>
|
| 135 | + <plugin> |
| 136 | + <groupId>org.jacoco</groupId> |
| 137 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 138 | + <version>${jacoco.maven.plugin.version}</version> |
| 139 | + <executions> |
| 140 | + <execution> |
| 141 | + <id>default-prepare-agent</id> |
| 142 | + <goals> |
| 143 | + <goal>prepare-agent</goal> |
| 144 | + </goals> |
| 145 | + </execution> |
| 146 | + <execution> |
| 147 | + <id>default-report</id> |
| 148 | + <phase>verify</phase> |
| 149 | + <goals> |
| 150 | + <goal>report</goal> |
| 151 | + </goals> |
| 152 | + </execution> |
| 153 | + </executions> |
| 154 | + </plugin> |
57 | 155 | <plugin>
|
58 | 156 | <groupId>org.apache.maven.plugins</groupId>
|
59 |
| - <artifactId>maven-jar-plugin</artifactId> |
60 |
| - <version>2.4</version> |
| 157 | + <artifactId>maven-compiler-plugin</artifactId> |
| 158 | + <version>${maven.compiler.plugin.version}</version> |
61 | 159 | <configuration>
|
62 |
| - <archive> |
63 |
| - <manifest> |
64 |
| - <addClasspath>true</addClasspath> |
65 |
| - <mainClass>org.cdlib.mrt.zk.Batch</mainClass> |
66 |
| - </manifest> |
67 |
| - </archive> |
| 160 | + <compilerArgument>${compilerArgument}</compilerArgument> |
68 | 161 | </configuration>
|
69 | 162 | </plugin>
|
70 | 163 | <plugin>
|
|
81 | 174 | </execution>
|
82 | 175 | </executions>
|
83 | 176 | </plugin>
|
84 |
| - <plugin> |
85 |
| - <groupId>org.apache.maven.plugins</groupId> |
86 |
| - <artifactId>maven-surefire-plugin</artifactId> |
87 |
| - <version>2.22.2</version> |
88 |
| - <configuration> |
89 |
| - <!-- Includes Test* and *Test by default --> |
90 |
| - <!-- skips surefire tests without skipping failsafe tests. |
| 177 | + <plugin> |
| 178 | + <groupId>org.apache.maven.plugins</groupId> |
| 179 | + <artifactId>maven-surefire-plugin</artifactId> |
| 180 | + <version>${maven.surefire.plugin.version}</version> |
| 181 | + <configuration> |
| 182 | + <!-- Includes Test* and *Test by default --> |
| 183 | + <!-- skips surefire tests without skipping failsafe tests. |
91 | 184 | Property
|
92 | 185 | value seems to magically default to false -->
|
93 |
| - <skipTests>${skip.surefire.tests}</skipTests> |
94 |
| - </configuration> |
95 |
| - </plugin> |
96 |
| - <plugin> |
97 |
| - <groupId>org.apache.maven.plugins</groupId> |
98 |
| - <artifactId>maven-javadoc-plugin</artifactId> |
99 |
| - <version>3.6.3</version> |
100 |
| - <configuration> |
101 |
| - <notimestamp>true</notimestamp> |
102 |
| - </configuration> |
103 |
| - </plugin> |
104 |
| - </plugins> |
| 186 | + <skipTests>${skip.surefire.tests}</skipTests> |
| 187 | + </configuration> |
| 188 | + </plugin> |
| 189 | + <plugin> |
| 190 | + <groupId>org.apache.maven.plugins</groupId> |
| 191 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 192 | + <version>3.6.3</version> |
| 193 | + <configuration> |
| 194 | + <notimestamp>true</notimestamp> |
| 195 | + </configuration> |
| 196 | + </plugin> |
| 197 | + </plugins> |
105 | 198 | <directory>target</directory>
|
106 | 199 | <outputDirectory>target/classes</outputDirectory>
|
107 | 200 | <finalName>${project.artifactId}-${project.version}</finalName>
|
|
0 commit comments