Are you using a compiler other than Sun or IBM? If so, you may have to add
this configuration (or whatever arg is speciific to your compiler):

         <compilerArguments>
           <resouce>1.4</resouce>
         </compilerArguments>

Eric

On 11/ 21/06, jiangshachina <[EMAIL PROTECTED]> wrote:


Hi guys,
My project uses JDK1.5.0, and its new features(e.g. Annotation).
I have set following scripts in pom.xml
<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
                <source>1.5</source>
                <target>1.5</target>
        </configuration>
</plugin>
but when I run "mvn compile", Maven reposted
-resouce 1.4 doesn't support Annotation
What's wrong with the matter?
Thanks in advance!

a cup of Java, cheers!
Sha Jiang
--
View this message in context: http://www.nabble.com/set--
source-1.5--tf2683585s177.html#a7485367
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Eric Redmond
http://codehaus.org/~eredmond

Reply via email to