Adding m2e

This commit is contained in:
Carlos Gutierrez 2020-06-19 02:37:58 +02:00
parent d367e2b4b4
commit bd41b73f79

324
pom.xml
View file

@ -17,7 +17,7 @@
<properties> <properties>
<!-- Generic properties --> <!-- Generic properties -->
<java.version>1.8</java.version> <java.version>11</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
@ -134,151 +134,183 @@
</dependencies> </dependencies>
<build> <build>
<plugins> <pluginManagement>
<plugin>
<groupId>io.spring.javaformat</groupId>
<artifactId>spring-javaformat-maven-plugin</artifactId> <plugins>
<version>${spring-format.version}</version> <plugin>
<!-- run ./mvnw spring-javaformat:apply to apply --> <groupId>io.spring.javaformat</groupId>
<executions> <artifactId>spring-javaformat-maven-plugin</artifactId>
<execution> <version>${spring-format.version}</version>
<phase>validate</phase> <!-- run ./mvnw spring-javaformat:apply to apply -->
<goals> <executions>
<goal>validate</goal> <execution>
</goals> <phase>validate</phase>
</execution> <goals>
</executions> <goal>validate</goal>
</plugin> </goals>
<plugin> </execution>
<groupId>org.apache.maven.plugins</groupId> </executions>
<artifactId>maven-checkstyle-plugin</artifactId> </plugin>
<version>3.1.1</version> <plugin>
<dependencies> <groupId>org.apache.maven.plugins</groupId>
<dependency> <artifactId>maven-checkstyle-plugin</artifactId>
<groupId>com.puppycrawl.tools</groupId> <version>3.1.1</version>
<artifactId>checkstyle</artifactId> <dependencies>
<version>8.29</version> <dependency>
</dependency> <groupId>com.puppycrawl.tools</groupId>
<dependency> <artifactId>checkstyle</artifactId>
<groupId>io.spring.nohttp</groupId> <version>8.29</version>
<artifactId>nohttp-checkstyle</artifactId> </dependency>
<version>${nohttp-checkstyle.version}</version> <dependency>
</dependency> <groupId>io.spring.nohttp</groupId>
</dependencies> <artifactId>nohttp-checkstyle</artifactId>
<executions> <version>${nohttp-checkstyle.version}</version>
<execution> </dependency>
<id>nohttp-checkstyle-validation</id> </dependencies>
<phase>validate</phase> <executions>
<configuration> <execution>
<configLocation>src/checkstyle/nohttp-checkstyle.xml</configLocation> <id>nohttp-checkstyle-validation</id>
<suppressionsLocation>src/checkstyle/nohttp-checkstyle-suppressions.xml</suppressionsLocation> <phase>validate</phase>
<encoding>UTF-8</encoding> <configuration>
<sourceDirectories>${basedir}</sourceDirectories> <configLocation>src/checkstyle/nohttp-checkstyle.xml</configLocation>
<includes>**/*</includes> <suppressionsLocation>src/checkstyle/nohttp-checkstyle-suppressions.xml</suppressionsLocation>
<excludes>**/.git/**/*,**/.idea/**/*,**/target/**/,**/.flattened-pom.xml,**/*.class</excludes> <encoding>UTF-8</encoding>
</configuration> <sourceDirectories>${basedir}</sourceDirectories>
<goals> <includes>**/*</includes>
<goal>check</goal> <excludes>**/.git/**/*,**/.idea/**/*,**/target/**/,**/.flattened-pom.xml,**/*.class</excludes>
</goals> </configuration>
</execution> <goals>
</executions> <goal>check</goal>
</plugin> </goals>
<plugin> </execution>
<groupId>org.springframework.boot</groupId> </executions>
<artifactId>spring-boot-maven-plugin</artifactId> </plugin>
<executions> <plugin>
<execution> <groupId>org.springframework.boot</groupId>
<!-- Spring Boot Actuator displays build-related information <artifactId>spring-boot-maven-plugin</artifactId>
if a META-INF/build-info.properties file is present --> <executions>
<goals> <execution>
<goal>build-info</goal> <!-- Spring Boot Actuator displays build-related information
</goals> if a META-INF/build-info.properties file is present -->
<configuration> <goals>
<additionalProperties> <goal>build-info</goal>
<encoding.source>${project.build.sourceEncoding}</encoding.source> </goals>
<encoding.reporting>${project.reporting.outputEncoding}</encoding.reporting> <configuration>
<java.source>${maven.compiler.source}</java.source> <additionalProperties>
<java.target>${maven.compiler.target}</java.target> <encoding.source>${project.build.sourceEncoding}</encoding.source>
</additionalProperties> <encoding.reporting>${project.reporting.outputEncoding}</encoding.reporting>
</configuration> <java.source>${maven.compiler.source}</java.source>
</execution> <java.target>${maven.compiler.target}</java.target>
</executions> </additionalProperties>
</plugin> </configuration>
<plugin> </execution>
<groupId>org.jacoco</groupId> </executions>
<artifactId>jacoco-maven-plugin</artifactId> </plugin>
<version>${jacoco.version}</version> <plugin>
<executions> <groupId>org.jacoco</groupId>
<execution> <artifactId>jacoco-maven-plugin</artifactId>
<goals> <version>${jacoco.version}</version>
<goal>prepare-agent</goal> <executions>
</goals> <execution>
</execution> <goals>
<execution> <goal>prepare-agent</goal>
<id>report</id> </goals>
<phase>prepare-package</phase> </execution>
<goals> <execution>
<goal>report</goal> <id>report</id>
</goals> <phase>prepare-package</phase>
</execution> <goals>
</executions> <goal>report</goal>
</plugin> </goals>
</execution>
<!-- Spring Boot Actuator displays build-related information if a git.properties </executions>
file is present at the classpath --> </plugin>
<plugin>
<groupId>pl.project13.maven</groupId> <!-- Spring Boot Actuator displays build-related information if a git.properties
<artifactId>git-commit-id-plugin</artifactId> file is present at the classpath -->
<executions> <plugin>
<execution> <groupId>pl.project13.maven</groupId>
<goals> <artifactId>git-commit-id-plugin</artifactId>
<goal>revision</goal> <executions>
</goals> <execution>
</execution> <goals>
</executions> <goal>revision</goal>
<configuration> </goals>
<verbose>true</verbose> </execution>
<dateFormat>yyyy-MM-dd'T'HH:mm:ssZ</dateFormat> </executions>
<generateGitPropertiesFile>true</generateGitPropertiesFile> <configuration>
<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties <verbose>true</verbose>
</generateGitPropertiesFilename> <dateFormat>yyyy-MM-dd'T'HH:mm:ssZ</dateFormat>
<failOnNoGitDirectory>false</failOnNoGitDirectory> <generateGitPropertiesFile>true</generateGitPropertiesFile>
</configuration> <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties
</plugin> </generateGitPropertiesFilename>
<failOnNoGitDirectory>false</failOnNoGitDirectory>
<plugin> </configuration>
<groupId>ro.isdc.wro4j</groupId> </plugin>
<artifactId>wro4j-maven-plugin</artifactId>
<version>${wro4j.version}</version> <plugin>
<executions> <groupId>ro.isdc.wro4j</groupId>
<execution> <artifactId>wro4j-maven-plugin</artifactId>
<phase>generate-resources</phase> <version>${wro4j.version}</version>
<goals> <executions>
<goal>run</goal> <execution>
</goals> <phase>generate-resources</phase>
</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>
</dependencies>
</plugin>
<!--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.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<versionRange>[1.0,)</versionRange>
<goals>
<goal>test-compile</goal>
<goal>compile</goal>
</goals>
</pluginExecutionFilter>
<action>
<execute />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build> </build>
<!-- Apache 2 license --> <!-- Apache 2 license -->