You can't use JDK 8 to build a version that old, try using JDK 6.  JDK 7
support was added in ActiveMQ 5.7.0 and JDK 8 support was added in ActiveMQ
5.10.0

On Fri, Jun 12, 2015 at 11:54 AM, bbuzzard <billy.buzz...@bnsflogistics.com>
wrote:

> Yes I know there are newer versions, but I'm trying to build ActiveMQ-5.5.1
> from source using Maven 3.0.5 and jdk1.8.0_11, but I'm running into errors
> when compiling activemq-core.  Can anyone tell me how to get past these
> errors.  I'm including a snippet below:
>
> [INFO] Compiling 15 source files to C:\Users\Billy.Buzzard.US\workspace
> apache-camel\activemq-parent\activemq-jmdns_1.0\target\classes
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building ActiveMQ :: Core 5.5.1
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-clean-plugin:2.3:clean (default-clean) @ activemq-core ---
> [INFO] Deleting file set: C:\Users\Billy.Buzzard.US\workspace
> apache-camel\activemq-parent\activemq-core\target (included: [**],
> excluded:
> [])
> [INFO]
> [INFO] --- maven-enforcer-plugin:1.0-beta-1:enforce (default) @
> activemq-core ---
> [INFO]
> [INFO] --- maven-bundle-plugin:2.1.0:cleanVersions (cleanVersions) @
> activemq-core ---
> [INFO]
> [INFO] --- javacc-maven-plugin:2.0:javacc (default) @ activemq-core ---
> Java Compiler Compiler Version 3.2 (Parser Generator)
> (type "javacc" with no arguments for help)
> Reading from file C:\Users\Billy.Buzzard.US\workspace
>
> apache-camel\activemq-parent\activemq-core\src\main\grammar\SelectorParser.jj
> . . .
> Note: UNICODE_INPUT option is specified. Please make sure you create the
> parser/lexer usig a Reader with the correct character encoding.
> File "TokenMgrError.java" does not exist.  Will create one.
> File "ParseException.java" does not exist.  Will create one.
> File "Token.java" does not exist.  Will create one.
> File "SimpleCharStream.java" does not exist.  Will create one.
> Parser generated successfully.
> [INFO]
> [INFO] --- activemq-protobuf:1.1:compile (default) @ activemq-core ---
> [INFO] Compiling: C:\Users\Billy.Buzzard.US\workspace
>
> apache-camel\activemq-parent\activemq-core\src\main\proto\journal-data.proto
> [INFO]
> [INFO] --- maven-remote-resources-plugin:1.1:process (default) @
> activemq-core ---
> [INFO]
> [INFO] --- maven-resources-plugin:2.4:resources (default-resources) @
> activemq-core ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 54 resources
> [INFO] Copying 3 resources
> [INFO]
> [INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @
> activemq-core ---
> [INFO] Compiling 1354 source files to C:\Users\Billy.Buzzard.US\workspace
> apache-camel\activemq-parent\activemq-core\target\classes
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] ActiveMQ .......................................... SUCCESS [1.538s]
> [INFO] ActiveMQ :: KahaDB ................................ SUCCESS [2.926s]
> [INFO] ActiveMQ :: JAAS .................................. SUCCESS [2.614s]
> [INFO] Openwire Generator ................................ SUCCESS [2.296s]
> [INFO] ActiveMQ :: jmdns 1.0 ............................. SUCCESS [1.942s]
> [INFO] ActiveMQ :: Core .................................. FAILURE
> [14.050s]
> [INFO] ActiveMQ :: RA .................................... SKIPPED
> [INFO] ActiveMQ :: Pool .................................. SKIPPED
> [INFO] ActiveMQ :: Camel ................................. SKIPPED
> [INFO] ActiveMQ :: Console ............................... SKIPPED
> [INFO] ActiveMQ :: Optional .............................. SKIPPED
> [INFO] ActiveMQ :: Jar Bundle ............................ SKIPPED
> [INFO] ActiveMQ :: File Server ........................... SKIPPED
> [INFO] ActiveMQ :: Blueprint ............................. SKIPPED
> [INFO] ActiveMQ :: Apache Karaf .......................... SKIPPED
> [INFO] ActiveMQ :: RAR ................................... SKIPPED
> [INFO] ActiveMQ :: Run Jar ............................... SKIPPED
> [INFO] ActiveMQ :: Spring ................................ SKIPPED
> [INFO] ActiveMQ Tooling .................................. SKIPPED
> [INFO] ActiveMQ :: Memory Usage Test Plugin .............. SKIPPED
> [INFO] ActiveMQ :: Performance Test Plugin ............... SKIPPED
> [INFO] ActiveMQ :: StartUp Plugin ........................ SKIPPED
> [INFO] ActiveMQ :: Web ................................... SKIPPED
> [INFO] ActiveMQ :: Web Demo .............................. SKIPPED
> [INFO] ActiveMQ :: XMPP .................................. SKIPPED
> [INFO] ActiveMQ :: Web Console ........................... SKIPPED
> [INFO] ActiveMQ :: Assembly .............................. SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 26.992s
> [INFO] Finished at: Fri Jun 12 10:18:14 CDT 2015
> [INFO] Final Memory: 47M/273M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
> (default-compile) on project activemq-core: Compilation failure:
> Compilation
> failure:
> [ERROR] could not parse error message: warning: [options] bootstrap class
> path not set in conjunction with -source 1.6
> [ERROR] C:\Users\Billy.Buzzard.US\workspace
>
> apache-camel\activemq-parent\activemq-core\src\main\java\org\apache\activemq\usage\Usage.java:60:
> error: name has private access in Usage
> [ERROR] name = parent.name + ":" + name;
> [ERROR] ^
> [ERROR]
> [ERROR] C:\Users\Billy.Buzzard.US\workspace
>
> apache-camel\activemq-parent\activemq-core\src\main\java\org\apache\activemq\usage\Usage.java:[294,22]
> error: addChild(T) has private access in Usage
> [ERROR]
> [ERROR] could not parse error message:   where T is a type-variable:
> [ERROR] T extends Usage declared in class Usage
> [ERROR] C:\Users\Billy.Buzzard.US\workspace
>
> apache-camel\activemq-parent\activemq-core\src\main\java\org\apache\activemq\usage\Usage.java:306:
> error: removeChild(T) has private access in Usage
> [ERROR] parent.removeChild(this);
> [ERROR] ^
> [ERROR]
> [ERROR] could not parse error message:   where T is a type-variable:
> [ERROR] T extends Usage declared in class Usage
> [ERROR] C:\Users\Billy.Buzzard.US\workspace
>
> apache-camel\activemq-parent\activemq-core\src\main\java\org\apache\activemq\kaha\MapContainer.java:85:
> error: name clash: containsKey(K) in MapContainer and containsKey(Object)
> in
> Map h
> ave the same erasure, yet neither overrides the other
> [ERROR] boolean containsKey(K key);
> [ERROR] ^
> [ERROR]
> [ERROR] could not parse error message:   where K is a type-variable:
> [ERROR] K extends Object declared in interface MapContainer
> [ERROR] C:\Users\Billy.Buzzard.US\workspace
>
> apache-camel\activemq-parent\activemq-core\src\main\java\org\apache\activemq\kaha\MapContainer.java:93:
> error: name clash: get(K) in MapContainer and get(Object) in Map have the
> same era
> sure, yet neither overrides the other
> [ERROR] V get(K key);
> [ERROR] ^
> [ERROR]
> [ERROR] could not parse error message:   where K,V#1,V#2 are
> type-variables:
> [ERROR] K extends Object declared in interface MapContainer
> [ERROR] V#1 extends Object declared in interface MapContainer
> [ERROR] V#2 extends Object declared in interface Map
> [ERROR] C:\Users\Billy.Buzzard.US\workspace
>
> apache-camel\activemq-parent\activemq-core\src\main\java\org\apache\activemq\kaha\MapContainer.java:99:
> error: name clash: containsValue(K) in MapContainer and
> containsValue(Object) in M
> ap have the same erasure, yet neither overrides the other
> [ERROR] boolean containsValue(K o);
> [ERROR] ^
> [ERROR]
> [ERROR] could not parse error message:   where K is a type-variable:
> [ERROR] K extends Object declared in interface MapContainer
> [ERROR] C:\Users\Billy.Buzzard.US\workspace
>
> apache-camel\activemq-parent\activemq-core\src\main\java\org\apache\activemq\kaha\MapContainer.java:106:
> error: name clash: putAll(Map<K#1,V#1>) in MapContainer and putAll(Map<?
> extends
> K#2,? extends V#2>) in Map have the same erasure, yet neither overrides the
> other
> [ERROR] void putAll(Map<K, V> map);
> [ERROR] ^
> [ERROR]
> [ERROR] could not parse error message:   where K#1,V#1,K#2,V#2 are
> type-variables:
> [ERROR] K#1 extends Object declared in interface MapContainer
> [ERROR] V#1 extends Object declared in interface MapContainer
> [ERROR] K#2 extends Object declared in interface Map
> [ERROR] V#2 extends Object declared in interface Map
> [ERROR] C:\Users\Billy.Buzzard.US\workspace
>
> apache-camel\activemq-parent\activemq-core\src\main\java\org\apache\activemq\kaha\MapContainer.java:140:
> error: name clash: remove(K) in MapContainer and remove(Object) in Map have
> the s
> ame erasure, yet neither overrides the other
> [ERROR] V remove(K key);
> [ERROR] ^
> [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
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR]   mvn <goals> -rf :activemq-core
> 'cmd' is not recognized as an internal or external command,
> operable program or batch file.
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Errors-trying-to-build-ActiveMQ-5-5-1-from-source-tp4697726.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Reply via email to