mirror of
https://github.com/Febbweiss/log-generator.git
synced 2026-03-04 14:15:42 +00:00
Fix pom.xml formatting
This commit is contained in:
419
pom.xml
419
pom.xml
@@ -1,241 +1,244 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
|
||||
http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<!-- Maven Metadatas -->
|
||||
<groupId>com.github.vspiewak</groupId>
|
||||
<artifactId>log-generator</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
<!-- Maven Metadatas -->
|
||||
<groupId>com.github.vspiewak</groupId>
|
||||
<artifactId>log-generator</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<!-- Project Metadatas -->
|
||||
<name>log-generator</name>
|
||||
<description>
|
||||
A simple log generator
|
||||
</description>
|
||||
<url>http://github.com/vspiewak/log-generator</url>
|
||||
<!-- Project Metadatas -->
|
||||
<name>log-generator</name>
|
||||
<description>
|
||||
A simple log generator
|
||||
</description>
|
||||
<url>http://github.com/vspiewak/log-generator</url>
|
||||
|
||||
<inceptionYear>2013</inceptionYear>
|
||||
<inceptionYear>2013</inceptionYear>
|
||||
|
||||
<organization>
|
||||
<name>Vincent Spiewak</name>
|
||||
<url>http://www.github.com/vspiewak</url>
|
||||
</organization>
|
||||
<organization>
|
||||
<name>Vincent Spiewak</name>
|
||||
<url>http://www.github.com/vspiewak</url>
|
||||
</organization>
|
||||
|
||||
<!-- Project Properties -->
|
||||
<properties>
|
||||
<!-- Project Properties -->
|
||||
<properties>
|
||||
|
||||
<java.main.class>com.github.vspiewak.loggenerator.App</java.main.class>
|
||||
<java.main.class>com.github.vspiewak.loggenerator.App</java.main.class>
|
||||
|
||||
<!-- UTF-8 Encoding for all -->
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
<!-- UTF-8 Encoding for all -->
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
|
||||
<!-- Dependencies versions -->
|
||||
<slf4j.version>1.7.5</slf4j.version>
|
||||
<logback.version>1.0.13</logback.version>
|
||||
<jcommander.version>1.30</jcommander.version>
|
||||
<!-- Dependencies versions -->
|
||||
<slf4j.version>1.7.5</slf4j.version>
|
||||
<logback.version>1.0.13</logback.version>
|
||||
<jcommander.version>1.30</jcommander.version>
|
||||
<junit.version>4.10</junit.version>
|
||||
|
||||
<maven.versions>[2.2.1, 3.1.0)</maven.versions>
|
||||
<java.version>1.6</java.version>
|
||||
<maven.shade.plugin>2.1</maven.shade.plugin>
|
||||
<maven.jar.plugin>2.4</maven.jar.plugin>
|
||||
<maven.versions>[2.2.1, 3.1.0)</maven.versions>
|
||||
<java.version>1.6</java.version>
|
||||
<maven.shade.plugin>2.1</maven.shade.plugin>
|
||||
<maven.jar.plugin>2.4</maven.jar.plugin>
|
||||
|
||||
</properties>
|
||||
</properties>
|
||||
|
||||
<!-- Team Metadatas -->
|
||||
<developers>
|
||||
<!-- Team Metadatas -->
|
||||
<developers>
|
||||
|
||||
<!-- A Developer - You can skip some fields... -->
|
||||
<developer>
|
||||
<id>vspiewak</id>
|
||||
<name>Vincent Spiewak</name>
|
||||
<email>vspiewak+github@gmail.com</email>
|
||||
<roles>
|
||||
<role>Admin</role>
|
||||
<role>Developer</role>
|
||||
</roles>
|
||||
<organization>http://github.com/vspiewak</organization>
|
||||
</developer>
|
||||
<!-- A Developer - You can skip some fields... -->
|
||||
<developer>
|
||||
<id>vspiewak</id>
|
||||
<name>Vincent Spiewak</name>
|
||||
<email>vspiewak+github@gmail.com</email>
|
||||
<roles>
|
||||
<role>Admin</role>
|
||||
<role>Developer</role>
|
||||
</roles>
|
||||
<organization>http://github.com/vspiewak</organization>
|
||||
</developer>
|
||||
|
||||
</developers>
|
||||
</developers>
|
||||
|
||||
<dependencies>
|
||||
<dependencies>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
<version>${slf4j.version}</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
<version>${slf4j.version}</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>ch.qos.logback</groupId>
|
||||
<artifactId>logback-classic</artifactId>
|
||||
<version>${logback.version}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.beust</groupId>
|
||||
<artifactId>jcommander</artifactId>
|
||||
<version>${jcommander.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Junit -->
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.10</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
<dependency>
|
||||
<groupId>com.beust</groupId>
|
||||
<artifactId>jcommander</artifactId>
|
||||
<version>${jcommander.version}</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
<build>
|
||||
<dependency>
|
||||
<groupId>ch.qos.logback</groupId>
|
||||
<artifactId>logback-classic</artifactId>
|
||||
<version>${logback.version}</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- Build plugins -->
|
||||
<plugins>
|
||||
<!-- Junit -->
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>${junit.version}</version>
|
||||
<scope>test</scope>
|
||||
|
||||
<!-- Maven Compiler -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>2.3.2</version>
|
||||
<configuration>
|
||||
</dependency>
|
||||
|
||||
<!-- Ensures we are compiling at java.version level -->
|
||||
<source>${java.version}</source>
|
||||
<target>${java.version}</target>
|
||||
</dependencies>
|
||||
|
||||
<!-- Show Warnings & Deprecations -->
|
||||
<showWarnings>true</showWarnings>
|
||||
<showDeprecation>true</showDeprecation>
|
||||
|
||||
</configuration>
|
||||
</plugin>
|
||||
<build>
|
||||
|
||||
<!-- Maven Jar -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>${maven.jar.plugin}</version>
|
||||
<configuration>
|
||||
<archive>
|
||||
<!-- Add manifest Main-Class entry -->
|
||||
<manifest>
|
||||
<mainClass>${java.main.class}</mainClass>
|
||||
</manifest>
|
||||
</archive>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<!-- Build plugins -->
|
||||
<plugins>
|
||||
|
||||
<!-- Maven Shade -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-shade-plugin</artifactId>
|
||||
<version>${maven.shade.plugin}</version>
|
||||
<configuration>
|
||||
<minimizeJar>true</minimizeJar>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>shade</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<!-- Maven Enforcer -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-enforcer-plugin</artifactId>
|
||||
<version>1.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>enforce</id>
|
||||
<goals>
|
||||
<goal>enforce</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
|
||||
<!-- Fail the build if a check fail -->
|
||||
<fail>true</fail>
|
||||
|
||||
<!-- Stop on the first check fail -->
|
||||
<failFast>true</failFast>
|
||||
|
||||
<!-- Rules: -->
|
||||
<rules>
|
||||
|
||||
<!-- Check Maven version -->
|
||||
<requireMavenVersion>
|
||||
<version>${maven.versions}</version>
|
||||
</requireMavenVersion>
|
||||
|
||||
<!-- Check Java version -->
|
||||
<requireJavaVersion>
|
||||
<version>${java.version}</version>
|
||||
</requireJavaVersion>
|
||||
|
||||
<!-- No snapshots Dependencies -->
|
||||
<requireReleaseDeps>
|
||||
<message>snapshots dependency found</message>
|
||||
</requireReleaseDeps>
|
||||
|
||||
<!-- Only one version per dependency -->
|
||||
<dependencyConvergence />
|
||||
|
||||
<!-- No Repositories in pom.xml -->
|
||||
<requireNoRepositories>
|
||||
<message><![CDATA[<repositories>...</repositories> defined in pom.xml]]></message>
|
||||
</requireNoRepositories>
|
||||
|
||||
</rules>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
</plugins>
|
||||
|
||||
<!-- m2e (Maven integration for Eclipse) requires the following configuration -->
|
||||
<!-- this avoid m2e warning about enforce goal -->
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<!-- Maven Compiler -->
|
||||
<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-enforcer-plugin</artifactId>
|
||||
<versionRange>[1.0.0,)</versionRange>
|
||||
<goals>
|
||||
<goal>enforce</goal>
|
||||
</goals>
|
||||
</pluginExecutionFilter>
|
||||
<action>
|
||||
<ignore />
|
||||
</action>
|
||||
</pluginExecution>
|
||||
</pluginExecutions>
|
||||
</lifecycleMappingMetadata>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>2.3.2</version>
|
||||
<configuration>
|
||||
|
||||
</build>
|
||||
<!-- Ensures we are compiling at java.version level -->
|
||||
<source>${java.version}</source>
|
||||
<target>${java.version}</target>
|
||||
|
||||
<!-- Show Warnings & Deprecations -->
|
||||
<showWarnings>true</showWarnings>
|
||||
<showDeprecation>true</showDeprecation>
|
||||
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<!-- Maven Jar -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>${maven.jar.plugin}</version>
|
||||
<configuration>
|
||||
<archive>
|
||||
<!-- Add manifest Main-Class entry -->
|
||||
<manifest>
|
||||
<mainClass>${java.main.class}</mainClass>
|
||||
</manifest>
|
||||
</archive>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<!-- Maven Shade -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-shade-plugin</artifactId>
|
||||
<version>${maven.shade.plugin}</version>
|
||||
<configuration>
|
||||
<minimizeJar>true</minimizeJar>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>shade</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<!-- Maven Enforcer -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-enforcer-plugin</artifactId>
|
||||
<version>1.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>enforce</id>
|
||||
<goals>
|
||||
<goal>enforce</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
|
||||
<!-- Fail the build if a check fail -->
|
||||
<fail>true</fail>
|
||||
|
||||
<!-- Stop on the first check fail -->
|
||||
<failFast>true</failFast>
|
||||
|
||||
<!-- Rules: -->
|
||||
<rules>
|
||||
|
||||
<!-- Check Maven version -->
|
||||
<requireMavenVersion>
|
||||
<version>${maven.versions}</version>
|
||||
</requireMavenVersion>
|
||||
|
||||
<!-- Check Java version -->
|
||||
<requireJavaVersion>
|
||||
<version>${java.version}</version>
|
||||
</requireJavaVersion>
|
||||
|
||||
<!-- No snapshots Dependencies -->
|
||||
<requireReleaseDeps>
|
||||
<message>snapshots dependency found</message>
|
||||
</requireReleaseDeps>
|
||||
|
||||
<!-- Only one version per dependency -->
|
||||
<dependencyConvergence/>
|
||||
|
||||
<!-- No Repositories in pom.xml -->
|
||||
<requireNoRepositories>
|
||||
<message><![CDATA[<repositories>...</repositories> defined in pom.xml]]></message>
|
||||
</requireNoRepositories>
|
||||
|
||||
</rules>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
</plugins>
|
||||
|
||||
<!-- m2e (Maven integration for Eclipse) requires the following configuration -->
|
||||
<!-- this avoid m2e warning about enforce goal -->
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<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-enforcer-plugin</artifactId>
|
||||
<versionRange>[1.0.0,)</versionRange>
|
||||
<goals>
|
||||
<goal>enforce</goal>
|
||||
</goals>
|
||||
</pluginExecutionFilter>
|
||||
<action>
|
||||
<ignore/>
|
||||
</action>
|
||||
</pluginExecution>
|
||||
</pluginExecutions>
|
||||
</lifecycleMappingMetadata>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
|
||||
</build>
|
||||
|
||||
</project>
|
||||
|
||||
Reference in New Issue
Block a user