aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Moulliard <cmoulli...@gmail.com>
Subject Compilation error
Date Mon, 16 Jul 2012 13:08:10 GMT
Hi,

When building Aries project, I get this error :

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
(default-compile) on project org.apache.aries.util: Compilation failure:
Compilation failure:
[ERROR] could not parse error message: warning: [options] bootstrap class
path not set in conjunction with -source 1.5
[ERROR]
/Users/chmoulli/Apache/aries/util/util/src/main/java/org/apache/aries/util/internal/R43Worker.java:36:
error: cannot find symbol
[ERROR] return b.adapt(BundleWiring.class).getClassLoader();
[ERROR] ^
[ERROR]
[ERROR] could not parse error message:   symbol:   method getClassLoader()
[ERROR] location: class Object
[ERROR]
/Users/chmoulli/Apache/aries/util/util/src/main/java/org/apache/aries/util/tracker/hook/BundleHookBundleTracker.java:109:
error: BundleHookBundleTracker.BundleEventHook is not abstract and does not
override abstract method event(BundleEvent,Collection) in EventHook
[ERROR] private class BundleEventHook implements EventHook {
[ERROR] ^
[ERROR]
[ERROR]
/Users/chmoulli/Apache/aries/util/util/src/main/java/org/apache/aries/util/tracker/hook/BundleHookBundleTracker.java:[116,16]
error: name clash: event(BundleEvent,Collection<BundleContext>) in
BundleHookBundleTracker.BundleEventHook and event(BundleEvent,Collection)
in EventHook have the same erasure, yet neither overrides the other
[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 :org.apache.aries.util

Is it related because we have changed JDK compilation from 1.5 to 1.6 ?

Regards,

Charles Moulliard

Apache Committer

Blog : http://cmoulliard.blogspot.com
Twitter : http://twitter.com/cmoulliard
Linkedin : http://www.linkedin.com/in/charlesmoulliard
Skype: cmoulliard

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