All of these errors seem to be against a single test class which tests the help text of the command line tool. Frankly, I don’t even know what that tool does. Second, I’ve not had any problems on MacOS nor seem complaints on Linux. Have you run a full build on Windows since JCommander replaced Piccoli? Does the command line tool still work or is this just a problem with the tests not behaving correctly on Windows (which is what I suspect)?
Ralph > On Nov 19, 2017, at 6:32 PM, Gary Gregory <garydgreg...@gmail.com> wrote: > > -1 > > From src zip: ASC OK, MD5 OK, SHA1 OK. > > Building with 'mvn clean verify' using: > > Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; > 2017-10-18T03:58:13-04:00) > Maven home: C:\Java\apache-maven-3.5.2 > Java version: *1.7.0_80*, vendor: *Oracle* Corporation > Java home: C:\Program Files\Java\jdk1.7.0_80\jre > Default locale: en_US, platform encoding: Cp1252 > OS name: "windows 8.1", version: "6.3", arch: "amd64", family: "windows" > > I get the following ERRORs: > > [ERROR] Tests run: 136, Failures: 17, Errors: 0, Skipped: 1, Time elapsed: > 0.6 s <<< FAILURE! - in > org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest > [ERROR] > testSynopsisOrderCorrectWhenParametersDeclaredOutOfOrder(org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest) > Time elapsed: 0 s <<< FAILURE! > org.junit.ComparisonFailure: > expected:<[<main class> <param0> <param1>] >> but was:<[<main class> <param0> <param1>] >> > at > org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest.testSynopsisOrderCorrectWhenParametersDeclaredOutOfOrder(CommandLineHelpTest.java:2014) > > [ERROR] > testDefaultParameterRenderer_rendersSpecifiedMarkerForParametersWithPositiveArity(org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest) > Time elapsed: 0 s <<< FAILURE! > org.junit.internal.ArrayComparisonFailure: [*, , , <required>, required]: > arrays first differed at element [0]; expected:<*> but was:<*> > at > org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest.testDefaultParameterRenderer_rendersSpecifiedMarkerForParametersWithPositiveArity(CommandLineHelpTest.java:1020) > Caused by: java.lang.AssertionError: expected:<*> but was:<*> > at > org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest.testDefaultParameterRenderer_rendersSpecifiedMarkerForParametersWithPositiveArity(CommandLineHelpTest.java:1020) > > [ERROR] > testDefaultOptionRenderer_rendersSpacePrefixByDefaultForRequiredOptionsWithDefaultValue(org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest) > Time elapsed: 0.017 s <<< FAILURE! > org.junit.internal.ArrayComparisonFailure: [ , -b, ,, -a, > --alpha=<otherField>, other]: arrays first differed at element [0]; > expected:< > but was:< > > at > org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest.testDefaultOptionRenderer_rendersSpacePrefixByDefaultForRequiredOptionsWithDefaultValue(CommandLineHelpTest.java:990) > Caused by: java.lang.AssertionError: expected:< > but was:< > > at > org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest.testDefaultOptionRenderer_rendersSpacePrefixByDefaultForRequiredOptionsWithDefaultValue(CommandLineHelpTest.java:990) > > [ERROR] > testDefaultParameterRenderer_rendersSpacePrefixForParametersWithZeroArity(org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest) > Time elapsed: 0 s <<< FAILURE! > org.junit.internal.ArrayComparisonFailure: [, , , <optional>, optional]: > arrays first differed at element [3]; expected:<<optional>> but > was:<<optional>> > at > org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest.testDefaultParameterRenderer_rendersSpacePrefixForParametersWithZeroArity(CommandLineHelpTest.java:1035) > Caused by: java.lang.AssertionError: expected:<<optional>> but > was:<<optional>> > at > org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest.testDefaultParameterRenderer_rendersSpacePrefixForParametersWithZeroArity(CommandLineHelpTest.java:1035) > > [ERROR] > testDefaultOptionRenderer_rendersSpecifiedMarkerForRequiredOptionsWithDefault(org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest) > Time elapsed: 0 s <<< FAILURE! > org.junit.internal.ArrayComparisonFailure: [*, -b, ,, -a, > --alpha=<otherField>, other]: arrays first differed at element [0]; > expected:<*> but was:<*> > at > org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest.testDefaultOptionRenderer_rendersSpecifiedMarkerForRequiredOptionsWithDefault(CommandLineHelpTest.java:944) > Caused by: java.lang.AssertionError: expected:<*> but was:<*> > at > org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest.testDefaultOptionRenderer_rendersSpecifiedMarkerForRequiredOptionsWithDefault(CommandLineHelpTest.java:944) > > [ERROR] > testSynopsisOrderCorrectWhenSubClassAddsParameters(org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest) > Time elapsed: 0 s <<< FAILURE! > org.junit.ComparisonFailure: > expected:<[<main class> <param0> <param1> <param2> <param3>] >> but was:<[<main class> <param0> <param1> <param2> <param3>] >> > at > org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest.testSynopsisOrderCorrectWhenSubClassAddsParameters(CommandLineHelpTest.java:2028) > > [ERROR] > testDefaultOptionRenderer_rendersSpecifiedMarkerForRequiredOptionsWithoutDefault(org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest) > Time elapsed: 0.004 s <<< FAILURE! > org.junit.internal.ArrayComparisonFailure: [*, -b, ,, -a, > --alpha=<otherField>, other]: arrays first differed at element [0]; > expected:<*> but was:<*> > at > org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest.testDefaultOptionRenderer_rendersSpecifiedMarkerForRequiredOptionsWithoutDefault(CommandLineHelpTest.java:960) > Caused by: java.lang.AssertionError: expected:<*> but was:<*> > at > org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest.testDefaultOptionRenderer_rendersSpecifiedMarkerForRequiredOptionsWithoutDefault(CommandLineHelpTest.java:960) > > [ERROR] > testSubclassAttributesOverrideEmptySuper(org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest) > Time elapsed: 0 s <<< FAILURE! > org.junit.ComparisonFailure: > expected:<[base] >> but was:<[base] >> > at > org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest.testSubclassAttributesOverrideEmptySuper(CommandLineHelpTest.java:1902) > > [ERROR] > testDefaultParameterRenderer_rendersSpacePrefixByDefaultForParametersWithPositiveArity(org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest) > Time elapsed: 0 s <<< FAILURE! > org.junit.internal.ArrayComparisonFailure: [ , , , <required>, required]: > arrays first differed at element [0]; expected:< > but was:< > > at > org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest.testDefaultParameterRenderer_rendersSpacePrefixByDefaultForParametersWithPositiveArity(CommandLineHelpTest.java:1005) > Caused by: java.lang.AssertionError: expected:< > but was:< > > at > org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest.testDefaultParameterRenderer_rendersSpacePrefixByDefaultForParametersWithPositiveArity(CommandLineHelpTest.java:1005) > > [ERROR] > testDefaultOptionRenderer_rendersCommaOnlyIfBothShortAndLongOptionNamesExist(org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest) > Time elapsed: 0 s <<< FAILURE! > org.junit.internal.ArrayComparisonFailure: [, -v, , , shortBool]: arrays > first differed at element [1]; expected:<-v> but was:<-v> > at > org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest.testDefaultOptionRenderer_rendersCommaOnlyIfBothShortAndLongOptionNamesExist(CommandLineHelpTest.java:1065) > Caused by: java.lang.AssertionError: expected:<-v> but was:<-v> > at > org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest.testDefaultOptionRenderer_rendersCommaOnlyIfBothShortAndLongOptionNamesExist(CommandLineHelpTest.java:1065) > > [ERROR] > testDefaultOptionRenderer_rendersShortestOptionNameThenOtherOptionNamesAndDescription(org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest) > Time elapsed: 0.016 s <<< FAILURE! > org.junit.internal.ArrayComparisonFailure: [, -L, ,, ---long=<longField>, > long description]: arrays first differed at element [1]; expected:<-L> but > was:<-L> > at > org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest.testDefaultOptionRenderer_rendersShortestOptionNameThenOtherOptionNamesAndDescription(CommandLineHelpTest.java:922) > Caused by: java.lang.AssertionError: expected:<-L> but was:<-L> > at > org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest.testDefaultOptionRenderer_rendersShortestOptionNameThenOtherOptionNamesAndDescription(CommandLineHelpTest.java:922) > > [ERROR] > testDefaultOptionRenderer_rendersSpacePrefixByDefaultForRequiredOptionsWithoutDefaultValue(org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest) > Time elapsed: 0 s <<< FAILURE! > org.junit.internal.ArrayComparisonFailure: [ , -b, ,, -a, > --alpha=<otherField>, other]: arrays first differed at element [0]; > expected:< > but was:< > > at > org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest.testDefaultOptionRenderer_rendersSpacePrefixByDefaultForRequiredOptionsWithoutDefaultValue(CommandLineHelpTest.java:974) > Caused by: java.lang.AssertionError: expected:< > but was:< > > at > org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest.testDefaultOptionRenderer_rendersSpacePrefixByDefaultForRequiredOptionsWithoutDefaultValue(CommandLineHelpTest.java:974) > > [ERROR] > testDefaultOptionRenderer_omitsDefaultValuesForBooleanFields(org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest) > Time elapsed: 0.017 s <<< FAILURE! > org.junit.internal.ArrayComparisonFailure: [, -v, , , shortBool]: arrays > first differed at element [1]; expected:<-v> but was:<-v> > at > org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest.testDefaultOptionRenderer_omitsDefaultValuesForBooleanFields(CommandLineHelpTest.java:1099) > Caused by: java.lang.AssertionError: expected:<-v> but was:<-v> > at > org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest.testDefaultOptionRenderer_omitsDefaultValuesForBooleanFields(CommandLineHelpTest.java:1099) > > [ERROR] > testAttributesInheritedWhenSubclassingForReuse(org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest) > Time elapsed: 0 s <<< FAILURE! > org.junit.ComparisonFailure: > expected:<[base] >> but was:<[base] >> > at > org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest.testAttributesInheritedWhenSubclassingForReuse(CommandLineHelpTest.java:1862) > > [ERROR] > testDefaultParameterRenderer_showsParamLabelIfPresentOrFieldNameOtherwise(org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest) > Time elapsed: 0 s <<< FAILURE! > org.junit.ComparisonFailure: <longField> expected:< <longField>[]> but > was:< <longField>[]> > at > org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest.testDefaultParameterRenderer_showsParamLabelIfPresentOrFieldNameOtherwise(CommandLineHelpTest.java:1128) > > [ERROR] > testDefaultParameterRenderer_appliesToPositionalArgumentsIgnoresSeparator(org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest) > Time elapsed: 0.004 s <<< FAILURE! > org.junit.ComparisonFailure: POSITIONAL_ARGS expected:<POSITIONAL_ARGS[]> > but was:<POSITIONAL_ARGS[]> > at > org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest.testDefaultParameterRenderer_appliesToPositionalArgumentsIgnoresSeparator(CommandLineHelpTest.java:1145) > > [ERROR] > testSubclassAttributesOverrideSuperValues(org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest) > Time elapsed: 0 s <<< FAILURE! > org.junit.ComparisonFailure: > expected:<[sub] >> but was:<[sub] >> > at > org.apache.logging.log4j.core.tools.picocli.CommandLineHelpTest.testSubclassAttributesOverrideSuperValues(CommandLineHelpTest.java:1937) > > [INFO] Running org.apache.logging.log4j.core.tools.picocli.CommandLineTest > [ERROR] Tests run: 199, Failures: 3, Errors: 0, Skipped: 4, Time elapsed: > 0.857 s <<< FAILURE! - in > org.apache.logging.log4j.core.tools.picocli.CommandLineTest > [ERROR] > testCallReturnsNullAndPrintsErrorIfParseFails(org.apache.logging.log4j.core.tools.picocli.CommandLineTest) > Time elapsed: 0.04 s <<< FAILURE! > org.junit.ComparisonFailure: > expected:<...t a number" > Usage: [<main class> [-number=<number>] > -number=<number>] >> but was:<...t a number" > Usage: [<main class> [-number=<number>] > -number=<number>] >> > at > org.apache.logging.log4j.core.tools.picocli.CommandLineTest.testCallReturnsNullAndPrintsErrorIfParseFails(CommandLineTest.java:2318) > > [ERROR] > testIssue148InfiniteLoop(org.apache.logging.log4j.core.tools.picocli.CommandLineTest) > Time elapsed: 0.02 s <<< FAILURE! > org.junit.ComparisonFailure: > expected:<Usage: [<main class> [--foo-bar-baz=<foo>] > --foo-bar-baz=<foo>] Default: > ...> but was:<Usage: [<main class> [--foo-bar-baz=<foo>] > --foo-bar-baz=<foo>] Default: > ...> > at > org.apache.logging.log4j.core.tools.picocli.CommandLineTest.testIssue148InfiniteLoop(CommandLineTest.java:2478) > > [ERROR] > testRunPrintsErrorIfParseFails(org.apache.logging.log4j.core.tools.picocli.CommandLineTest) > Time elapsed: 0 s <<< FAILURE! > org.junit.ComparisonFailure: > expected:<...t a number" > Usage: [<main class> [-number=<number>] > -number=<number>] >> but was:<...t a number" > Usage: [<main class> [-number=<number>] > -number=<number>] >> > at > org.apache.logging.log4j.core.tools.picocli.CommandLineTest.testRunPrintsErrorIfParseFails(CommandLineTest.java:2282) > > Gary > > > > On Sun, Nov 19, 2017 at 11:11 AM, Ralph Goers <ralph.go...@dslextreme.com > <mailto:ralph.go...@dslextreme.com>> > wrote: > >> This is a vote to release Log4j 2.10.0, the next version of the Log4j 2 >> project. >> >> Please download, test, and cast your votes on the log4j developers list. >> [] +1, release the artifacts >> [] -1, don't release because... >> >> The vote will remain open for 72 hours (or more if required). All votes >> are welcome and we encourage everyone to test the release, but only Logging >> PMC votes are “officially” counted. As always, at least 3 +1 votes and more >> positive than negative votes are required. >> >> Note that this release supports SLF4J 1.7.x and SLF4J 1.8.x. Because SLF4J >> 1.7.x requires implementations to include classes in the org.slf4j.impl >> package log4j-sl4j-impl cannot be used as a Java 9 module. Support for >> SLF4J 1.7.x will be removed in a future release. >> >> Changes in this version include: >> >> New Features >> >> • LOG4J2-2120: Properly escape newlines and other control >> characters in JSON. Thanks to Carter Douglas Kozak. >> • LOG4J2-2109: Add property to disable message pattern converter >> lookups. Thanks to Carter Douglas Kozak. >> • LOG4J2-2112: MapMessage should use deep toString for values. >> Thanks to Carter Douglas Kozak. >> • LOG4J2-2103: XML encoding for PatternLayout. >> • LOG4J2-2114: Provide a native Log4j 2 implementation of Eclipse >> Jetty's org.eclipse.jetty.util.log.Logger. >> • LOG4J2-1203: Allow filtering of line breaks in layout pattern. >> Thanks to Robert Turner. >> • LOG4J2-2098: Add a noop AppenderSkeleton for applications still >> using Log4j 1.x. >> • LOG4J2-2062: Add possibility of sending the key of a message to >> Kafka using KafkaAppender. Thanks to Jorge Sanchez. >> • LOG4J2-2056: Modularize Log4j-api and make most other log4j jars >> automatic modules. >> • LOG4J2-1431: Simplify log4j system property naming scheme. >> • LOG4J2-1809: Add global configuration environment SPI. >> • LOG4J2-1694: Add fields with fixed values to JSON/XML/YAML >> layouts. Thanks to Michal Dvořák. >> • LOG4J2-2054: Provide ways to configure SSL that avoid plain-text >> passwords in the log4j configuration. The configuration may now specify a >> system environment variable that holds the password, or the path to a file >> that holds the password. >> • LOG4J2-2071: Add org.apache.logging.log4j.core.config.composite. >> CompositeConfiguration#toString(). Thanks to Carter Kozak. >> Fixed Bugs >> >> • LOG4J2-2107: MapMessage supports both StringBuilderFormattable >> and MultiformatMessage. Thanks to Carter Douglas Kozak. >> • LOG4J2-2102: MapMessage JSON encoding will escape keys and >> values. Thanks to Carter Douglas Kozak. >> • LOG4J2-2101: Non-string value in MapMessage caused >> ClassCastException. Thanks to Carter Douglas Kozak. >> • LOG4J2-2091: Log4j respects the configured "log4j2.is.webapp" >> property Thanks to Carter Douglas Kozak. >> • LOG4J2-2100: LevelMixIn class for Jackson is coded incorrectly >> • LOG4J2-2087: Jansi now needs to be enabled explicitly (by >> setting system property log4j.skipJansi to false). To avoid causing >> problems for web applications, Log4j will no longer automatically try to >> load Jansi without explicit configuration. Thanks to Andy Gumbrecht. >> • LOG4J2-2060: AbstractDatabaseManager should make a copy of >> LogEvents before holding references to them: AsyncLogger log events are >> mutable. >> • LOG4J2-2055: If Log4j is used as the Tomcat logging >> implementation startup might fail if an application also uses Log4j. >> • LOG4J2-2031: Until this change, messages appeared out of order >> in log file any time when the async logging queue was full. With this >> change, messages are only logged out of order to prevent deadlock when >> Log4j2 detects recursive logging while the queue is full. >> • LOG4J2-2053: Exception java.nio.charset.UnsupportedCharsetException: >> cp65001 in 2.9.0. >> • LOG4J2-1216: Nested pattern layout options broken. Thanks to >> Thies Wellpott, Barna Zsombor Klara, GFriedrich. >> • LOG4J2-2070: Log4j1XmlLayout does not provide the entire stack >> trace, it is missing the caused by information. Thanks to Doug Hughes. >> • LOG4J2-2036: CompositeConfiguration supports Reconfiguration. PR >> #115. Thanks to Robert Haycock. >> • LOG4J2-2073: Log4j-config.xsd should make AppenderRef optional >> for each Logger element. Thanks to Patrick Lucas. >> • LOG4J2-2074: The console appender should say why it cannot load >> JAnsi. >> • LOG4J2-2085: Wrong Apache Commons CSV version referenced in the >> Javadoc of CsvParameterLayout. Thanks to István Neuwirth. >> Changes >> >> • LOG4J2-2076: Split up log4j-nosql into one module per appender. >> • LOG4J2-2088: Upgrade picocli to 2.0.3 from 0.9.8. >> • LOG4J2-2025: Provide support for overriding the Tomcat Log class >> in Tomcat 8.5+. >> • LOG4J2-2057: Support new SLF4J binding mechanism introduced in >> SLF4J 1.8. >> • LOG4J2-2052: Disable thread name caching by default when running >> on Java 8u102 or later. >> • LOG4J2-1896: Update classes in org.apache.logging.log4j.core.net.ssl >> in APIs from String to a PasswordProvider producing char[] for passwords. >> • LOG4J2-2078: Update LMAX disruptor from 3.3.6 to 3.3.7. >> • LOG4J2-2081: Update Apache Commons Compress from 1.14 to 1.15. >> • LOG4J2-2089: [TagLib] Update servlet-api provided dependency >> from 2.5 to 3.0.1. >> • LOG4J2-2096: Update Apache Kafka kafka-clients from 0.11.0.1 to >> 1.0.0. >> • LOG4J2-2077: Update from Jackson 2.9.1 to 2.9.2. >> • LOG4J2-2117: Jackson dependencies for 2.9.2 incorrectly bring in >> jackson-annotations 2.9.0 instead of 2.9.2. >> >> Tag: >> a) for a new copy do "git clone https://git-wip-us.apache.org/ >> repos/asf/logging-log4j2.git <https://git-wip-us.apache >> <https://git-wip-us.apache/>. >> org/repos/asf/logging-log4j2.git>" and then "git checkout >> tags/log4j-2.10-rc1” >> b) for an existing working copy to “git pull” and then “git checkout >> tags/log4j-2.10-rc1” >> >> Web Site: http://rgoers.github.io/log4j2-site/index.html >> <http://rgoers.github.io/log4j2-site/index.html> < >> http://rgoers.github.io/log4j2-site/index.html >> <http://rgoers.github.io/log4j2-site/index.html>> >> >> Maven Artifacts: https://repository.apache.org/content/repositories/ >> <https://repository.apache.org/content/repositories/> >> orgapachelogging-1031 <https://repository.apache.org/content/repositories/ >> <https://repository.apache.org/content/repositories/> >> orgapachelogging-1031> >> >> Distribution archives: https://dist.apache.org/repos/ >> <https://dist.apache.org/repos/> >> dist/dev/logging/log4j/ <https://dist.apache.org/ <https://dist.apache.org/> >> repos/dist/dev/logging/log4j/> >> >> You may download all the Maven artifacts by executing: >> wget -e robots=off --cut-dirs=7 -nH -r -p -np --no-check-certificate >> https://repository.apache.org/content/repositories/ >> <https://repository.apache.org/content/repositories/> >> orgapachelogging-1031/org/apache/logging/log4j/ < >> https://repository.apache.org/content/repositories/ >> <https://repository.apache.org/content/repositories/> >> orgapachelogging-1031/org/apache/logging/log4j/> >> >> Ralph