| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| ~ Licensed to the Apache Software Foundation (ASF) under one or more |
| ~ contributor license agreements. See the NOTICE file distributed with |
| ~ this work for additional information regarding copyright ownership. |
| ~ The ASF licenses this file to You under the Apache license, Version 2.0 |
| ~ (the "License"); you may not use this file except in compliance with |
| ~ the License. You may obtain a copy of the License at |
| ~ |
| ~ http://www.apache.org/licenses/LICENSE-2.0 |
| ~ |
| ~ Unless required by applicable law or agreed to in writing, software |
| ~ distributed under the License is distributed on an "AS IS" BASIS, |
| ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| ~ See the license for the specific language governing permissions and |
| ~ limitations under the license. |
| --> |
| <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> |
| |
| <groupId>org.apache.logging.log4j.samples</groupId> |
| <artifactId>log4j-spring-cloud-config-sample-server</artifactId> |
| <packaging>jar</packaging> |
| <version>2.13.1</version> |
| |
| <name>Log4j Sample Configuration Service</name> |
| <description>Sample Cloud Config Server</description> |
| |
| <parent> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-parent</artifactId> |
| <version>2.1.2.RELEASE</version> |
| <relativePath /> <!-- lookup parent from repository --> |
| </parent> |
| |
| <properties> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| <java.version>1.8</java.version> |
| <spring-cloud.version>Greenwich.SR1</spring-cloud.version> |
| <deploy.plugin.version>2.8.2</deploy.plugin.version> |
| |
| <!-- paths --> |
| <sonar.dependencyCheck.reportPath>${project.build.directory}/dependency-check-report.xml |
| </sonar.dependencyCheck.reportPath> |
| |
| <!-- maven plugin versions --> |
| <maven.checkstyle.version>3.0.0</maven.checkstyle.version> |
| <maven.findbugs.version>3.0.5</maven.findbugs.version> |
| <maven.google.code.findbugs.version>3.0.2</maven.google.code.findbugs.version> |
| <maven.google.code.findbugs.findbugs.version>3.0.1</maven.google.code.findbugs.findbugs.version> |
| <maven.jacoco.version>0.8.1</maven.jacoco.version> |
| <maven.pmd.version>3.9.0</maven.pmd.version> |
| <site.plugin.version>3.4</site.plugin.version> |
| <!-- maven plugin config --> |
| <pmd.failurePriority>2</pmd.failurePriority> |
| <deploy.plugin.version>2.8.2</deploy.plugin.version> |
| <rat.plugin.version>0.12</rat.plugin.version> |
| </properties> |
| |
| <dependencyManagement> |
| <dependencies> |
| <dependency> |
| <groupId>org.springframework.cloud</groupId> |
| <artifactId>spring-cloud-dependencies</artifactId> |
| <version>${spring-cloud.version}</version> |
| <type>pom</type> |
| <scope>import</scope> |
| </dependency> |
| </dependencies> |
| </dependencyManagement> |
| |
| <dependencies> |
| <!-- log dependencies --> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-log4j2</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.cloud</groupId> |
| <artifactId>spring-cloud-starter-config</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.cloud</groupId> |
| <artifactId>spring-cloud-config-server</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.cloud</groupId> |
| <artifactId>spring-cloud-config-monitor</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-actuator</artifactId> |
| <exclusions> |
| <exclusion> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-logging</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.cloud</groupId> |
| <artifactId>spring-cloud-starter-bus-amqp</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-web</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-security</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-api</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-core</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-slf4j-impl</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-test</artifactId> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-site-plugin</artifactId> |
| <version>${site.plugin.version}</version> |
| <configuration> |
| <skip>true</skip> |
| <skipDeploy>true</skipDeploy> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-maven-plugin</artifactId> |
| </plugin> |
| <plugin> |
| <artifactId>maven-resources-plugin</artifactId> |
| <version>3.1.0</version> |
| <executions> |
| <execution> |
| <id>copy-resources</id> |
| <!-- here the phase you need --> |
| <phase>validate</phase> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${basedir}/target/config-repo</outputDirectory> |
| <resources> |
| <resource> |
| <directory>src/main/config-repo</directory> |
| <filtering>true</filtering> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.jacoco</groupId> |
| <artifactId>jacoco-maven-plugin</artifactId> |
| <version>${maven.jacoco.version}</version> |
| <configuration> |
| <excludes> |
| <exclude>com/oracle/brm/**/*.class</exclude> |
| <exclude>org/w3/**/*.class</exclude> |
| <exclude>org/xmlsoap/**/*.class</exclude> |
| <exclude>oracle/security/pki/*.class</exclude> |
| </excludes> |
| </configuration> |
| <executions> |
| <execution> |
| <goals> |
| <goal>prepare-agent</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>report</id> |
| <phase>prepare-package</phase> |
| <goals> |
| <goal>report</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-deploy-plugin</artifactId> |
| <version>${deploy.plugin.version}</version> |
| <configuration> |
| <skip>true</skip> |
| </configuration> |
| </plugin> |
| <!-- RAT report --> |
| <plugin> |
| <groupId>org.apache.rat</groupId> |
| <artifactId>apache-rat-plugin</artifactId> |
| <version>${rat.plugin.version}</version> |
| <configuration> |
| <excludes> |
| <exclude>**/*.yaml</exclude> |
| <exclude>**/readme.txt</exclude> |
| </excludes> |
| </configuration> |
| <executions> |
| <execution> |
| <phase>verify</phase> |
| <goals> |
| <goal>check</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <distributionManagement> |
| <downloadUrl>https://logging.apache.org/log4j/2.x/download.html</downloadUrl> |
| <!-- site is only included to make maven-site-plugin stop complaining --> |
| <site> |
| <id>www.example.com</id> |
| <url>scp://www.example.com/www/docs/project/</url> |
| </site> |
| </distributionManagement> |
| |
| <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/libs-milestone</url> |
| <snapshots> |
| <enabled>false</enabled> |
| </snapshots> |
| </repository> |
| </repositories> |
| <profiles> |
| <profile> |
| <id>rat</id> |
| <build> |
| <plugins> |
| <!-- RAT report --> |
| <plugin> |
| <groupId>org.apache.rat</groupId> |
| <artifactId>apache-rat-plugin</artifactId> |
| <version>${rat.plugin.version}</version> |
| <configuration> |
| <excludes> |
| <exclude>**/*.yaml</exclude> |
| <exclude>**/readme.txt</exclude> |
| </excludes> |
| </configuration> |
| <executions> |
| <execution> |
| <phase>verify</phase> |
| <goals> |
| <goal>check</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| |
| <scm> |
| <tag>log4j-2.13.1-rc2</tag> |
| </scm> |
| </project> |