brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Svetoslav Neykov <svetoslav.ney...@cloudsoftcorp.com>
Subject Re: `mvn clean install` on https://github.com/brooklyncentral/brooklyn-examples.git has errors for me
Date Fri, 19 Dec 2014 07:42:01 GMT
Hi Nick,

I see you are using Java 8. The error seems to be caused by a combination of the new default
methods in Java 8 and the source level (Java 6) of the project.
As Alex suggests can you try compiling with the 0.7.0-SNAPSHOT version and if the problem
persists opening an issue at https://issues.apache.org/jira/browse/BROOKLYN/ <https://issues.apache.org/jira/browse/BROOKLYN/>.
The workaround is to use Java 6 or 7 to compile it until we solve the compatibility problem.

Here is a longer explanation http://stackoverflow.com/questions/24301986/the-type-java-lang-charsequence-cannot-be-resolved-in-package-declaration
<http://stackoverflow.com/questions/24301986/the-type-java-lang-charsequence-cannot-be-resolved-in-package-declaration>.

Best,
Svet.


> On 19.12.2014 г., at 2:57, Alex Heneveld <alex.heneveld@cloudsoftcorp.com> wrote:
> 
> 
> Hi Nick-
> 
> What version of Java is this?  This message:
> 
>    Annotation processing got disabled, since it requires a 1.6 compliant JVM
> 
> suggests it's either very old or very new.  We usually use 1.7 or 1.8, sometimes 1.6.
> 
> If you're building from source it's probably better to use master branch (070-snapshot)
rather than 070-M1.  See instructions at:
> 
> https://brooklyn.incubator.apache.org/v/0.7.0-SNAPSHOT/use/examples/webcluster/index.html
> 
> Or you can download a binary for M1.
> 
> Best
> Alex
> 
> 
> On 18/12/2014 22:31, Nick Henry wrote:
>> Commands (
>> https://brooklyn.incubator.apache.org/v/0.7.0-M1/use/examples/webcluster/index.html
>> ):
>> 
>> git clone [https://github.com/brooklyncentral/brooklyn-examples.git](https://github.com/brooklyncentral/brooklyn-examples.git)
>> cd brooklyn-examples
>> git checkout 0.7.0-M1
>> mvn clean install
>> 
>> ​
>> 
>> Error:
>> 
>> 
>> ...
>> 
>> [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
>> brooklyn-example-hello-world-hadoop-jar ---
>> [INFO] Using Groovy-Eclipse compiler to compile both Java and Groovy files
>> [INFO] Found location
>> </home/nickh/.m2/repository/org/codehaus/groovy/groovy-eclipse-batch/1.8.6-01/groovy-eclipse-batch-1.8.6-01.jar>
>> for className <org.eclipse.jdt.internal.compiler.batch.Main>
>> [INFO] no javaAgentClass seems to be set
>> [INFO] Compiling in a forked process using
>> /home/nickh/.m2/repository/org/codehaus/groovy/groovy-eclipse-batch/1.8.6-01/groovy-eclipse-batch-1.8.6-01.jar
>> [INFO] -------------------------------------------------------------
>> [ERROR] COMPILATION ERROR :
>> [INFO] -------------------------------------------------------------
>> [ERROR] no more tokens - could not parse error message: Annotation
>> processing got disabled, since it requires a 1.6 compliant JVM
>> ----------
>> 1. ERROR in /home/nickh/tmp/brooklyn-examples/webapps/hello-world-hadoop-jar/src/main/java/brooklyn/demo/webapp/hello/DemoUtils.java
>> (at line 18)
>>         sb.append(line).append("\n");
>>         ^^^^^^^^^^^^^^^
>> 
>> [ERROR] no more tokens - could not parse error message: The type
>> java.lang.CharSequence cannot be resolved. It is indirectly referenced
>> from required .class files
>> ----------
>> ----------
>> 2. ERROR in /home/nickh/tmp/brooklyn-examples/webapps/hello-world-hadoop-jar/src/main/java/brooklyn/demo/webapp/hello/HadoopWordCount.java
>> (at line 1)
>>         package brooklyn.demo.webapp.hello;
>>         ^
>> 
>> [INFO] 2 errors
>> [INFO] -------------------------------------------------------------
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Reactor Summary:
>> [INFO]
>> [INFO] Brooklyn Examples Aggregator Project ............... SUCCESS [  0.307 s]
>> [INFO] Brooklyn Examples Support Aggregator Project - Webapps SUCCESS
>> [  0.010 s]
>> [INFO] hello-world-webapp Maven Webapp .................... SUCCESS [  0.720 s]
>> [INFO] hello-world-sql-webapp Maven Webapp ................ SUCCESS [  0.222 s]
>> [INFO] Jar Code for Hadoop Webapp ......................... FAILURE [  0.732 s]
>> [INFO] hello-world-hadoop-webapp Maven Webapp ............. SKIPPED
>> [INFO] Brooklyn Simple Web Cluster Example ................ SKIPPED
>> [INFO] Brooklyn Global Web Fabric Example ................. SKIPPED
>> [INFO] Brooklyn Hadoop and Whirr Example .................. SKIPPED
>> [INFO] Brooklyn Simple Messaging Publish-Subscribe Example  SKIPPED
>> [INFO] Brooklyn NoSQL Cluster Examples .................... SKIPPED
>> [INFO] ------------------------------------------------------------------------
>> [INFO] BUILD FAILURE
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Total time: 2.419 s
>> [INFO] Finished at: 2014-12-18T15:19:50-07:00
>> [INFO] Final Memory: 18M/981M
>> [INFO] ------------------------------------------------------------------------
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
>> (default-compile) on project brooklyn-example-hello-world-hadoop-jar:
>> Compilation failure: Compilation failure:
>> [ERROR] no more tokens - could not parse error message: Annotation
>> processing got disabled, since it requires a 1.6 compliant JVM
>> [ERROR] ----------
>> [ERROR] 1. ERROR in
>> /home/nickh/tmp/brooklyn-examples/webapps/hello-world-hadoop-jar/src/main/java/brooklyn/demo/webapp/hello/DemoUtils.java
>> (at line 18)
>> [ERROR] sb.append(line).append("\n");
>> [ERROR] ^^^^^^^^^^^^^^^
>> [ERROR]
>> [ERROR] no more tokens - could not parse error message: The type
>> java.lang.CharSequence cannot be resolved. It is indirectly referenced
>> from required .class files
>> [ERROR] ----------
>> [ERROR] ----------
>> [ERROR] 2. ERROR in
>> /home/nickh/tmp/brooklyn-examples/webapps/hello-world-hadoop-jar/src/main/java/brooklyn/demo/webapp/hello/HadoopWordCount.java
>> (at line 1)
>> [ERROR] package brooklyn.demo.webapp.hello;
>> [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 :brooklyn-example-hello-world-hadoop-jar
>> 
>> ​
>> Environment:
>> 
>> nickh@BONHENRY:~/tmp/brooklyn-examples$ mvn -version
>> Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
>> MaxPermSize=1024m; support was removed in 8.0
>> Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4;
>> 2014-08-11T14:58:10-06:00)
>> Maven home: /usr/local/apache-maven
>> Java version: 1.8.0_20, vendor: Oracle Corporation
>> Java home: /usr/java/jdk1.8.0_20/jre
>> Default locale: en_US, platform encoding: UTF-8
>> OS name: "linux", version: "3.13.0-43-generic", arch: "amd64", family: "unix"
>> 
>> ​
>> Any suggestions?
>> 
>> Thanks,
>> 
>> —Nick HenryTechnical Operations ManagerStanding Cloud, an AppDirect Company720
>> 675 9086Blog <http://info.appdirect.com/blog> | Press
>> <http://info.appdirect.com/about/press> | Video Center
>> <http://info.appdirect.com/video> <http://ps14.appdirect.com/>This
>> communication and any attachments may contain Confidential Information of
>> AppDirect, Inc. All unauthorized use, disclosure or distribution is
>> prohibited. If you are not the intended recipient, please notify AppDirect,
>> Inc. immediately and destroy all copies of this communication. Thank you.
>> 
> 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message