You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rg...@apache.org on 2019/06/27 03:52:50 UTC
[logging-log4j2] branch release-2.x updated: Enable rat plugin for
spring cloud config sample server
This is an automated email from the ASF dual-hosted git repository.
rgoers pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
The following commit(s) were added to refs/heads/release-2.x by this push:
new fd48fa8 Enable rat plugin for spring cloud config sample server
fd48fa8 is described below
commit fd48fa8f72c95c35068b2c30a94938978d7d8682
Author: Ralph Goers <rg...@apache.org>
AuthorDate: Wed Jun 26 20:47:41 2019 -0700
Enable rat plugin for spring cloud config sample server
---
.../pom.xml | 58 ++++++++++++++++++++--
.../src/main/config-repo/log4j2.xml | 16 ++++++
2 files changed, 71 insertions(+), 3 deletions(-)
diff --git a/log4j-spring-cloud-config/log4j-spring-cloud-config-samples/log4j-spring-cloud-config-sample-server/pom.xml b/log4j-spring-cloud-config/log4j-spring-cloud-config-samples/log4j-spring-cloud-config-sample-server/pom.xml
index aba6fde..6e75229 100644
--- a/log4j-spring-cloud-config/log4j-spring-cloud-config-samples/log4j-spring-cloud-config-sample-server/pom.xml
+++ b/log4j-spring-cloud-config/log4j-spring-cloud-config-samples/log4j-spring-cloud-config-sample-server/pom.xml
@@ -15,7 +15,8 @@
~ 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">
+<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>
@@ -30,7 +31,7 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.2.RELEASE</version>
- <relativePath /> <!-- lookup parent from repository -->
+ <relativePath/> <!-- lookup parent from repository -->
</parent>
<properties>
@@ -54,7 +55,8 @@
<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>
@@ -206,6 +208,26 @@
<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>
@@ -236,4 +258,34 @@
</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>
+
</project>
diff --git a/log4j-spring-cloud-config/log4j-spring-cloud-config-samples/log4j-spring-cloud-config-sample-server/src/main/config-repo/log4j2.xml b/log4j-spring-cloud-config/log4j-spring-cloud-config-samples/log4j-spring-cloud-config-sample-server/src/main/config-repo/log4j2.xml
index 9292a93..f11e4b1 100644
--- a/log4j-spring-cloud-config/log4j-spring-cloud-config-samples/log4j-spring-cloud-config-sample-server/src/main/config-repo/log4j2.xml
+++ b/log4j-spring-cloud-config/log4j-spring-cloud-config-samples/log4j-spring-cloud-config-sample-server/src/main/config-repo/log4j2.xml
@@ -1,5 +1,21 @@
<?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.
+
+-->
<Configuration status="ERROR" monitorInterval="0">
<Appenders>
<Console name="console" target="SYSTEM_OUT">