commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc Pawlowsky (JIRA)" <j...@apache.org>
Subject [jira] [Created] (COLLECTIONS-587) commons-collections-3.2.2 does not compile under docker fedora21
Date Tue, 26 Apr 2016 16:37:12 GMT
Marc Pawlowsky created COLLECTIONS-587:
------------------------------------------

             Summary: commons-collections-3.2.2 does not compile under docker fedora21
                 Key: COLLECTIONS-587
                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-587
             Project: Commons Collections
          Issue Type: Bug
    Affects Versions: 3.2
         Environment: docker, fedora21
            Reporter: Marc Pawlowsky


In a clean environment using docker, compile errors

$cat Dockerfile 
FROM fedora:21 
RUN yum update -y 
RUN yum install -y java-1.8.0-openjdk unzip maven wget
RUN wget http://apache.mirror.rafal.ca//commons/collections/source/commons-collections-3.2.2-src.zip
RUN unzip commons-collections-3.2.2-src.zip
RUN cd commons-collections-3.2.2-src && mvn initialize
RUN cd commons-collections-3.2.2-src && mvn install
RUN chmod -R 755 /root
CMD /bin/bash
$docker build .
<snip/>
Downloaded: http://repo.maven.apache.org/maven2/commons-[INFO] Changes detected - recompiling
the module!
[INFO] Compiling 273 source files to /commons-collections-3.2.2-src/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /commons-collections-3.2.2-src/src/java/org/apache/commons/collections/MultiHashMap.java:[334,19]
remove(java.lang.Object,java.lang.Object) in org.apache.commons.collections.MultiHashMap cannot
implement remove(java.lang.Object,java.lang.Object) in java.util.Map
  return type java.lang.Object is not compatible with boolean
[ERROR] /commons-collections-3.2.2-src/src/java/org/apache/commons/collections/MultiMap.java:[69,19]
remove(java.lang.Object,java.lang.Object) in org.apache.commons.collections.MultiMap clashes
with remove(java.lang.Object,java.lang.Object) in java.util.Map
  return type java.lang.Object is not compatible with boolean
[ERROR] /commons-collections-3.2.2-src/src/java/org/apache/commons/collections/map/MultiValueMap.java:[156,19]
remove(java.lang.Object,java.lang.Object) in org.apache.commons.collections.map.MultiValueMap
cannot implement remove(java.lang.Object,java.lang.Object) in java.util.Map
  return type java.lang.Object is not compatible with boolean
[ERROR] /commons-collections-3.2.2-src/src/java/org/apache/commons/collections/map/MultiKeyMap.java:[200,19]
remove(java.lang.Object,java.lang.Object) in org.apache.commons.collections.map.MultiKeyMap
cannot implement remove(java.lang.Object,java.lang.Object) in java.util.Map
  return type java.lang.Object is not compatible with boolean
[INFO] 4 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19.104 s
[INFO] Finished at: 2016-04-26T12:35:24-04:00
[INFO] Final Memory: 19M/203M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile
(default-compile) on project commons-collections: Compilation failure: Compilation failure:
[ERROR] /commons-collections-3.2.2-src/src/java/org/apache/commons/collections/MultiHashMap.java:[334,19]
remove(java.lang.Object,java.lang.Object) in org.apache.commons.collections.MultiHashMap cannot
implement remove(java.lang.Object,java.lang.Object) in java.util.Map
[ERROR] return type java.lang.Object is not compatible with boolean
[ERROR] /commons-collections-3.2.2-src/src/java/org/apache/commons/collections/MultiMap.java:[69,19]
remove(java.lang.Object,java.lang.Object) in org.apache.commons.collections.MultiMap clashes
with remove(java.lang.Object,java.lang.Object) in java.util.Map
[ERROR] return type java.lang.Object is not compatible with boolean
[ERROR] /commons-collections-3.2.2-src/src/java/org/apache/commons/collections/map/MultiValueMap.java:[156,19]
remove(java.lang.Object,java.lang.Object) in org.apache.commons.collections.map.MultiValueMap
cannot implement remove(java.lang.Object,java.lang.Object) in java.util.Map
[ERROR] return type java.lang.Object is not compatible with boolean
[ERROR] /commons-collections-3.2.2-src/src/java/org/apache/commons/collections/map/MultiKeyMap.java:[200,19]
remove(java.lang.Object,java.lang.Object) in org.apache.commons.collections.map.MultiKeyMap
cannot implement remove(java.lang.Object,java.lang.Object) in java.util.Map
[ERROR] return type java.lang.Object is not compatible with boolean
[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-collections-3.2.2-src && mvn install' returned
a non-zero code: 1




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

Mime
View raw message