Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Problems changing the compiler to google error-prone

Tycho uses Eclipse jdt java compiler. To the best of my knowledge, this
is the only compiler that supports classpath isolation rules required to
properly compile OSGi bundles.

--
Regards,
Igir

On 1/8/2014, 9:38, Christian Schwarz wrote:
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
    <http://eu.gemtec.carepi.io>: Fatal error compiling: invalid flag:
    org.osgi.framework.system.packages

The pom configuration of the tycho compiler look like this:

       <plugin>
       <groupId>org.eclipse.tycho</groupId>
         <artifactId>tycho-compiler-plugin</artifactId>
         <version>${tycho.version}</version>
         <configuration>
<compilerId>javac-with-errorprone</compilerId>
         </configuration>
         <dependencies>
           <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-compiler-javac</artifactId>
             <version>2.3</version>
           </dependency>

           <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-compiler-javac-errorprone</artifactId>
             <version>2.3</version>
           </dependency>
         </dependencies>
     </plugin>

Does anyone know how to solve it?

Regards
Chris


_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user



Back to the top