[prev in list] [next in list] [prev in thread] [next in thread] 

List:       maven-user
Subject:    RE: compile error
From:       <Sasa.Djuric () swisscom ! com>
Date:       2005-10-28 12:50:15
Message-ID: BBC564CE07AC4A41BE25CE2DF5D21A4604F19A61 () sxmbx02 ! corproot ! net
[Download RAW message or body]

put:

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <inherited>true</inherited>
                    <configuration>
                        <source>1.5</source>
                        <target>1.5</target>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>

into your pom. if you have only one pom (ie. no parent project) you
could also use

    <build>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <configuration>
                        <source>1.5</source>
                        <target>1.5</target>
                    </configuration>
                </plugin>
            </plugins>
    </build>

-----Original Message-----
From: Rasconi Luca (u.e.) [mailto:Luca.Rasconi@guest.vtin.it] 
Sent: Friday, October 28, 2005 10:25 AM
To: Maven Users List
Subject: compile error

myfile.java:[11,1] annotations are not supported in -source 1.3

(try -source 1.5 to enable annotations) 

@SuppressWarnings("serial")

 

Executing mvn install i had that error. Where I have to set -source
options? 

I try mvn -source 1.5 compile and mvn compile -source 1.5 and mvn
compiler:compile -Dsource=1.5 and also mvn compiler:compile
-DcompilerVersion=1.5

 

Why annotations doesn't work? 

 

Tnx,

Luca


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic