Update pom.xml

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

638
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> if a META-INF/build-info.properties file is present -->
<artifactId>jquery-ui</artifactId> <goals>
<version>${webjars-jquery-ui.version}</version> <goal>build-info</goal>
</dependency> </goals>
<dependency> <configuration>
<groupId>org.webjars</groupId> <additionalProperties>
<artifactId>bootstrap</artifactId> <encoding.source>${project.build.sourceEncoding}</encoding.source>
<version>${webjars-bootstrap.version}</version> <encoding.reporting>${project.reporting.outputEncoding}</encoding.reporting>
</dependency> <java.source>${maven.compiler.source}</java.source>
<!-- end of webjars --> <java.target>${maven.compiler.target}</java.target>
</additionalProperties>
<dependency> </configuration>
<groupId>org.springframework.boot</groupId> </execution>
<artifactId>spring-boot-devtools</artifactId> </executions>
<optional>true</optional> </plugin>
</dependency> <plugin>
</dependencies> <groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<build> <version>${jacoco.version}</version>
<plugins> <executions>
<plugin> <execution>
<groupId>io.spring.javaformat</groupId> <goals>
<artifactId>spring-javaformat-maven-plugin</artifactId> <goal>prepare-agent</goal>
<version>${spring-format.version}</version> </goals>
<executions> </execution>
<execution> <execution>
<phase>validate</phase> <id>report</id>
<goals> <phase>prepare-package</phase>
<goal>validate</goal> <goals>
</goals> <goal>report</goal>
</execution> </goals>
</executions> </execution>
</plugin> </executions>
<plugin> </plugin>
<groupId>org.apache.maven.plugins</groupId> <!-- Spring Boot Actuator displays build-related information if a git.properties
<artifactId>maven-checkstyle-plugin</artifactId> file is present at the classpath -->
<version>3.1.1</version> <plugin>
<dependencies> <groupId>pl.project13.maven</groupId>
<dependency> <artifactId>git-commit-id-plugin</artifactId>
<groupId>com.puppycrawl.tools</groupId> <executions>
<artifactId>checkstyle</artifactId> <execution>
<version>8.32</version> <goals>
</dependency> <goal>revision</goal>
<dependency> </goals>
<groupId>io.spring.nohttp</groupId> </execution>
<artifactId>nohttp-checkstyle</artifactId> </executions>
<version>${nohttp-checkstyle.version}</version> <configuration>
</dependency> <verbose>true</verbose>
</dependencies> <dateFormat>yyyy-MM-dd'T'HH:mm:ssZ</dateFormat>
<executions> <generateGitPropertiesFile>true</generateGitPropertiesFile>
<execution> <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties </generateGitPropertiesFilename>
<id>nohttp-checkstyle-validation</id> <failOnNoGitDirectory>false</failOnNoGitDirectory>
<phase>validate</phase> </configuration>
<configuration> </plugin>
<configLocation>src/checkstyle/nohttp-checkstyle.xml</configLocation> <plugin>
<suppressionsLocation>src/checkstyle/nohttp-checkstyle-suppressions.xml</suppressionsLocation> <groupId>ro.isdc.wro4j</groupId>
<encoding>UTF-8</encoding> <artifactId>wro4j-maven-plugin</artifactId>
<sourceDirectories>${basedir}</sourceDirectories> <version>${wro4j.version}</version>
<includes>**/*</includes> <executions>
<excludes>**/.git/**/*,**/.idea/**/*,**/target/**/,**/.flattened-pom.xml,**/*.class</excludes> <execution>
</configuration> <phase>generate-resources</phase>
<goals> <goals>
<goal>check</goal> <goal>run</goal>
</goals> </goals>
</execution> </execution>
</executions> </executions>
</plugin> <configuration>
<plugin> <wroManagerFactory>ro.isdc.wro.maven.plugin.manager.factory.ConfigurableWroManagerFactory</wroManagerFactory>
<groupId>org.springframework.boot</groupId> <cssDestinationFolder>${project.build.directory}/classes/static/resources/css</cssDestinationFolder>
<artifactId>spring-boot-maven-plugin</artifactId> <wroFile>${basedir}/src/main/wro/wro.xml</wroFile>
<executions> <extraConfigFile>${basedir}/src/main/wro/wro.properties</extraConfigFile>
<execution> <contextFolder>${basedir}/src/main/less</contextFolder>
<!-- Spring Boot Actuator displays build-related information </configuration>
if a META-INF/build-info.properties file is present --> <dependencies>
<goals> <dependency>
<goal>build-info</goal> <groupId>org.webjars</groupId>
</goals> <artifactId>bootstrap</artifactId>
<configuration> <version>${webjars-bootstrap.version}</version>
<additionalProperties> </dependency>
<encoding.source>${project.build.sourceEncoding}</encoding.source> <dependency>
<encoding.reporting>${project.reporting.outputEncoding}</encoding.reporting> <groupId>org.mockito</groupId>
<java.source>${maven.compiler.source}</java.source> <artifactId>mockito-core</artifactId>
<java.target>${maven.compiler.target}</java.target> <version>${mockito.version}</version>
</additionalProperties> </dependency>
</configuration> </dependencies>
</execution> </plugin>
</executions> </plugins>
</plugin> </build>
<plugin> <!-- Apache 2 license -->
<groupId>org.jacoco</groupId> <licenses>
<artifactId>jacoco-maven-plugin</artifactId> <license>
<version>${jacoco.version}</version> <name>Apache License, Version 2.0</name>
<executions> <url>https://www.apache.org/licenses/LICENSE-2.0</url>
<execution> </license>
<goals> </licenses>
<goal>prepare-agent</goal> <repositories>
</goals> <repository>
</execution> <id>spring-snapshots</id>
<execution> <name>Spring Snapshots</name>
<id>report</id> <url>https://repo.spring.io/snapshot</url>
<phase>prepare-package</phase> <snapshots>
<goals> <enabled>true</enabled>
<goal>report</goal> </snapshots>
</goals> </repository>
</execution> <repository>
</executions> <id>gitlab-maven</id>
</plugin> <url>https://gitlab.com/api/v4/projects/${env.CI_PROJECT_ID}/packages/maven</url>
</repository>
<!-- Spring Boot Actuator displays build-related information if a git.properties <repository>
file is present at the classpath --> <id>spring-milestones</id>
<plugin> <name>Spring Milestones</name>
<groupId>pl.project13.maven</groupId> <url>https://repo.spring.io/milestone</url>
<artifactId>git-commit-id-plugin</artifactId> <snapshots>
<executions> <enabled>false</enabled>
<execution> </snapshots>
<goals> </repository>
<goal>revision</goal> </repositories>
</goals> <distributionManagement>
</execution> <repository>
</executions> <id>gitlab-maven</id>
<configuration> <url>https://gitlab.com/api/v4/projects/${env.CI_PROJECT_ID}/packages/maven</url>
<verbose>true</verbose> </repository>
<dateFormat>yyyy-MM-dd'T'HH:mm:ssZ</dateFormat> <snapshotRepository>
<generateGitPropertiesFile>true</generateGitPropertiesFile> <id>gitlab-maven</id>
<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties <url>https://gitlab.com/api/v4/projects/${env.CI_PROJECT_ID}/packages/maven</url>
</generateGitPropertiesFilename> </snapshotRepository>
<failOnNoGitDirectory>false</failOnNoGitDirectory> </distributionManagement>
<failOnUnableToExtractRepoInfo>false</failOnUnableToExtractRepoInfo> <pluginRepositories>
</configuration> <pluginRepository>
</plugin> <id>spring-snapshots</id>
<name>Spring Snapshots</name>
<plugin> <url>https://repo.spring.io/snapshot</url>
<groupId>ro.isdc.wro4j</groupId> <snapshots>
<artifactId>wro4j-maven-plugin</artifactId> <enabled>true</enabled>
<version>${wro4j.version}</version> </snapshots>
<executions> </pluginRepository>
<execution> <pluginRepository>
<phase>generate-resources</phase> <id>spring-milestones</id>
<?m2e execute onConfiguration,onIncremental?> <name>Spring Milestones</name>
<goals> <url>https://repo.spring.io/milestone</url>
<goal>run</goal> <snapshots>
</goals> <enabled>false</enabled>
</execution> </snapshots>
</executions> </pluginRepository>
<configuration> </pluginRepositories>
<wroManagerFactory>ro.isdc.wro.maven.plugin.manager.factory.ConfigurableWroManagerFactory</wroManagerFactory> </project>
<cssDestinationFolder>${project.build.directory}/classes/static/resources/css</cssDestinationFolder>
<wroFile>${basedir}/src/main/wro/wro.xml</wroFile>
<extraConfigFile>${basedir}/src/main/wro/wro.properties</extraConfigFile>
<contextFolder>${basedir}/src/main/less</contextFolder>
</configuration>
<dependencies>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>bootstrap</artifactId>
<version>${webjars-bootstrap.version}</version>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>${mockito.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0</url>
</license>
</licenses>
<repositories>
<repository>
<id>spring-snapshots</id>
<name>Spring Snapshots</name>
<url>https://repo.spring.io/snapshot</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/milestone</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>spring-snapshots</id>
<name>Spring Snapshots</name>
<url>https://repo.spring.io/snapshot</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/milestone</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
<profiles>
<profile>
<id>m2e</id>
<activation>
<property>
<name>m2e.version</name>
</property>
</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>