I was able to fix this issue by adding *<target>1.5</target> *to pom.xml.
On Wed, Jun 18, 2008 at 12:02 AM, Ashish Jain <[EMAIL PROTECTED]> wrote: > Hi, > I am using JAXB to compile geronimo schemas. My environment is sun java > 1.5.0_13 and maven 2.0.7. BTW I am referring > https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-279. I hit > following error: > > C:\testrepo>mvn clean compile > [INFO] Scanning for projects... > [INFO] > ------------------------------------------------------------------------- > --- > [INFO] Building mytest > [INFO] task-segment: [clean, compile] > [INFO] > ------------------------------------------------------------------------- > --- > [INFO] [clean:clean] > [INFO] Deleting directory C:\testrepo\target > [INFO] [jaxb:generate {execution: default}] > [INFO] Compiling file:/C:/testrepo/src/main/resources/attributes-1.2.xsd > and oth > ers > [INFO] Writing output to C:\testrepo\target\generated-sources\xjc > [INFO] [resources:resources] > [INFO] Using default encoding to copy filtered resources. > [INFO] [compiler:compile] > [INFO] Compiling 156 source files to C:\testrepo\target\classes > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Compilation failure > Failure executing javac, but could not parse the error: > javac: source release 1.5 requires target release 1.5 > > > > Failure executing javac, but could not parse the error: > javac: source release 1.5 requires target release 1.5 > > > [INFO] > ------------------------------------------------------------------------ > [INFO] For more information, run Maven with the -e switch > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 9 seconds > [INFO] Finished at: Tue Jun 17 23:53:38 IST 2008 > [INFO] Final Memory: 5M/10M > [INFO] > ------------------------------------------------------------------------ > > > Thanks > Ashish >
