[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Commons CLI 1.3.1
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-maven-3) @ commons-cli ---
[INFO] 
[INFO] --- build-helper-maven-plugin:1.8:parse-version (parse-version) @ commons-cli ---
[INFO] 
[INFO] --- maven-antrun-plugin:1.7:run (javadoc.resources) @ commons-cli ---
[INFO] Executing tasks

main:
[INFO] Executed tasks
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ commons-cli ---
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.3:create (default) @ commons-cli ---
[INFO] Executing: /bin/sh -c cd /home/perham/Study/LittleDarwin/Cases/commons-cli-1.3.1-src && svn --non-interactive info
[INFO] Working directory: /home/perham/Study/LittleDarwin/Cases/commons-cli-1.3.1-src
[INFO] Storing buildNumber: ?????? at timestamp: 1438482183109
[INFO] Executing: /bin/sh -c cd /home/perham/Study/LittleDarwin/Cases/commons-cli-1.3.1-src && svn --non-interactive info
[INFO] Working directory: /home/perham/Study/LittleDarwin/Cases/commons-cli-1.3.1-src
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH
[INFO] 
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ commons-cli ---
[INFO] Using 'iso-8859-1' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/perham/Study/LittleDarwin/Cases/commons-cli-1.3.1-src/src/main/resources
[INFO] Copying 2 resources to META-INF
[INFO] 
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ commons-cli ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 23 source files to /home/perham/Study/LittleDarwin/Cases/commons-cli-1.3.1-src/target/classes
[INFO] /home/perham/Study/LittleDarwin/Cases/commons-cli-1.3.1-src/src/main/java/org/apache/commons/cli/Parser.java: Some input files use unchecked or unsafe operations.
[INFO] /home/perham/Study/LittleDarwin/Cases/commons-cli-1.3.1-src/src/main/java/org/apache/commons/cli/Parser.java: Recompile with -Xlint:unchecked for details.
[INFO] 
[INFO] --- maven-bundle-plugin:2.5.3:manifest (bundle-manifest) @ commons-cli ---
[INFO] 
[INFO] --- animal-sniffer-maven-plugin:1.13:check (checkAPIcompatibility) @ commons-cli ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java15:1.0
[INFO] 
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ commons-cli ---
[INFO] Using 'iso-8859-1' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] Copying 2 resources to META-INF
[INFO] 
[INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @ commons-cli ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.2.201409121644:prepare-agent (prepare-agent) @ commons-cli ---
[INFO] argLine set to -javaagent:/home/perham/.m2/repository/org/jacoco/org.jacoco.agent/0.7.2.201409121644/org.jacoco.agent-0.7.2.201409121644-runtime.jar=destfile=/home/perham/Study/LittleDarwin/Cases/commons-cli-1.3.1-src/target/jacoco.exec
[INFO] 
[INFO] --- maven-surefire-plugin:2.18:test (default-test) @ commons-cli ---
[INFO] Surefire report directory: /home/perham/Study/LittleDarwin/Cases/commons-cli-1.3.1-src/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.commons.cli.ArgumentIsOptionTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec - in org.apache.commons.cli.ArgumentIsOptionTest
Running org.apache.commons.cli.DefaultParserTest
Tests run: 58, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.084 sec - in org.apache.commons.cli.DefaultParserTest
Running org.apache.commons.cli.ValuesTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in org.apache.commons.cli.ValuesTest
Running org.apache.commons.cli.OptionsTest
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in org.apache.commons.cli.OptionsTest
Running org.apache.commons.cli.GnuParserTest
Tests run: 58, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.019 sec - in org.apache.commons.cli.GnuParserTest
Running org.apache.commons.cli.PatternOptionBuilderTest
Exception found converting v to desired type: Unable to parse the URL: foo://commons.apache.org
Exception found converting d to desired type: Unable to find the class: System.DateTime
Exception found converting x to desired type: For input string: "3,5"
Exception found converting i to desired type: java.lang.IllegalAccessException; Unable to create an instance of: java.util.Calendar
Exception found converting n to desired type: Unable to find the class: System.DateTime
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.041 sec - in org.apache.commons.cli.PatternOptionBuilderTest
Running org.apache.commons.cli.ApplicationTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec - in org.apache.commons.cli.ApplicationTest
Running org.apache.commons.cli.OptionTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in org.apache.commons.cli.OptionTest
Running org.apache.commons.cli.bug.BugCLI252Test
Tests run: 60, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.027 sec - in org.apache.commons.cli.bug.BugCLI252Test
Running org.apache.commons.cli.bug.BugCLI162Test
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.apache.commons.cli.bug.BugCLI162Test
Running org.apache.commons.cli.bug.BugCLI71Test
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.apache.commons.cli.bug.BugCLI71Test
Running org.apache.commons.cli.bug.BugCLI18Test
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.apache.commons.cli.bug.BugCLI18Test
Running org.apache.commons.cli.bug.BugCLI133Test
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.apache.commons.cli.bug.BugCLI133Test
Running org.apache.commons.cli.bug.BugCLI13Test
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in org.apache.commons.cli.bug.BugCLI13Test
Running org.apache.commons.cli.bug.BugCLI148Test
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.apache.commons.cli.bug.BugCLI148Test
Running org.apache.commons.cli.bug.BugsTest
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in org.apache.commons.cli.bug.BugsTest
Running org.apache.commons.cli.HelpFormatterTest
Tests run: 25, Failures: 3, Errors: 1, Skipped: 0, Time elapsed: 0.021 sec <<< FAILURE! - in org.apache.commons.cli.HelpFormatterTest
testUsageWithLongOptSeparator(org.apache.commons.cli.HelpFormatterTest)  Time elapsed: 0.005 sec  <<< FAILURE!
org.junit.ComparisonFailure: expected:<usage: create [-[-age=<arg>] [-f <arg>] [-s <SIZE]>]> but was:<usage: create [-[f <arg>] [-s <SIZE>] [--age=<arg]>]>
	at org.junit.Assert.assertEquals(Assert.java:115)
	at org.junit.Assert.assertEquals(Assert.java:144)
	at org.apache.commons.cli.HelpFormatterTest.testUsageWithLongOptSeparator(HelpFormatterTest.java:608)

testPrintSortedUsageWithNullComparator(org.apache.commons.cli.HelpFormatterTest)  Time elapsed: 0.004 sec  <<< ERROR!
java.lang.ClassCastException: org.apache.commons.cli.Option cannot be cast to java.lang.Comparable
	at java.util.ComparableTimSort.countRunAndMakeAscending(ComparableTimSort.java:290)
	at java.util.ComparableTimSort.sort(ComparableTimSort.java:157)
	at java.util.Arrays.sort(Arrays.java:537)
	at java.util.TimSort.sort(TimSort.java:178)
	at java.util.TimSort.sort(TimSort.java:173)
	at java.util.Arrays.sort(Arrays.java:659)
	at java.util.Collections.sort(Collections.java:217)
	at org.apache.commons.cli.HelpFormatter.printUsage(HelpFormatter.java:77)
	at org.apache.commons.cli.HelpFormatterTest.testPrintSortedUsageWithNullComparator(HelpFormatterTest.java:315)

testPrintSortedUsage(org.apache.commons.cli.HelpFormatterTest)  Time elapsed: 0.001 sec  <<< FAILURE!
org.junit.ComparisonFailure: expected:<usage: app [-[c] [-b] [-a]]
> but was:<usage: app [-[a] [-b] [-c]]
>
	at org.junit.Assert.assertEquals(Assert.java:115)
	at org.junit.Assert.assertEquals(Assert.java:144)
	at org.apache.commons.cli.HelpFormatterTest.testPrintSortedUsage(HelpFormatterTest.java:300)

testOptionWithoutShortFormat2(org.apache.commons.cli.HelpFormatterTest)  Time elapsed: 0.002 sec  <<< FAILURE!
org.junit.ComparisonFailure: expected:<...sage: commandline [-[a <arg>] [--config <arg>] [-h] [-l <arg>] [-n] [-r <arg>]
       [-s <arg>] [-t] [-v]]
header
  -a,--age ...> but was:<...sage: commandline [-[h] [-v] [-n] [-t] [-l <arg>] [-a <arg>] [-s <arg>] [-r
       <arg>] [--config <arg>]]
header
  -a,--age ...>
	at org.junit.Assert.assertEquals(Assert.java:115)
	at org.junit.Assert.assertEquals(Assert.java:144)
	at org.apache.commons.cli.HelpFormatterTest.testOptionWithoutShortFormat2(HelpFormatterTest.java:549)

Running org.apache.commons.cli.OptionBuilderTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in org.apache.commons.cli.OptionBuilderTest
Running org.apache.commons.cli.PosixParserTest
Tests run: 58, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.029 sec - in org.apache.commons.cli.PosixParserTest
Running org.apache.commons.cli.UtilTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.apache.commons.cli.UtilTest
Running org.apache.commons.cli.OptionGroupTest
Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec - in org.apache.commons.cli.OptionGroupTest
Running org.apache.commons.cli.CommandLineTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in org.apache.commons.cli.CommandLineTest
Running org.apache.commons.cli.BasicParserTest
Tests run: 58, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.054 sec - in org.apache.commons.cli.BasicParserTest
Running org.apache.commons.cli.ValueTest
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec - in org.apache.commons.cli.ValueTest

Results :

Failed tests: 
  HelpFormatterTest.testOptionWithoutShortFormat2:549 expected:<...sage: commandline [-[a <arg>] [--config <arg>] [-h] [-l <arg>] [-n] [-r <arg>]
       [-s <arg>] [-t] [-v]]
header
  -a,--age ...> but was:<...sage: commandline [-[h] [-v] [-n] [-t] [-l <arg>] [-a <arg>] [-s <arg>] [-r
       <arg>] [--config <arg>]]
header
  -a,--age ...>
  HelpFormatterTest.testPrintSortedUsage:300 expected:<usage: app [-[c] [-b] [-a]]
> but was:<usage: app [-[a] [-b] [-c]]
>
  HelpFormatterTest.testUsageWithLongOptSeparator:608 expected:<usage: create [-[-age=<arg>] [-f <arg>] [-s <SIZE]>]> but was:<usage: create [-[f <arg>] [-s <SIZE>] [--age=<arg]>]>

Tests in error: 
  HelpFormatterTest.testPrintSortedUsageWithNullComparator:315 » ClassCast org.a...


Tests run: 424, Failures: 3, Errors: 1, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.321s
[INFO] Finished at: Sun Aug 02 03:23:09 BST 2015
[INFO] Final Memory: 29M/344M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18:test (default-test) on project commons-cli: There are test failures.
[ERROR] 
[ERROR] Please refer to /home/perham/Study/LittleDarwin/Cases/commons-cli-1.3.1-src/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
