From fdf9058ba5daeeb551b19190d41cf97635c018d7 Mon Sep 17 00:00:00 2001 From: subhash kumar singh Date: Thu, 12 Oct 2017 14:47:09 +0000 Subject: [PATCH] Fix exception logs from log4j at buildtime Fix exception logs from log4j at buildtime. Fix logger filename. Issue-ID: CLI-51 Change-Id: Ia284bf2566792e1a381936382cab940c6d0182ac Signed-off-by: subhash kumar singh --- framework/src/main/resources/log4j.properties | 2 +- pom.xml | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/framework/src/main/resources/log4j.properties b/framework/src/main/resources/log4j.properties index 72c290ca..1b352b5b 100644 --- a/framework/src/main/resources/log4j.properties +++ b/framework/src/main/resources/log4j.properties @@ -2,7 +2,7 @@ log4j.rootLogger=ERROR, file # Redirect log messages to a log file, support file rolling. log4j.appender.file=org.apache.log4j.RollingFileAppender -log4j.appender.file.File=${ONAP_CLI_HOME}/logs/oclip.log +log4j.appender.file.File=${ONAP_CLI_HOME}/logs/onap-cli.log log4j.appender.file.MaxFileSize=5MB log4j.appender.file.MaxBackupIndex=10 log4j.appender.file.layout=org.apache.log4j.PatternLayout diff --git a/pom.xml b/pom.xml index e72b0580..a4fd6216 100644 --- a/pom.xml +++ b/pom.xml @@ -34,7 +34,7 @@ cli - + framework plugins main @@ -51,7 +51,16 @@ - + + + org.apache.maven.plugins + maven-surefire-plugin + + + . + + + org.apache.maven.plugins maven-jar-plugin -- 2.16.6