diff --git a/.travis.yml b/.travis.yml index 87cb20673..0fb948de8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,24 +11,26 @@ matrix: fast_finish: true include: - jdk: oraclejdk8 - env: + env: - DESC="Oracle JDK8 linting" - - CMD="mvn verify -B -Dhttps.protocols=TLSv1.2 -DskipTests -Dlog4j.configuration=log4j.travis.properties" + - CMD="mvn verify -B -Dhttps.protocols=TLSv1.2 -DskipTests -Dlog4j.configuration=log4j2.travis.properties" - jdk: oraclejdk8 - env: + env: - DESC="Oracle JDK8 testing" - - CMD="mvn test -B -Dhttps.protocols=TLSv1.2 -Dcheckstyle.skip=true -Dlog4j.configuration=log4j.travis.properties" + - CMD="mvn test -B -Dhttps.protocols=TLSv1.2 -Dcheckstyle.skip=true -Dlog4j.configurationFile=log4j2.travis.properties" - jdk: oraclejdk7 - env: + env: - DESC="Oracle JDK7 testing" - - CMD="mvn test -B -Dhttps.protocols=TLSv1.2 -Dcheckstyle.skip=true -Dlog4j.configuration=log4j.travis.properties" + - CMD="mvn test -B -Dhttps.protocols=TLSv1.2 -Dcheckstyle.skip=true -Dlog4j.configurationFile=log4j2.travis.properties" - jdk: openjdk7 - env: + env: - DESC="OpenJDK7 testing" - - CMD="mvn test -B -Dhttps.protocols=TLSv1.2 -Dcheckstyle.skip=true -Dlog4j.configuration=log4j.travis.properties" + - CMD="mvn test -B -Dhttps.protocols=TLSv1.2 -Dcheckstyle.skip=true -Dlog4j.configurationFile=log4j2.travis.properties" -script: echo "Running $DESC..." && (eval $CMD) +script: echo "Running $DESC..." && (eval $CMD) +after_failure: + - for log in target/surefire-reports/*.txt; do echo "$log ========================" ; cat $log ; done diff --git a/README.md b/README.md index bec9b8aec..c2fd28cd6 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,11 @@ mvn checkstyle::check `Checkstyle` analysis is automatically executed prior to compiling the code, testing. +# Generated code + +JMXFetch uses [Lombok](https://projectlombok.org/) to modify classes and generate additional code at runtime. +You may need to [enable annotation processors](https://projectlombok.org/setup/overview) to compile in your IDE. + # Testing To run unit test, issue the following command: diff --git a/log4j.travis.properties b/log4j.travis.properties deleted file mode 100644 index 0641702ac..000000000 --- a/log4j.travis.properties +++ /dev/null @@ -1,8 +0,0 @@ -log4j.rootLogger=INFO,stdout -log4j.logger.com.endeca=INFO -# Logger for crawl metrics -log4j.logger.com.endeca.itl.web.metrics=INFO - -log4j.appender.stdout=org.apache.log4j.ConsoleAppender -log4j.appender.stdout.layout=org.apache.log4j.PatternLayout -log4j.appender.stdout.layout.ConversionPattern=%p\t%d{ISO8601}\t%r\t%c\t[%t]\t%m%n diff --git a/log4j2.travis.properties b/log4j2.travis.properties new file mode 100644 index 000000000..3c926875d --- /dev/null +++ b/log4j2.travis.properties @@ -0,0 +1,9 @@ +rootLogger.level = info +rootLogger.appenderRef.stdout.ref = CONSOLE + +appender.console.type = Console +appender.console.name = CONSOLE +appender.console.layout.type = PatternLayout +appender.console.layout.pattern = %p\t%d{ISO8601}\t%r\t%c\t[%t]\t%m%n +appender.console.filter.threshold.type = ThresholdFilter +appender.console.filter.threshold.level = info diff --git a/pom.xml b/pom.xml index b7d6823b3..ac20025de 100644 --- a/pom.xml +++ b/pom.xml @@ -41,7 +41,8 @@ 17.0 2.1.0 1.35 - 1.2.17 + 2.12.1 + 1.7.26 2.10.0 1.13