|
47 | 47 |
|
48 | 48 |
|
49 | 49 | <properties> |
50 | | - <java.version>1.8</java.version> |
| 50 | + <java.version>13</java.version> |
| 51 | + <version.maven>3.6.3</version.maven> |
51 | 52 | <spring-boot-admin.version>2.2.1</spring-boot-admin.version> |
52 | 53 | <maven.scm.version>1.11.2</maven.scm.version> |
53 | 54 | <maven-release-plugin.version>2.5.3</maven-release-plugin.version> |
|
59 | 60 | <maven-surefire-report-plugin.version>3.0.0-M4</maven-surefire-report-plugin.version> |
60 | 61 | <versions-maven-plugin.version>2.7</versions-maven-plugin.version> |
61 | 62 | <maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version> |
| 63 | + <version.docker-compose-maven-plugin>3.0.0</version.docker-compose-maven-plugin> |
62 | 64 | </properties> |
63 | 65 |
|
64 | 66 | <dependencyManagement> |
|
239 | 241 |
|
240 | 242 | <build> |
241 | 243 | <finalName>${project.artifactId}</finalName> |
| 244 | + <pluginManagement> |
| 245 | + <plugins> |
| 246 | + <plugin> |
| 247 | + <groupId>com.dkanejs.maven.plugins</groupId> |
| 248 | + <artifactId>docker-compose-maven-plugin</artifactId> |
| 249 | + <version>${version.docker-compose-maven-plugin}</version> |
| 250 | + </plugin> |
| 251 | + </plugins> |
| 252 | + </pluginManagement> |
242 | 253 | <plugins> |
243 | 254 | <plugin> |
244 | 255 | <groupId>org.apache.maven.plugins</groupId> |
|
254 | 265 | <showDeprecation>true</showDeprecation> |
255 | 266 | </configuration> |
256 | 267 | </plugin> |
| 268 | + <plugin> |
| 269 | + <groupId>org.apache.maven.plugins</groupId> |
| 270 | + <artifactId>maven-enforcer-plugin</artifactId> |
| 271 | + <executions> |
| 272 | + <execution> |
| 273 | + <id>enforce-versions</id> |
| 274 | + <goals> |
| 275 | + <goal>enforce</goal> |
| 276 | + </goals> |
| 277 | + <configuration> |
| 278 | + <rules> |
| 279 | + <bannedPlugins> |
| 280 | + <level>ERROR</level> |
| 281 | + <excludes> |
| 282 | + <exclude>org.apache.maven.plugins:maven-verifier-plugin</exclude> |
| 283 | + </excludes> |
| 284 | + <message>Please consider using the maven-invoker-plugin (http://maven.apache.org/plugins/maven-invoker-plugin/)!</message> |
| 285 | + </bannedPlugins> |
| 286 | + <requireMavenVersion> |
| 287 | + <version>${version.maven}</version> |
| 288 | + </requireMavenVersion> |
| 289 | + <requireJavaVersion> |
| 290 | + <version>${java.version}</version> |
| 291 | + </requireJavaVersion> |
| 292 | + </rules> |
| 293 | + </configuration> |
| 294 | + </execution> |
| 295 | + </executions> |
| 296 | + </plugin> |
| 297 | + <plugin> |
| 298 | + <groupId>org.apache.maven.plugins</groupId> |
| 299 | + <artifactId>maven-invoker-plugin</artifactId> |
| 300 | + <executions> |
| 301 | + <execution> |
| 302 | + <id>integration-test</id> |
| 303 | + <goals> |
| 304 | + <goal>install</goal> |
| 305 | + <goal>run</goal> |
| 306 | + </goals> |
| 307 | + <configuration> |
| 308 | + <settingsFile>src/it/settings.xml</settingsFile> |
| 309 | + <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo> |
| 310 | + <localRepositoryPath>${project.build.directory}/it-repo</localRepositoryPath> |
| 311 | + <postBuildHookScript>verify</postBuildHookScript> <!-- no extension required --> |
| 312 | + </configuration> |
| 313 | + </execution> |
| 314 | + </executions> |
| 315 | + </plugin> |
| 316 | + <plugin> |
| 317 | + <groupId>com.dkanejs.maven.plugins</groupId> |
| 318 | + <artifactId>docker-compose-maven-plugin</artifactId> |
| 319 | + <configuration> |
| 320 | + <composeFile>${project.basedir}/docker-compose.yml</composeFile> |
| 321 | + <verbose>true</verbose> |
| 322 | + <removeImages>true</removeImages> |
| 323 | + <removeVolumes>true</removeVolumes> |
| 324 | + <ignorePullFailures>true</ignorePullFailures> |
| 325 | + <detachedMode>true</detachedMode> |
| 326 | + </configuration> |
| 327 | + </plugin> |
257 | 328 | </plugins> |
258 | 329 | </build> |
259 | 330 |
|
|
0 commit comments