hi Chris, I think you didnt't properly configured the compiler plugin. below an extract pom.xml file
<build> ... <plugins> .. <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> </plugins> </build> Regards 2010/5/26 Meeusen, Christopher W. <meeusen.christop...@mayo.edu> > Hi, > > > > I'm brand new to maven, read through a few books, and built a simple > maven project to produce a .jar. I've installed the m2ecplipse pugin > and have got it to work properly on a few simple projects. Now I'm > having an issue when I try to build a more complex project, which > requires at least java 1.5 (because it uses enums and other things). > When I build my project I get a clean build, however when I try to do > Run As > Maven package I get the following errors in the console: > > > > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile > (default-compile) on project wsaxisM: Compilation failure: Compilation > failure: > > C:\my_clearcase_views\m042872_view\MICS-Team\DIOS\Web > Service\wsaxis2_m\src\main\java\edu\mayo\util\VTInfoType.java:[10,7] > enums are not supported in -source 1.3 > > (use -source 5 or higher to enable enums) > > public enum VTInfoType > > > > I get similar errors for annotations and generics. Anyone know what > might be going on? Please help a maven newb! > > > > Thanks, > > Chris > > -- Zayen Fradj Ingénieur Informaticien Sun Certified Programmer