Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn2015-03-09 22:57:48 +0000
committerChristian Halstrick2015-03-23 13:52:22 +0000
commitdd453f4185c8e7e9608605a35abd4ac4eaadba76 (patch)
tree3e6932d2a9f246891094a5b8457f8c9218fdbcd0 /pom.xml
parent197e3393a51424fae45e51dce4a649ba26e5a368 (diff)
downloadjgit-dd453f4185c8e7e9608605a35abd4ac4eaadba76.tar.gz
jgit-dd453f4185c8e7e9608605a35abd4ac4eaadba76.tar.xz
jgit-dd453f4185c8e7e9608605a35abd4ac4eaadba76.zip
Include slf4j and log4j in jgit command line
This enables the command line to log. Include log4j configuration to log warnings and errors to stderr. Exclude the dependencies which log4j 1.2.15 should have marked optional. See http://unitstep.net/blog/2009/05/18/resolving-log4j-1215-dependency-problems-in-maven-using-exclusions/ for details Change-Id: Ie730db4007fb7614fd7d130cd0858b1ac550066a Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml18
1 files changed, 18 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index 78af6fe441..4b8ac43eb0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -561,6 +561,24 @@
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4j-version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>javax.mail</groupId>
+ <artifactId>mail</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>javax.jms</groupId>
+ <artifactId>jms</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>com.sun.jdmk</groupId>
+ <artifactId>jmxtools</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>com.sun.jmx</groupId>
+ <artifactId>jmxri</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
</dependencies>
</dependencyManagement>

Back to the top