Hello,

I want to use "mvn install" with maven-pde-plugin for a pde-feature. In
the plugin-source-files I'm using annotations. To set the source- and
target-level to 1.5 I use the following in the plugins and features
pom.xml:

[...]
<plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>pde-maven-plugin</artifactId>
        <extensions>true</extensions>
        <configuration>
                <eclipseInstall>
                        C:\Programme\eclipse
                </eclipseInstall>
                <configuration>
                        <source>1.5</source>
                        <target>1.5</target>
                </configuration>
        </configuration>
</plugin>
[...]

The single plugin is compiling fine, but creating the feature shows me
this error, when the plugin is compiled:

[...]
@dot:
    [mkdir] Created dir: [EMAIL PROTECTED]
    [javac] Compiling 10 source files to [EMAIL PROTECTED]
    [javac] ----------
    [javac] 1. ERROR in ... .java (at line 24)
    [javac]     @Override
    [javac]     ^^^^^^^^^
    [javac] Syntax error, annotations are only available if source level
    is 5.0
    [javac] ----------
[...]

How can I say, that creating the feature should compile with source- and
target-level 1.5?

regards,
Peter

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to