Update pom.xml

This commit is contained in:
GAMEDJO Jean-Eudes 2021-05-14 15:04:26 +00:00
parent c76c3cba00
commit 049536c5e7

632
pom.xml
View file

@ -1,387 +1,251 @@
<?xml version="1.0" encoding="UTF-8"?> <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <modelVersion>4.0.0</modelVersion>
xmlns="http://maven.apache.org/POM/4.0.0" <groupId>org.springframework.samples</groupId>
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <artifactId>spring-petclinic</artifactId>
<modelVersion>4.0.0</modelVersion> <version>2.1.0.BUILD-SNAPSHOT</version>
<groupId>org.springframework.samples</groupId> <parent>
<artifactId>spring-petclinic</artifactId> <groupId>org.springframework.boot</groupId>
<version>2.4.5</version> <artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.4.RELEASE</version>
<parent> </parent>
<groupId>org.springframework.boot</groupId> <name>petclinic</name>
<artifactId>spring-boot-starter-parent</artifactId> <properties>
<version>2.4.5</version> <!-- Generic properties -->
</parent> <java.version>1.8</java.version>
<name>petclinic</name> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<properties> <!-- Web dependencies -->
<webjars-bootstrap.version>3.3.6</webjars-bootstrap.version>
<!-- Generic properties --> <webjars-jquery-ui.version>1.11.4</webjars-jquery-ui.version>
<java.version>1.8</java.version> <webjars-jquery.version>2.2.4</webjars-jquery.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <wro4j.version>1.8.0</wro4j.version>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <jacoco.version>0.8.2</jacoco.version>
</properties>
<!-- Web dependencies --> <dependencies>
<webjars-bootstrap.version>3.3.6</webjars-bootstrap.version> <!-- Spring and Spring Boot dependencies -->
<webjars-jquery-ui.version>1.11.4</webjars-jquery-ui.version> <dependency>
<webjars-jquery.version>2.2.4</webjars-jquery.version> <groupId>org.springframework.boot</groupId>
<wro4j.version>1.8.0</wro4j.version> <artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<jacoco.version>0.8.5</jacoco.version> <dependency>
<nohttp-checkstyle.version>0.0.4.RELEASE</nohttp-checkstyle.version> <groupId>org.springframework.boot</groupId>
<spring-format.version>0.0.25</spring-format.version> <artifactId>spring-boot-starter-cache</artifactId>
</properties> </dependency>
<dependency>
<dependencies> <groupId>org.springframework.boot</groupId>
<!-- Spring and Spring Boot dependencies --> <artifactId>spring-boot-starter-data-jpa</artifactId>
<dependency> </dependency>
<groupId>org.springframework.boot</groupId> <dependency>
<artifactId>spring-boot-starter-actuator</artifactId> <groupId>org.springframework.boot</groupId>
</dependency> <artifactId>spring-boot-starter-web</artifactId>
<dependency> </dependency>
<groupId>org.springframework.boot</groupId> <dependency>
<artifactId>spring-boot-starter-cache</artifactId> <groupId>org.springframework.boot</groupId>
</dependency> <artifactId>spring-boot-starter-thymeleaf</artifactId>
<dependency> </dependency>
<groupId>org.springframework.boot</groupId> <dependency>
<artifactId>spring-boot-starter-data-jpa</artifactId> <groupId>org.springframework.boot</groupId>
</dependency> <artifactId>spring-boot-starter-test</artifactId>
<dependency> <scope>test</scope>
<groupId>org.springframework.boot</groupId> </dependency>
<artifactId>spring-boot-starter-web</artifactId> <!-- Databases - Uses HSQL by default -->
</dependency> <dependency>
<dependency> <groupId>org.hsqldb</groupId>
<groupId>org.springframework.boot</groupId> <artifactId>hsqldb</artifactId>
<artifactId>spring-boot-starter-validation</artifactId> <scope>runtime</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>mysql</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId> <artifactId>mysql-connector-java</artifactId>
</dependency> <scope>runtime</scope>
<dependency> </dependency>
<groupId>org.springframework.boot</groupId> <!-- caching -->
<artifactId>spring-boot-starter-test</artifactId> <dependency>
<scope>test</scope> <groupId>javax.cache</groupId>
<exclusions> <artifactId>cache-api</artifactId>
<exclusion> </dependency>
<groupId>org.junit.vintage</groupId> <dependency>
<artifactId>junit-vintage-engine</artifactId> <groupId>org.ehcache</groupId>
</exclusion> <artifactId>ehcache</artifactId>
</exclusions> </dependency>
</dependency> <!-- webjars -->
<dependency>
<!-- Databases - Uses H2 by default --> <groupId>org.webjars</groupId>
<dependency> <artifactId>webjars-locator-core</artifactId>
<groupId>com.h2database</groupId> </dependency>
<artifactId>h2</artifactId> <dependency>
<scope>runtime</scope> <groupId>org.webjars</groupId>
</dependency> <artifactId>jquery</artifactId>
<dependency> <version>${webjars-jquery.version}</version>
<groupId>mysql</groupId> </dependency>
<artifactId>mysql-connector-java</artifactId> <dependency>
<scope>runtime</scope> <groupId>org.webjars</groupId>
</dependency> <artifactId>jquery-ui</artifactId>
<version>${webjars-jquery-ui.version}</version>
<!-- caching --> </dependency>
<dependency> <dependency>
<groupId>javax.cache</groupId> <groupId>org.webjars</groupId>
<artifactId>cache-api</artifactId> <artifactId>bootstrap</artifactId>
</dependency> <version>${webjars-bootstrap.version}</version>
<dependency> </dependency>
<groupId>org.ehcache</groupId> <!-- end of webjars -->
<artifactId>ehcache</artifactId> <dependency>
</dependency> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<!-- webjars --> <optional>true</optional>
<dependency> </dependency>
<groupId>org.webjars</groupId> </dependencies>
<artifactId>webjars-locator-core</artifactId> <build>
</dependency> <plugins>
<dependency> <plugin>
<groupId>org.webjars</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>jquery</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
<version>${webjars-jquery.version}</version> <executions>
</dependency> <execution>
<dependency> <!-- Spring Boot Actuator displays build-related information
<groupId>org.webjars</groupId>
<artifactId>jquery-ui</artifactId>
<version>${webjars-jquery-ui.version}</version>
</dependency>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>bootstrap</artifactId>
<version>${webjars-bootstrap.version}</version>
</dependency>
<!-- end of webjars -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>io.spring.javaformat</groupId>
<artifactId>spring-javaformat-maven-plugin</artifactId>
<version>${spring-format.version}</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>validate</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.1.1</version>
<dependencies>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>8.32</version>
</dependency>
<dependency>
<groupId>io.spring.nohttp</groupId>
<artifactId>nohttp-checkstyle</artifactId>
<version>${nohttp-checkstyle.version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>nohttp-checkstyle-validation</id>
<phase>validate</phase>
<configuration>
<configLocation>src/checkstyle/nohttp-checkstyle.xml</configLocation>
<suppressionsLocation>src/checkstyle/nohttp-checkstyle-suppressions.xml</suppressionsLocation>
<encoding>UTF-8</encoding>
<sourceDirectories>${basedir}</sourceDirectories>
<includes>**/*</includes>
<excludes>**/.git/**/*,**/.idea/**/*,**/target/**/,**/.flattened-pom.xml,**/*.class</excludes>
</configuration>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<!-- Spring Boot Actuator displays build-related information
if a META-INF/build-info.properties file is present --> if a META-INF/build-info.properties file is present -->
<goals> <goals>
<goal>build-info</goal> <goal>build-info</goal>
</goals> </goals>
<configuration> <configuration>
<additionalProperties> <additionalProperties>
<encoding.source>${project.build.sourceEncoding}</encoding.source> <encoding.source>${project.build.sourceEncoding}</encoding.source>
<encoding.reporting>${project.reporting.outputEncoding}</encoding.reporting> <encoding.reporting>${project.reporting.outputEncoding}</encoding.reporting>
<java.source>${maven.compiler.source}</java.source> <java.source>${maven.compiler.source}</java.source>
<java.target>${maven.compiler.target}</java.target> <java.target>${maven.compiler.target}</java.target>
</additionalProperties> </additionalProperties>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.jacoco</groupId> <groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId> <artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.version}</version> <version>${jacoco.version}</version>
<executions> <executions>
<execution> <execution>
<goals> <goals>
<goal>prepare-agent</goal> <goal>prepare-agent</goal>
</goals> </goals>
</execution> </execution>
<execution> <execution>
<id>report</id> <id>report</id>
<phase>prepare-package</phase> <phase>prepare-package</phase>
<goals> <goals>
<goal>report</goal> <goal>report</goal>
</goals> </goals>
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<!-- Spring Boot Actuator displays build-related information if a git.properties
<!-- Spring Boot Actuator displays build-related information if a git.properties
file is present at the classpath --> file is present at the classpath -->
<plugin> <plugin>
<groupId>pl.project13.maven</groupId> <groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId> <artifactId>git-commit-id-plugin</artifactId>
<executions> <executions>
<execution> <execution>
<goals> <goals>
<goal>revision</goal> <goal>revision</goal>
</goals> </goals>
</execution> </execution>
</executions> </executions>
<configuration> <configuration>
<verbose>true</verbose> <verbose>true</verbose>
<dateFormat>yyyy-MM-dd'T'HH:mm:ssZ</dateFormat> <dateFormat>yyyy-MM-dd'T'HH:mm:ssZ</dateFormat>
<generateGitPropertiesFile>true</generateGitPropertiesFile> <generateGitPropertiesFile>true</generateGitPropertiesFile>
<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties </generateGitPropertiesFilename>
</generateGitPropertiesFilename> <failOnNoGitDirectory>false</failOnNoGitDirectory>
<failOnNoGitDirectory>false</failOnNoGitDirectory> </configuration>
<failOnUnableToExtractRepoInfo>false</failOnUnableToExtractRepoInfo> </plugin>
</configuration> <plugin>
</plugin> <groupId>ro.isdc.wro4j</groupId>
<artifactId>wro4j-maven-plugin</artifactId>
<plugin> <version>${wro4j.version}</version>
<groupId>ro.isdc.wro4j</groupId> <executions>
<artifactId>wro4j-maven-plugin</artifactId> <execution>
<version>${wro4j.version}</version> <phase>generate-resources</phase>
<executions> <goals>
<execution> <goal>run</goal>
<phase>generate-resources</phase> </goals>
<?m2e execute onConfiguration,onIncremental?> </execution>
<goals> </executions>
<goal>run</goal> <configuration>
</goals> <wroManagerFactory>ro.isdc.wro.maven.plugin.manager.factory.ConfigurableWroManagerFactory</wroManagerFactory>
</execution> <cssDestinationFolder>${project.build.directory}/classes/static/resources/css</cssDestinationFolder>
</executions> <wroFile>${basedir}/src/main/wro/wro.xml</wroFile>
<configuration> <extraConfigFile>${basedir}/src/main/wro/wro.properties</extraConfigFile>
<wroManagerFactory>ro.isdc.wro.maven.plugin.manager.factory.ConfigurableWroManagerFactory</wroManagerFactory> <contextFolder>${basedir}/src/main/less</contextFolder>
<cssDestinationFolder>${project.build.directory}/classes/static/resources/css</cssDestinationFolder> </configuration>
<wroFile>${basedir}/src/main/wro/wro.xml</wroFile> <dependencies>
<extraConfigFile>${basedir}/src/main/wro/wro.properties</extraConfigFile> <dependency>
<contextFolder>${basedir}/src/main/less</contextFolder> <groupId>org.webjars</groupId>
</configuration> <artifactId>bootstrap</artifactId>
<dependencies> <version>${webjars-bootstrap.version}</version>
<dependency> </dependency>
<groupId>org.webjars</groupId> <dependency>
<artifactId>bootstrap</artifactId> <groupId>org.mockito</groupId>
<version>${webjars-bootstrap.version}</version> <artifactId>mockito-core</artifactId>
</dependency> <version>${mockito.version}</version>
<dependency> </dependency>
<groupId>org.mockito</groupId> </dependencies>
<artifactId>mockito-core</artifactId> </plugin>
<version>${mockito.version}</version> </plugins>
</dependency> </build>
</dependencies> <!-- Apache 2 license -->
</plugin> <licenses>
</plugins> <license>
</build> <name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0</url>
<licenses> </license>
<license> </licenses>
<name>Apache License, Version 2.0</name> <repositories>
<url>https://www.apache.org/licenses/LICENSE-2.0</url> <repository>
</license> <id>spring-snapshots</id>
</licenses> <name>Spring Snapshots</name>
<url>https://repo.spring.io/snapshot</url>
<repositories> <snapshots>
<repository> <enabled>true</enabled>
<id>spring-snapshots</id> </snapshots>
<name>Spring Snapshots</name> </repository>
<url>https://repo.spring.io/snapshot</url> <repository>
<snapshots> <id>gitlab-maven</id>
<enabled>true</enabled> <url>https://gitlab.com/api/v4/projects/${env.CI_PROJECT_ID}/packages/maven</url>
</snapshots> </repository>
</repository> <repository>
<repository> <id>spring-milestones</id>
<id>spring-milestones</id> <name>Spring Milestones</name>
<name>Spring Milestones</name> <url>https://repo.spring.io/milestone</url>
<url>https://repo.spring.io/milestone</url> <snapshots>
<snapshots> <enabled>false</enabled>
<enabled>false</enabled> </snapshots>
</snapshots> </repository>
</repository> </repositories>
</repositories> <distributionManagement>
<repository>
<pluginRepositories> <id>gitlab-maven</id>
<pluginRepository> <url>https://gitlab.com/api/v4/projects/${env.CI_PROJECT_ID}/packages/maven</url>
<id>spring-snapshots</id> </repository>
<name>Spring Snapshots</name> <snapshotRepository>
<url>https://repo.spring.io/snapshot</url> <id>gitlab-maven</id>
<snapshots> <url>https://gitlab.com/api/v4/projects/${env.CI_PROJECT_ID}/packages/maven</url>
<enabled>true</enabled> </snapshotRepository>
</snapshots> </distributionManagement>
</pluginRepository> <pluginRepositories>
<pluginRepository> <pluginRepository>
<id>spring-milestones</id> <id>spring-snapshots</id>
<name>Spring Milestones</name> <name>Spring Snapshots</name>
<url>https://repo.spring.io/milestone</url> <url>https://repo.spring.io/snapshot</url>
<snapshots> <snapshots>
<enabled>false</enabled> <enabled>true</enabled>
</snapshots> </snapshots>
</pluginRepository> </pluginRepository>
</pluginRepositories> <pluginRepository>
<id>spring-milestones</id>
<profiles> <name>Spring Milestones</name>
<profile> <url>https://repo.spring.io/milestone</url>
<id>m2e</id> <snapshots>
<activation> <enabled>false</enabled>
<property> </snapshots>
<name>m2e.version</name> </pluginRepository>
</property> </pluginRepositories>
</activation>
<build>
<pluginManagement>
<plugins>
<!-- This plugin's configuration is used to store Eclipse m2e settings
only. It has no influence on the Maven build itself. -->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<versionRange>[1,)</versionRange>
<goals>
<goal>check</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore/>
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<versionRange>[1,)</versionRange>
<goals>
<goal>build-info</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore/>
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>io.spring.javaformat</groupId>
<artifactId>spring-javaformat-maven-plugin</artifactId>
<versionRange>[0,)</versionRange>
<goals>
<goal>validate</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore/>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
</profiles>
</project> </project>