tycho uses the eclipse JDT compiler by default (it has additional features like package access rules for exported packages etc.).
 
Not sure but I think the idea was that the compiler implementation should be interchangeable (and you may lose some additional features if not using JDT).
If that is true this would qualify as a bug and we should make sure we only use JDT-specific compiler arguments if the JDT compiler is actually used.
 
I don't know the error-prone javac extension but JDT compiler warnings or findbugs may provide similar functionality.
 
Regards,
Jan
 
 
From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx]
On Behalf Of Christian Schwarz
Sent: Mittwoch, 8. Januar 2014 15:38
To: Tycho user list
Subject: [tycho-user] Problems changing the compiler to google error-prone
 
Hi,
we want to ensure the quality of our code by compiling it with google's javac extension "error-prone" (see https://code.google.com/p/error-prone/). I don't know what is going on here
 since my experience with maven-tycho is limited. I get this error with tycho v0.19.0:
 
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:0.19.0:compile (default-compile) on project
eu.gemtec.carepi.io: Fatal error compiling: invalid flag: org.osgi.framework.system.packages
 
The pom configuration of the tycho compiler look like this:
 
      <groupId>org.eclipse.tycho</groupId>
 
        <artifactId>tycho-compiler-plugin</artifactId>
 
        <version>${tycho.version}</version>
 
          <compilerId>javac-with-errorprone</compilerId>
 
            <groupId>org.codehaus.plexus</groupId>
 
            <artifactId>plexus-compiler-javac</artifactId>
 
            <groupId>org.codehaus.plexus</groupId>
 
            <artifactId>plexus-compiler-javac-errorprone</artifactId>
 
 
 
Does anyone know how to solve it?