Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Choosing the Compiler Version

I am trying to force the compiler to use version Java 1.4

I have tried

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <source>1.4</source>
                    <target>1.4</target>
                </configuration>
            </plugin>

and
            <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>tycho-compiler-plugin</artifactId>
                <version>${tychoVersion}</version>
                <configuration>
                    <compilerVersion>1.4</compilerVersion>
                </configuration>
            </plugin>

When I use the tycho-compiler-plugin, I can see in the debugging console that the compiler is being set but I don't think it is using 1.4. 

I have used generics in a class that is part of the build and the build runs fine where I expect it to fail because 1.4 does not support generics.  How can I get Tycho to use Java 1.4?

David

Back to the top