summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-09-09 15:38:26 +0000
committerOlivier Lamy <olamy@apache.org>2012-09-09 15:38:26 +0000
commit1377df45646f0de232d0abd52e64bd79eb364ecb (patch)
treee75eda99ebe0e372141ce9bb4fadf5262c6f0f19
parentb3f857bd37d08caf3fa2de5b26ff8d5a32401829 (diff)
downloadarchiva-1377df45646f0de232d0abd52e64bd79eb364ecb.tar.gz
archiva-1377df45646f0de232d0abd52e64bd79eb364ecb.zip
[MRM-1660] use log4j2
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1382518 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/pom.xml2
-rw-r--r--archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/pom.xml32
-rw-r--r--archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/test/resources/log4j2-test.xml (renamed from archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/test/resources/log4j.xml)26
-rw-r--r--archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/pom.xml6
-rw-r--r--archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/resources/log4j2-test.xml (renamed from archiva-modules/archiva-web/archiva-web-common/src/test/resources/log4j.xml)34
-rw-r--r--archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/resources/log4j2-test.xml (renamed from archiva-modules/plugins/stage-repository-merge/src/test/resources/log4j.xml)29
-rw-r--r--archiva-modules/archiva-web/archiva-rest/archiva-rest-services/pom.xml6
-rw-r--r--archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/resources/log4j.xml56
-rw-r--r--archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/resources/log4j2-test.xml (renamed from archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/resources/log4j.xml)35
-rw-r--r--archiva-modules/archiva-web/archiva-web-common/pom.xml5
-rw-r--r--archiva-modules/archiva-web/archiva-web-common/src/test/resources/log4j2-test.xml40
-rw-r--r--archiva-modules/archiva-web/archiva-webapp-js/pom.xml5
-rw-r--r--archiva-modules/archiva-web/archiva-webapp-js/src/main/resources/log4j.xml178
-rw-r--r--archiva-modules/archiva-web/archiva-webapp-js/src/main/resources/log4j2.xml138
-rw-r--r--archiva-modules/archiva-web/archiva-webapp-js/src/test/resources/log4j2-test.xml (renamed from archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/resources/log4j.xml)46
-rw-r--r--archiva-modules/archiva-web/archiva-webapp/pom.xml59
-rw-r--r--archiva-modules/archiva-web/archiva-webapp/src/main/resources/log4j2.xml138
-rw-r--r--archiva-modules/archiva-web/archiva-webapp/src/test/resources/log4j.xml100
-rw-r--r--archiva-modules/archiva-web/archiva-webapp/src/test/resources/log4j2-test.xml78
-rw-r--r--archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/log4j.xml85
-rw-r--r--archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/log4j2-test.xml64
-rw-r--r--archiva-modules/plugins/maven2-repository/pom.xml5
-rw-r--r--archiva-modules/plugins/metadata-store-jcr/pom.xml8
-rw-r--r--archiva-modules/plugins/stage-repository-merge/pom.xml5
-rw-r--r--archiva-modules/plugins/stage-repository-merge/src/test/resources/log4j2-test.xml41
-rw-r--r--pom.xml13
26 files changed, 697 insertions, 537 deletions
diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/pom.xml b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/pom.xml
index 935e2ef20..2662c2d54 100644
--- a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/pom.xml
+++ b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/pom.xml
@@ -92,7 +92,7 @@
<version>${archetypeVersion}</version>
<configuration>
<settingsFile>${basedir}/src/test/test-settings.xml</settingsFile>
- <localRepositoryPath>${basedir}/target/local-repo</localRepositoryPath>
+ <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
</configuration>
</plugin>
</plugins>
diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/pom.xml b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/pom.xml
index 81d1f64df..3659cb38e 100644
--- a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/pom.xml
+++ b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/pom.xml
@@ -35,6 +35,8 @@
<properties>
<archiva.version>${archivaVersion}</archiva.version>
<wagonVersion>${wagon.version}</wagonVersion>
+ <slf4jVersion>${slf4j.version}</slf4jVersion>
+ <log4jVersion>${log4j.version}</log4jVersion>
</properties>
<dependencies>
<dependency>
@@ -72,15 +74,35 @@
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
- <version>1.6.4</version>
+ <version>${slf4jVersion}</version>
</dependency>
+
<dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-log4j12</artifactId>
- <version>1.6.4</version>
- <scope>provided</scope>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>log4j-core</artifactId>
+ <version>${log4jVersion}</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>log4j12-api</artifactId>
+ <version>${log4jVersion}</version>
+ <scope>runtime</scope>
</dependency>
<dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>slf4j-impl</artifactId>
+ <version>${log4jVersion}</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>log4j-jcl</artifactId>
+ <version>${log4jVersion}</version>
+ <scope>runtime</scope>
+ </dependency>
+
+ <dependency>
<groupId>org.apache.archiva</groupId>
<artifactId>archiva-repository-admin-default</artifactId>
<version>${archiva.version}</version>
diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/test/resources/log4j.xml b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/test/resources/log4j2-test.xml
index 7780ac880..814779b2d 100644
--- a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/test/resources/log4j.xml
+++ b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/test/resources/log4j2-test.xml
@@ -18,19 +18,21 @@
~ under the License.
-->
-<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
-<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
+<configuration status="debug">
+ <appenders>
+ <Console name="console" target="SYSTEM_OUT">
+ <PatternLayout pattern="%d [%t] %-5p %c %x - %m%n"/>
+ </Console>
+ </appenders>
+ <loggers>
- <appender name="console" class="org.apache.log4j.ConsoleAppender">
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%d [%t] %-5p %c %x - %m%n"/>
- </layout>
- </appender>
+ <logger name="org.springframework" level="info"/>
+
+ <root level="info">
+ <appender-ref ref="console"/>
+ </root>
+ </loggers>
+</configuration>
- <root>
- <priority value ="info" />
- <appender-ref ref="console" />
- </root>
-</log4j:configuration>
diff --git a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/pom.xml b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/pom.xml
index dee96f39b..690cd4e0e 100644
--- a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/pom.xml
+++ b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/pom.xml
@@ -178,6 +178,12 @@
</dependency>
<dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>slf4j-impl</artifactId>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
<groupId>org.apache.archiva.redback</groupId>
<artifactId>redback-users-memory</artifactId>
<scope>test</scope>
diff --git a/archiva-modules/archiva-web/archiva-web-common/src/test/resources/log4j.xml b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/resources/log4j2-test.xml
index aecb237a7..77854adb5 100644
--- a/archiva-modules/archiva-web/archiva-web-common/src/test/resources/log4j.xml
+++ b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/resources/log4j2-test.xml
@@ -18,23 +18,27 @@
~ under the License.
-->
-<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
-<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
+<configuration status="debug">
+ <appenders>
+ <Console name="console" target="SYSTEM_OUT">
+ <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
+ </Console>
+ </appenders>
+ <loggers>
- <appender name="console" class="org.apache.log4j.ConsoleAppender">
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%d [%t] %-5p %c %x - %m%n"/>
- </layout>
- </appender>
- <logger name="org.apache.archiva.web">
- <level value="debug"/>
- </logger>
+ <logger name="org.apache.archiva.admin.repository.managed" level="debug"/>
+ <logger name="JPOX" level="error"/>
+
+
+ <logger name="org.springframework" level="error"/>
+
+
+ <root level="info">
+ <appender-ref ref="console"/>
+ </root>
+ </loggers>
+</configuration>
- <root>
- <priority value ="info" />
- <appender-ref ref="console" />
- </root>
-</log4j:configuration>
diff --git a/archiva-modules/plugins/stage-repository-merge/src/test/resources/log4j.xml b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/resources/log4j2-test.xml
index c07e3a4e7..740df697e 100644
--- a/archiva-modules/plugins/stage-repository-merge/src/test/resources/log4j.xml
+++ b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/resources/log4j2-test.xml
@@ -18,24 +18,23 @@
~ under the License.
-->
-<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
-<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
+<configuration status="debug">
+ <appenders>
+ <Console name="console" target="SYSTEM_OUT">
+ <PatternLayout pattern="%d [%t] %-5p %c %x - %m%n"/>
+ </Console>
+ </appenders>
+ <loggers>
- <appender name="console" class="org.apache.log4j.ConsoleAppender">
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%d [%t] %-5p %c %x - %m%n"/>
- </layout>
- </appender>
+ <logger name="org.springframework" level="error"/>
+ <logger name="org.apache.archiva.scheduler.indexing" level="debug"/>
- <logger name="org.apache.archiva.stagerepository.merge">
- <level value="debug"/>
- </logger>
+ <root level="info">
+ <appender-ref ref="console"/>
+ </root>
+ </loggers>
+</configuration>
- <root>
- <priority value ="info" />
- <appender-ref ref="console" />
- </root>
-</log4j:configuration>
diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/pom.xml b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/pom.xml
index 77f970c04..a1a812d39 100644
--- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/pom.xml
+++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/pom.xml
@@ -267,6 +267,12 @@
</dependency>
<dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>slf4j-impl</artifactId>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<scope>test</scope>
diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/resources/log4j.xml b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/resources/log4j.xml
deleted file mode 100644
index 8451b6263..000000000
--- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/resources/log4j.xml
+++ /dev/null
@@ -1,56 +0,0 @@
-<?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.
- -->
-
-<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
-
-<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
-
- <appender name="console" class="org.apache.log4j.ConsoleAppender">
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%d [%t] %-5p %c %x - %m%n"/>
- </layout>
- </appender>
- <!--
- <logger name="org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor">
- <level value="trace"/>
- </logger>
- <logger name="org.apache.cxf.jaxrs.utils.JAXRSUtils">
- <level value="trace"/>
- </logger>
- -->
-
-
- <logger name="org.codehaus.redback.rest.services" >
- <level value="ERROR"/>
- </logger>
- <logger name="JPOX">
- <level value="ERROR"/>
- </logger>
-
- <logger name="org.springframework">
- <level value="ERROR"/>
- </logger>
-
- <root>
- <priority value ="info" />
- <appender-ref ref="console" />
- </root>
-
-</log4j:configuration>
diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/resources/log4j.xml b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/resources/log4j2-test.xml
index c9dfce930..d5ab04706 100644
--- a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/resources/log4j.xml
+++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/resources/log4j2-test.xml
@@ -18,27 +18,26 @@
~ under the License.
-->
-<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
-<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
+<configuration status="debug">
+ <appenders>
+ <Console name="console" target="SYSTEM_OUT">
+ <PatternLayout pattern="%d [%t] %-5p %c %x - %m%n"/>
+ </Console>
+ </appenders>
+ <loggers>
- <appender name="console" class="org.apache.log4j.ConsoleAppender">
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%d [%t] %-5p %c %x - %m%n"/>
- </layout>
- </appender>
+ <logger name="org.codehaus.redback.rest.services" level="error"/>
- <logger name="org.springframework">
- <level value="ERROR"/>
- </logger>
+ <logger name="JPOX" level="error"/>
- <logger name="org.apache.archiva.scheduler.indexing">
- <level value="debug"/>
- </logger>
- <root>
- <priority value ="info" />
- <appender-ref ref="console" />
- </root>
+ <logger name="org.springframework" level="error"/>
+
+ <root level="info">
+ <appender-ref ref="console"/>
+ </root>
+ </loggers>
+</configuration>
+
-</log4j:configuration>
diff --git a/archiva-modules/archiva-web/archiva-web-common/pom.xml b/archiva-modules/archiva-web/archiva-web-common/pom.xml
index 8b114b1b7..ac2288a69 100644
--- a/archiva-modules/archiva-web/archiva-web-common/pom.xml
+++ b/archiva-modules/archiva-web/archiva-web-common/pom.xml
@@ -140,6 +140,11 @@
<scope>test</scope>
</dependency>
<dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>slf4j-impl</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
<groupId>org.apache.archiva</groupId>
<artifactId>archiva-test-utils</artifactId>
<version>${project.version}</version>
diff --git a/archiva-modules/archiva-web/archiva-web-common/src/test/resources/log4j2-test.xml b/archiva-modules/archiva-web/archiva-web-common/src/test/resources/log4j2-test.xml
new file mode 100644
index 000000000..12d50dc36
--- /dev/null
+++ b/archiva-modules/archiva-web/archiva-web-common/src/test/resources/log4j2-test.xml
@@ -0,0 +1,40 @@
+<?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="debug">
+ <appenders>
+ <Console name="console" target="SYSTEM_OUT">
+ <PatternLayout pattern="%d [%t] %-5p %c %x - %m%n"/>
+ </Console>
+ </appenders>
+ <loggers>
+
+ <logger name="org.springframework" level="error"/>
+
+ <logger name="org.apache.archiva.web" level="debug"/>
+
+ <root level="info">
+ <appender-ref ref="console"/>
+ </root>
+ </loggers>
+</configuration>
+
+
diff --git a/archiva-modules/archiva-web/archiva-webapp-js/pom.xml b/archiva-modules/archiva-web/archiva-webapp-js/pom.xml
index 1e47e168f..49452e9b5 100644
--- a/archiva-modules/archiva-web/archiva-webapp-js/pom.xml
+++ b/archiva-modules/archiva-web/archiva-webapp-js/pom.xml
@@ -642,6 +642,11 @@
<artifactId>redback-integrations-security</artifactId>
</dependency>
<dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>jcl-over-slf4j</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<scope>runtime</scope>
diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/resources/log4j.xml b/archiva-modules/archiva-web/archiva-webapp-js/src/main/resources/log4j.xml
deleted file mode 100644
index 4ab8ea41e..000000000
--- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/resources/log4j.xml
+++ /dev/null
@@ -1,178 +0,0 @@
-<?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.
- -->
-<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
-
-<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
-
- <appender name="rolling" class="org.apache.log4j.DailyRollingFileAppender">
- <param name="file" value="${appserver.base}/logs/archiva.log" />
- <param name="append" value="true" />
- <param name="datePattern" value="'.'yyyy-MM-dd" />
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%d [%t] %-5p %c %x - %m%n"/>
- </layout>
- </appender>
-
- <appender name="auditlog" class="org.apache.log4j.DailyRollingFileAppender">
- <param name="file" value="${appserver.base}/logs/archiva-audit.log" />
- <param name="append" value="true" />
- <param name="datePattern" value="'.'yyyy-MM-dd" />
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} %m%n"/>
- </layout>
- </appender>
-
- <appender name="redbackAuditLog" class="org.apache.log4j.DailyRollingFileAppender">
- <param name="file" value="${appserver.base}/logs/archiva-security-audit.log" />
- <param name="append" value="true" />
- <param name="datePattern" value="'.'yyyy-MM-dd" />
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} - %X{redback.currentUser} - %m%n"/>
- </layout>
- </appender>
-
- <logger name="org.apache.archiva.redback.struts2.action.AuditEvent" additivity="false">
- <level value="info" />
- <appender-ref ref="redbackAuditLog" />
- </logger>
-
- <logger name="org.apache.archiva.AuditLog" additivity="false">
- <level value="info" />
- <appender-ref ref="auditlog" />
- </logger>
-
-<!-- INFO level loggers can use the default
- <logger name="org.apache.archiva.consumers">
- <level value="info"/>
- </logger>
-
- <logger name="org.apache.archiva">
- <level value="info"/>
- </logger>
-
- <logger name="org.codehaus.redback">
- <level value="info"/>
- </logger>
-
- <logger name="org.apache.archiva.redback">
- <level value="info"/>
- </logger>
-
- <logger name="org.codehaus.plexus.mailsender.MailSender">
- <level value="info"/>
- </logger>
-
- <logger name="org.quartz">
- <level value="info"/>
- </logger>
-
- <logger name="org.apache.jasper">
- <level value="info"/>
- </logger>
-
- <logger name="com.opensymphony.xwork2">
- <level value="info"/>
- </logger>
-
- <logger name="org.apache.struts2">
- <level value="info"/>
- </logger>
-
- <logger name="org.codehaus.plexus.PlexusContainer">
- <level value="info"/>
- </logger>
--->
-
- <!-- WebDav objects -->
- <logger name="org.apache.archiva.webdav.ArchivaDavResource">
- <level value="info"/>
- </logger>
-
- <logger name="org.apache.archiva.webdav.ArchivaDavResourceFactory">
- <level value="info"/>
- </logger>
-
- <!-- squelch noisy objects (for now) -->
- <logger name="org.apache.commons">
- <level value="warn"/>
- </logger>
-
- <logger name="net.sf.ehcache">
- <level value="warn"/>
- </logger>
-
- <logger name="org.codehaus.plexus.velocity">
- <level value="error"/>
- </logger>
-
- <!-- retained for Redback -->
- <logger name="JPOX">
- <level value="warn"/>
- </logger>
-
- <logger name="JPOX.MetaData">
- <level value="error"/>
- </logger>
-
- <logger name="JPOX.RDBMS.SQL">
- <level value="error"/>
- </logger>
-
- <logger name="SQL">
- <level value="error"/>
- </logger>
-
- <logger name="freemarker">
- <level value="warn"/>
- </logger>
-
- <logger name="org.codehaus.plexus.component.manager.ClassicSingletonComponentManager">
- <level value="error"/>
- </logger>
-
- <logger name="com.opensymphony.xwork2.ognl.OgnlValueStack">
- <level value="error"/>
- </logger>
-
- <!-- debug wagon transfer -->
- <!--
- <logger name="org.apache.archiva.proxy.common">
- <level value="debug"/>
- </logger>
- -->
- <!-- apache httpclient debug content transfer verbose -->
- <!--
- <logger name="org.apache.http.wire">
- <level value="debug"/>
- </logger>
- -->
- <!-- apache httpclient log headers -->
- <!--
- <logger name="org.apache.http.headers">
- <level value="debug"/>
- </logger>
- -->
-
- <root>
- <priority value ="info" />
- <appender-ref ref="rolling" />
- </root>
-
-</log4j:configuration>
diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/resources/log4j2.xml b/archiva-modules/archiva-web/archiva-webapp-js/src/main/resources/log4j2.xml
new file mode 100644
index 000000000..52a145d9e
--- /dev/null
+++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/resources/log4j2.xml
@@ -0,0 +1,138 @@
+<?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>
+
+ <appenders>
+
+ <RollingFile name="rolling" fileName="${appserver.base}/logs/archiva.log"
+ filePattern="${appserver.base}/logs/archiva-%d{MM-dd-yy-HH-mm}.log">
+ <PatternLayout>
+ <pattern>%d [%t] %-5p %c %x - %m%n</pattern>
+ </PatternLayout>
+ <Policies>
+ <TimeBasedTriggeringPolicy />
+ </Policies>
+ </RollingFile>
+
+ <RollingFile name="auditlog" fileName="${appserver.base}/logs/archiva-audit.log"
+ filePattern="${appserver.base}/logs/archiva-audit-%d{MM-dd-yy-HH-mm}.log">
+ <PatternLayout>
+ <pattern>%d{yyyy-MM-dd HH:mm:ss} %m%n</pattern>
+ </PatternLayout>
+ <Policies>
+ <TimeBasedTriggeringPolicy />
+ </Policies>
+ </RollingFile>
+
+ <RollingFile name="redbackAuditLog" fileName="${appserver.base}/logs/archiva-security-audit.log"
+ filePattern="${appserver.base}/logs/archiva-security-audit.log-%d{MM-dd-yy-HH-mm}.log">
+ <PatternLayout>
+ <pattern>%d{yyyy-MM-dd HH:mm:ss} - %X{redback.currentUser} - %m%n</pattern>
+ </PatternLayout>
+ <Policies>
+ <TimeBasedTriggeringPolicy />
+ </Policies>
+ </RollingFile>
+
+ </appenders>
+ <loggers>
+
+ <logger name="org.apache.archiva.redback.struts2.action.AuditEvent" additivity="false" level="info">
+ <appender-ref ref="redbackAuditLog" />
+ </logger>
+
+ <logger name="org.apache.archiva.AuditLog" additivity="false" level="info">
+ <appender-ref ref="auditlog" />
+ </logger>
+
+ <!-- INFO level loggers can use the default
+ <logger name="org.apache.archiva.consumers" level="info"/>
+
+ <logger name="org.apache.archiva" level="info"/>
+
+
+ <logger name="org.quartz" level="info"/>
+
+ <logger name="org.apache.jasper" level="info"/>
+
+ <logger name="com.opensymphony.xwork2" level="info"/>
+
+ <logger name="org.apache.struts2" level="info"/>
+
+ -->
+
+ <!-- WebDav objects -->
+ <logger name="org.apache.archiva.webdav.ArchivaDavResource" level="info"/>
+
+
+ <logger name="org.apache.archiva.webdav.ArchivaDavResourceFactory" level="info"/>
+
+
+ <!-- squelch noisy objects (for now) -->
+ <logger name="org.apache.commons" level="warn"/>
+
+ <logger name="net.sf.ehcache" level="warn"/>
+
+
+ <!-- retained for Redback -->
+ <logger name="JPOX" level="warn"/>
+
+
+ <logger name="JPOX.MetaData" level="error"/>
+
+
+ <logger name="JPOX.RDBMS.SQL" level="error"/>
+
+
+ <logger name="SQL" level="error"/>
+
+ <logger name="freemarker" level="warn"/>
+
+ <logger name="org.codehaus.plexus.component.manager.ClassicSingletonComponentManager" level="error"/>
+
+
+ <logger name="com.opensymphony.xwork2.ognl.OgnlValueStack" level="error"/>
+
+
+ <!-- debug wagon transfer -->
+ <!--
+ <logger name="org.apache.archiva.proxy.common" level="debug"/>
+
+ -->
+ <!-- apache httpclient debug content transfer verbose -->
+ <!--
+ <logger name="org.apache.http.wire" level="debug"/>
+
+ -->
+ <!-- apache httpclient log headers -->
+ <!--
+ <logger name="org.apache.http.headers" level="debug"/>
+
+ -->
+
+ <root level="info">
+ <appender-ref ref="rolling"/>
+ </root>
+ </loggers>
+</configuration>
+
+
diff --git a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/resources/log4j.xml b/archiva-modules/archiva-web/archiva-webapp-js/src/test/resources/log4j2-test.xml
index 9b1a6585b..710a8cd33 100644
--- a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/resources/log4j.xml
+++ b/archiva-modules/archiva-web/archiva-webapp-js/src/test/resources/log4j2-test.xml
@@ -18,32 +18,36 @@
~ under the License.
-->
-<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
-<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
+<configuration status="debug">
+ <appenders>
+ <Console name="console" target="SYSTEM_OUT">
+ <PatternLayout pattern="%d [%t] %-5p %c %x - %m%n"/>
+ </Console>
+ </appenders>
+ <loggers>
- <appender name="console" class="org.apache.log4j.ConsoleAppender">
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%d [%t] %-5p %c %x - %m%n"/>
- </layout>
- </appender>
+ <!--
+ <logger name="org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor">
+ <level value="trace"/>
+ </logger>
+ <logger name="org.apache.cxf.jaxrs.utils.JAXRSUtils">
+ <level value="trace"/>
+ </logger>
+ -->
+ <logger name="org.apache.archiva.redback.rest.services" level="error"/>
- <logger name="org.apache.archiva.admin.repository.managed" >
- <level value="debug"/>
- </logger>
- <logger name="JPOX">
- <level value="ERROR"/>
- </logger>
+ <logger name="JPOX" level="error"/>
- <logger name="org.springframework">
- <level value="error"/>
- </logger>
- <root>
- <priority value ="info" />
- <appender-ref ref="console" />
- </root>
+ <logger name="org.springframework" level="error"/>
+
+ <root level="info">
+ <appender-ref ref="console"/>
+ </root>
+ </loggers>
+</configuration>
+
-</log4j:configuration>
diff --git a/archiva-modules/archiva-web/archiva-webapp/pom.xml b/archiva-modules/archiva-web/archiva-webapp/pom.xml
index e255b5fcc..6b2a8b8aa 100644
--- a/archiva-modules/archiva-web/archiva-webapp/pom.xml
+++ b/archiva-modules/archiva-web/archiva-webapp/pom.xml
@@ -318,11 +318,30 @@
</exclusions>
</dependency>
<dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-ext</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>jcl-over-slf4j</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j12-api</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>log4j-core</artifactId>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>slf4j-impl</artifactId>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
<groupId>httpunit</groupId>
<artifactId>httpunit</artifactId>
<scope>test</scope>
@@ -486,6 +505,12 @@
<dependency>
<groupId>org.apache.archiva.redback</groupId>
<artifactId>redback-struts2-integration</artifactId>
+ <exclusions>
+ <exclusion>
+ <groupId>org.slf4j</groupId>
+ <artifactId>jcl-over-slf4j</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>org.apache.archiva.redback</groupId>
@@ -1312,28 +1337,6 @@
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- <executions>
- <execution>
- <id>override-log4j-with-console-output</id>
- <phase>process-resources</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <tasks>
- <copy overwrite="true" file="${basedir}/src/test/tomcat/log4j.xml"
- todir="${project.build.directory}/classes"/>
- <copy overwrite="true" file="${basedir}/src/test/tomcat/auto-admin-creation.properties"
- todir="${basedir}/target/"/>
- <delete dir="${basedir}/src/main/webapp/WEB-INF/lib"/>
- </tasks>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<!-- redefine to skip its execution in Tomcat -->
@@ -1468,10 +1471,12 @@
<appserver.base>${archivaAppServerBase}</appserver.base>
<appserver.home>${archivaAppServerBase}</appserver.home>
<derby.system.home>${archivaAppServerBase}/logs</derby.system.home>
- <redback.admin.creation.file>${basedir}/target/auto-admin-creation.properties
- </redback.admin.creation.file>
+ <redback.admin.creation.file>${basedir}/src/test/tomcat/auto-admin-creation.properties </redback.admin.creation.file>
<java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
</systemProperties>
+ <additionalClasspathDirs>
+ <additionalClasspathDir>${basedir}/src/test/tomcat</additionalClasspathDir>
+ </additionalClasspathDirs>
</configuration>
<dependencies>
<dependency>
@@ -1498,10 +1503,12 @@
<appserver.base>${archivaAppServerBase}</appserver.base>
<appserver.home>${archivaAppServerBase}</appserver.home>
<derby.system.home>${archivaAppServerBase}/logs</derby.system.home>
- <redback.admin.creation.file>${basedir}/target/auto-admin-creation.properties
- </redback.admin.creation.file>
+ <redback.admin.creation.file>${basedir}/src/test/tomcat/auto-admin-creation.properties </redback.admin.creation.file>
<java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
</systemProperties>
+ <additionalClasspathDirs>
+ <additionalClasspathDir>${basedir}/src/test/tomcat</additionalClasspathDir>
+ </additionalClasspathDirs>
</configuration>
<dependencies>
<dependency>
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/resources/log4j2.xml b/archiva-modules/archiva-web/archiva-webapp/src/main/resources/log4j2.xml
new file mode 100644
index 000000000..16e84a5a1
--- /dev/null
+++ b/archiva-modules/archiva-web/archiva-webapp/src/main/resources/log4j2.xml
@@ -0,0 +1,138 @@
+<?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="debug">
+
+ <appenders>
+
+ <RollingFile name="rolling" fileName="${appserver.base}/logs/archiva.log"
+ filePattern="${appserver.base}/logs/archiva-%d{MM-dd-yy-HH-mm}.log">
+ <PatternLayout>
+ <pattern>%d [%t] %-5p %c %x - %m%n</pattern>
+ </PatternLayout>
+ <Policies>
+ <TimeBasedTriggeringPolicy />
+ </Policies>
+ </RollingFile>
+
+ <RollingFile name="auditlog" fileName="${appserver.base}/logs/archiva-audit.log"
+ filePattern="${appserver.base}/logs/archiva-audit-%d{MM-dd-yy-HH-mm}.log">
+ <PatternLayout>
+ <pattern>%d{yyyy-MM-dd HH:mm:ss} %m%n</pattern>
+ </PatternLayout>
+ <Policies>
+ <TimeBasedTriggeringPolicy />
+ </Policies>
+ </RollingFile>
+
+ <RollingFile name="redbackAuditLog" fileName="${appserver.base}/logs/archiva-security-audit.log"
+ filePattern="${appserver.base}/logs/archiva-security-audit.log-%d{MM-dd-yy-HH-mm}.log">
+ <PatternLayout>
+ <pattern>%d{yyyy-MM-dd HH:mm:ss} - %X{redback.currentUser} - %m%n</pattern>
+ </PatternLayout>
+ <Policies>
+ <TimeBasedTriggeringPolicy />
+ </Policies>
+ </RollingFile>
+
+ </appenders>
+ <loggers>
+
+ <logger name="org.apache.archiva.redback.struts2.action.AuditEvent" additivity="false" level="info">
+ <appender-ref ref="redbackAuditLog" />
+ </logger>
+
+ <logger name="org.apache.archiva.AuditLog" additivity="false" level="info">
+ <appender-ref ref="auditlog" />
+ </logger>
+
+ <!-- INFO level loggers can use the default
+ <logger name="org.apache.archiva.consumers" level="info"/>
+
+ <logger name="org.apache.archiva" level="info"/>
+
+
+ <logger name="org.quartz" level="info"/>
+
+ <logger name="org.apache.jasper" level="info"/>
+
+ <logger name="com.opensymphony.xwork2" level="info"/>
+
+ <logger name="org.apache.struts2" level="info"/>
+
+ -->
+
+ <!-- WebDav objects -->
+ <logger name="org.apache.archiva.webdav.ArchivaDavResource" level="info"/>
+
+
+ <logger name="org.apache.archiva.webdav.ArchivaDavResourceFactory" level="info"/>
+
+
+ <!-- squelch noisy objects (for now) -->
+ <logger name="org.apache.commons" level="warn"/>
+
+ <logger name="net.sf.ehcache" level="warn"/>
+
+
+ <!-- retained for Redback -->
+ <logger name="JPOX" level="warn"/>
+
+
+ <logger name="JPOX.MetaData" level="error"/>
+
+
+ <logger name="JPOX.RDBMS.SQL" level="error"/>
+
+
+ <logger name="SQL" level="error"/>
+
+ <logger name="freemarker" level="warn"/>
+
+ <logger name="org.codehaus.plexus.component.manager.ClassicSingletonComponentManager" level="error"/>
+
+
+ <logger name="com.opensymphony.xwork2.ognl.OgnlValueStack" level="error"/>
+
+
+ <!-- debug wagon transfer -->
+ <!--
+ <logger name="org.apache.archiva.proxy.common" level="debug"/>
+
+ -->
+ <!-- apache httpclient debug content transfer verbose -->
+ <!--
+ <logger name="org.apache.http.wire" level="debug"/>
+
+ -->
+ <!-- apache httpclient log headers -->
+ <!--
+ <logger name="org.apache.http.headers" level="debug"/>
+
+ -->
+
+ <root level="info">
+ <appender-ref ref="rolling"/>
+ </root>
+ </loggers>
+</configuration>
+
+
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/test/resources/log4j.xml b/archiva-modules/archiva-web/archiva-webapp/src/test/resources/log4j.xml
deleted file mode 100644
index 8f948fbb5..000000000
--- a/archiva-modules/archiva-web/archiva-webapp/src/test/resources/log4j.xml
+++ /dev/null
@@ -1,100 +0,0 @@
-<?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.
- -->
-
-<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
-
-<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
-
- <appender name="console" class="org.apache.log4j.ConsoleAppender">
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%d [%t] %-5p %c %x - %m%n"/>
- </layout>
- </appender>
- <logger name="org.apache.archiva.web.action.SearchAction">
- <level value="debug"/>
- </logger>
- <logger name="org.apache.archiva.indexer.search.NexusRepositorySearch">
- <level value="debug"/>
- </logger>
- <logger name="org.apache.archiva.common.plexusbridge.MavenIndexerUtils">
- <level value="debug"/>
- </logger>
- <logger name="JPOX">
- <level value="error"/>
- </logger>
- <!-- debug wagon transfer -->
- <logger name="org.apache.archiva.proxy.common">
- <level value="debug"/>
- </logger>
- <!-- apache httpclient debug content transfer-->
- <!--
- <logger name="org.apache.http.wire">
- <level value="debug"/>
- </logger>
- -->
- <logger name="org.apache.http.headers">
- <level value="debug"/>
- </logger>
-
-
- <logger name="org.apache.commons.configuration.DefaultConfigurationBuilder">
- <level value="error"/>
- </logger>
-
- <logger name="org.apache.archiva.web.action.UploadAction">
- <level value="debug"/>
- </logger>
-
- <logger name="org.apache.archiva.admin.repository.managed">
- <level value="debug"/>
- </logger>
-
- <logger name="com.opensymphony.xwork2.ognl.OgnlValueStack">
- <level value="error"/>
- </logger>
-
- <!-- reduce noise for unit tests -->
-
- <logger name="org.springframework">
- <level value="error"/>
- </logger>
-
- <logger name="org.codehaus.plexus">
- <level value="error"/>
- </logger>
-
- <logger name="org.codehaus.redback">
- <level value="error"/>
- </logger>
-
- <logger name="org.apache.cxf">
- <level value="error"/>
- </logger>
-
- <logger name="org.quartz">
- <level value="error"/>
- </logger>
-
- <root>
- <priority value ="info" />
- <appender-ref ref="console" />
- </root>
-
-</log4j:configuration>
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/test/resources/log4j2-test.xml b/archiva-modules/archiva-web/archiva-webapp/src/test/resources/log4j2-test.xml
new file mode 100644
index 000000000..8d23a38d5
--- /dev/null
+++ b/archiva-modules/archiva-web/archiva-webapp/src/test/resources/log4j2-test.xml
@@ -0,0 +1,78 @@
+<?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="debug">
+ <appenders>
+ <Console name="console" target="SYSTEM_OUT">
+ <PatternLayout pattern="%d [%t] %-5p %c %x - %m%n"/>
+ </Console>
+ </appenders>
+ <loggers>
+
+ <logger name="org.apache.archiva.web.action.SearchAction" level="debug"/>
+
+ <logger name="org.apache.archiva.indexer.search.NexusRepositorySearch" level="debug"/>
+
+ <logger name="org.apache.archiva.common.plexusbridge.MavenIndexerUtils" level="debug"/>
+
+ <logger name="JPOX" level="error"/>
+
+ <!-- debug wagon transfer -->
+ <logger name="org.apache.archiva.proxy.common" level="debug"/>
+
+ <!-- apache httpclient debug content transfer-->
+ <!--
+ <logger name="org.apache.http.wire" level="debug"/>
+
+ -->
+ <logger name="org.apache.http.headers" level="debug"/>
+
+ <logger name="org.apache.commons.configuration.DefaultConfigurationBuilder" level="error"/>
+
+
+ <logger name="org.apache.archiva.web.action.UploadAction" level="debug"/>
+
+
+ <logger name="org.apache.archiva.admin.repository.managed" level="debug"/>
+
+
+ <logger name="com.opensymphony.xwork2.ognl.OgnlValueStack" level="error"/>
+
+
+ <!-- reduce noise for unit tests -->
+
+ <logger name="org.springframework" level="error"/>
+
+ <logger name="org.codehaus.plexus" level="error"/>
+
+ <logger name="org.apache.archiva.redback" level="error"/>
+
+ <logger name="org.apache.cxf" level="error"/>
+
+ <logger name="org.quartz" level="error"/>
+
+ <root level="info">
+ <appender-ref ref="console"/>
+ </root>
+ </loggers>
+</configuration>
+
+
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/log4j.xml b/archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/log4j.xml
deleted file mode 100644
index 11476e0f5..000000000
--- a/archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/log4j.xml
+++ /dev/null
@@ -1,85 +0,0 @@
-<?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.
- -->
-
-<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
-
-<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
-
- <appender name="console" class="org.apache.log4j.ConsoleAppender">
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%d [%t] %-5p %c %x - %m%n"/>
- </layout>
- </appender>
- <logger name="org.apache.archiva.web.action.SearchAction">
- <level value="debug"/>
- </logger>
- <logger name="org.apache.archiva.indexer.search.NexusRepositorySearch">
- <level value="debug"/>
- </logger>
- <logger name="org.apache.archiva.common.plexusbridge.MavenIndexerUtils">
- <level value="debug"/>
- </logger>
- <logger name="JPOX">
- <level value="error"/>
- </logger>
-
- <logger name="org.apache.commons.configuration.DefaultConfigurationBuilder">
- <level value="error"/>
- </logger>
-
- <logger name="org.apache.archiva.admin.repository.managed">
- <level value="debug"/>
- </logger>
-
- <logger name="com.opensymphony.xwork2.ognl.OgnlValueStack">
- <level value="error"/>
- </logger>
-
-
- <logger name="org.springframework">
- <level value="info"/>
- </logger>
-
- <logger name="org.codehaus.plexus">
- <level value="info"/>
- </logger>
-
- <logger name="org.codehaus.redback">
- <level value="info"/>
- </logger>
-
- <logger name="org.apache.cxf">
- <level value="info"/>
- </logger>
-
- <logger name="org.quartz">
- <level value="info"/>
- </logger>
-
- <logger name="org.apache.archiva.indexer.merger">
- <level value="debug"/>
- </logger>
-
- <root>
- <priority value ="info" />
- <appender-ref ref="console" />
- </root>
-
-</log4j:configuration>
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/log4j2-test.xml b/archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/log4j2-test.xml
new file mode 100644
index 000000000..8c01d10be
--- /dev/null
+++ b/archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/log4j2-test.xml
@@ -0,0 +1,64 @@
+<?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="debug">
+ <appenders>
+ <Console name="console" target="SYSTEM_OUT">
+ <PatternLayout pattern="%d [%t] %-5p %c %x - %m%n"/>
+ </Console>
+ </appenders>
+ <loggers>
+
+ <logger name="org.apache.archiva.web.action.SearchAction" level="debug"/>
+
+ <logger name="org.apache.archiva.indexer.search.NexusRepositorySearch" level="debug"/>
+
+ <logger name="org.apache.archiva.common.plexusbridge.MavenIndexerUtils" level="debug"/>
+
+ <logger name="JPOX" level="error"/>
+
+ <logger name="org.apache.commons.configuration.DefaultConfigurationBuilder" level="error"/>
+
+ <logger name="org.apache.archiva.admin.repository.managed" level="debug"/>
+
+ <logger name="com.opensymphony.xwork2.ognl.OgnlValueStack" level="error"/>
+
+
+ <logger name="org.springframework" level="info"/>
+
+
+ <logger name="org.codehaus.plexus" level="info"/>
+
+ <logger name="org.apache.archiva.redback" level="info"/>
+
+ <logger name="org.apache.cxf" level="info"/>
+
+ <logger name="org.quartz" level="info"/>
+
+ <logger name="org.apache.archiva.indexer.merger" level="debug"/>
+
+ <root level="info">
+ <appender-ref ref="console"/>
+ </root>
+ </loggers>
+</configuration>
+
+
diff --git a/archiva-modules/plugins/maven2-repository/pom.xml b/archiva-modules/plugins/maven2-repository/pom.xml
index 2747ef877..645e20f57 100644
--- a/archiva-modules/plugins/maven2-repository/pom.xml
+++ b/archiva-modules/plugins/maven2-repository/pom.xml
@@ -187,6 +187,11 @@
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>log4j12-api</artifactId>
+ </dependency>
+
</dependencies>
<build>
<plugins>
diff --git a/archiva-modules/plugins/metadata-store-jcr/pom.xml b/archiva-modules/plugins/metadata-store-jcr/pom.xml
index ac07043de..383dcf330 100644
--- a/archiva-modules/plugins/metadata-store-jcr/pom.xml
+++ b/archiva-modules/plugins/metadata-store-jcr/pom.xml
@@ -64,16 +64,16 @@
<!-- could trim more, but since it's just for test we don't need to worry -->
<exclusions>
<exclusion>
- <groupId>commons-logging</groupId>
- <artifactId>commons-logging</artifactId>
- </exclusion>
- <exclusion>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>log4j-jcl</artifactId>
+ </dependency>
+ <dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<scope>test</scope>
diff --git a/archiva-modules/plugins/stage-repository-merge/pom.xml b/archiva-modules/plugins/stage-repository-merge/pom.xml
index 8a8adb65f..ac0f2eb73 100644
--- a/archiva-modules/plugins/stage-repository-merge/pom.xml
+++ b/archiva-modules/plugins/stage-repository-merge/pom.xml
@@ -81,6 +81,11 @@
<scope>test</scope>
</dependency>
<dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>slf4j-impl</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-http</artifactId>
<scope>test</scope>
diff --git a/archiva-modules/plugins/stage-repository-merge/src/test/resources/log4j2-test.xml b/archiva-modules/plugins/stage-repository-merge/src/test/resources/log4j2-test.xml
new file mode 100644
index 000000000..1ce090b03
--- /dev/null
+++ b/archiva-modules/plugins/stage-repository-merge/src/test/resources/log4j2-test.xml
@@ -0,0 +1,41 @@
+<?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="debug">
+ <appenders>
+ <Console name="console" target="SYSTEM_OUT">
+ <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
+ </Console>
+ </appenders>
+ <loggers>
+
+ <logger name="org.apache.archiva.stagerepository.merge" level="debug"/>
+
+ <logger name="org.springframework" level="error"/>
+
+
+ <root level="info">
+ <appender-ref ref="console"/>
+ </root>
+ </loggers>
+</configuration>
+
+
diff --git a/pom.xml b/pom.xml
index 8db3d5986..8e4b83905 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1153,6 +1153,16 @@
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
+ <artifactId>jcl-over-slf4j</artifactId>
+ <version>${slf4j.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-ext</artifactId>
+ <version>${slf4j.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
<version>${slf4j.version}</version>
<scope>runtime</scope>
@@ -1553,9 +1563,10 @@
<exclude>commons-logging:commons-logging-api</exclude>
<exclude>log4j:log4j</exclude>
+ <!--
<exclude>org.slf4j:jcl-over-slf4j</exclude>
<exclude>org.slf4j:slf4j-log4j12</exclude>
-
+ -->
<!-- TODO org.sonatype.sisu:sisu-guava -->
</excludes>