[ 
https://issues.apache.org/jira/browse/IO-501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15252652#comment-15252652
 ] 

Joerg Schaible commented on IO-501:
-----------------------------------

Works for me. Downloaded commons-io-2.4-src.zip from Apache. Unzipped archive 
and started Maven from archive root with

{noformat}
$ unzip commons-io-2.4-src.zip
$ cd commons-io-2.4-src
$ mvn -version
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 
2015-11-10T17:41:47+01:00)
Maven home: /usr/share/maven-bin-3.3
Java version: 1.8.0_77, vendor: Oracle Corporation
Java home: /opt/icedtea-bin-3.0.0/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.1.15-gentoo-r1", arch: "amd64", family: "unix"
$ mvn package
[...]
Results :

Tests run: 966, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ commons-io ---
[INFO] Building jar: 
/home/joehni/tmp/download/commons-io-2.4-src/target/commons-io-2.4.jar
[INFO] 
[INFO] --- maven-site-plugin:3.0:attach-descriptor (attach-descriptor) @ 
commons-io ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:50 min
[INFO] Finished at: 2016-04-21T22:28:35+02:00
[INFO] Final Memory: 31M/234M
[INFO] ------------------------------------------------------------------------
{noformat}

So, it is not OpenJDK 8, it's not Linux in general nor is it the original 
zipped archive.

> commons-io-2.4-src.zip fails test cases
> ---------------------------------------
>
>                 Key: IO-501
>                 URL: https://issues.apache.org/jira/browse/IO-501
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Filters
>    Affects Versions: 2.4
>            Reporter: Marc Pawlowsky
>            Priority: Minor
>
> Failed tests:   
> testCanRead(org.apache.commons.io.filefilter.FileFilterTestCase): 
> Filter(File) org.apache.commons.io.filefilter.AndFileFilter not true for 
> /commons-io-2.4-src/test/io/read-only-file1.txt expected:<true> but 
> was:<false>
>   testCanWrite(org.apache.commons.io.filefilter.FileFilterTestCase): 
> Filter(File) org.apache.commons.io.filefilter.CanWriteFileFilter not false 
> for /commons-io-2.4-src/test/io/read-only-file2.txt expected:<false> but 
> was:<true>
>   
> testThrowsOnNullList(org.apache.commons.io.FileUtilsCleanDirectoryTestCase): 
> expected IOException
>   
> testThrowsOnCannotDeleteFile(org.apache.commons.io.FileUtilsCleanDirectoryTestCase):
>  expected IOException
> Tests run: 966, Failures: 4, Errors: 0, Skipped: 0
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 01:32 min
> [INFO] Finished at: 2016-04-21T12:56:24-04:00
> [INFO] Final Memory: 17M/178M
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on 
> project commons-io: There are test failures.
> [ERROR] 
> [ERROR] Please refer to /commons-io-2.4-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
> The command '/bin/sh -c cd commons-io-2.4-src && mvn install' returned a 
> non-zero code: 1
> Dockerfile
> FROM fedora:21
> RUN yum update -y
> RUN yum install -y java-1.8.0-openjdk unzip
> RUN yum install -y maven
> COPY commons-io-2.4-src.zip commons-io-2.4-src.zip
> RUN unzip commons-io-2.4-src.zip
> RUN cd commons-io-2.4-src && mvn initialize
> RUN cd commons-io-2.4-src && mvn test-compile
> RUN cd commons-io-2.4-src && mvn install
> RUN chmod -R 755 /root
> CMD /bin/bash



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to