Re: Error while compiling : annotations are not supported in -source 1.3
I am now running Maven 3 . and the mvn compile is successful . Hence It's got something to do with my lack of provisioning for Maven 2 However I am still getting another error when I tried to run the main class with Derby(with your suggestion on persistence taken into account) . I am making a new Post on that regard, as Its a different command. -- View this message in context: http://maven.40175.n5.nabble.com/Error-while-compiling-annotations-are-not-supported-in-source-1-3-tp3343153p3364438.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Error while compiling : annotations are not supported in -source 1.3
Wayne Fay wrote: 1. I made some changes in the pom.xml (indicated in Bold). This list strips HTML and RTF so no one can see your bold text. 2. I ran mvn help:effective-pom and this is what I got OK... but what happens (now) when you run mvn compile? I assume you are running all of this from the command line, and not from Eclipse etc, right? Yes .I ran it from the command line .. not IDE. I 'm still getting the same old error when I run mvn compile . http://maven.40175.n5.nabble.com/file/n3347809/compile.jpg I have uploaded my project file here in Rapishare http://rapidshare.com/files/443396415/je.zip http://rapidshare.com/files/443396415/je.zip . If possible , pls Run it from your Computer . May be the error detection will be easier then. I'm seeing stars . I've been in this stage since 2 months now!!! So pls help. -- View this message in context: http://maven.40175.n5.nabble.com/Error-while-compiling-annotations-are-not-supported-in-source-1-3-tp3343153p3347809.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Error while compiling : annotations are not supported in -source 1.3
I have uploaded my project file here in Rapishare http://rapidshare.com/files/443396415/je.zip . If possible , pls Run it from your Computer . May be the error detection will be easier then. I downloaded your project and ran it. The only failure I encountered was related to a missing dependency that was causing all of your javax.persistence references to fail. I added the following to the chapter02/pom.xml file: dependency groupIdjavax.persistence/groupId artifactIdpersistence-api/artifactId version1.0/version /dependency and poof, everything worked just fine. I don't know what is causing your problems with the compiler etc, but try adding this dependency and see if things work a little better for you. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Error while compiling : annotations are not supported in -source 1.3
Wayne Fay wrote: I have uploaded my project file here in Rapishare http://rapidshare.com/files/443396415/je.zip . If possible , pls Run it from your Computer . May be the error detection will be easier then. I downloaded your project and ran it. The only failure I encountered was related to a missing dependency that was causing all of your javax.persistence references to fail. I added the following to the chapter02/pom.xml file: dependency groupIdjavax.persistence/groupId artifactIdpersistence-api/artifactId version1.0/version /dependency and poof, everything worked just fine. I don't know what is causing your problems with the compiler etc, but try adding this dependency and see if things work a little better for you. Wayne Wow .Thats so great of u to do that much..Far too kind!! ,ay I know which Version of Maven r u using ? U know what Wayne . When I removed Maven 2 and used maven 3 .. I met with the same error of missing dependency. Now This is what I'm gonna do : Remove Maven 2 completely and run it with maven 3 and of course apply the change that u suggest. Thanks a lot -- View this message in context: http://maven.40175.n5.nabble.com/Error-while-compiling-annotations-are-not-supported-in-source-1-3-tp3343153p3349080.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Error while compiling : annotations are not supported in -source 1.3
From what I could comprehend so far : 1. I made some changes in the pom.xml (indicated in Bold). project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd; modelVersion4.0.0/modelVersion groupIdorg.beginningee6.book/groupId artifactIdchapters/artifactId version2.0/version packagingpom/packaging nameChapters Parent/name descriptionRoot pom.xml for all the chapters' code/description modules modulechapter02/module /modules properties derby-version10.6.2.1/derby-version eclipselink-version2.1.2/eclipselink-version javax.persistence-version2.0.0/javax.persistence-version glassfish-version3.0.1-b20/glassfish-version grizzly-version1.8.6.3/grizzly-version jaxb-version2.1.10/jaxb-version jaxws-version2.2/jaxws-version jaxrs-version1.1.1/jaxrs-version jersey-version1.2/jersey-version jsf-version2.0/jsf-version junit-version4.8.2/junit-version plugin-jar-version2.3.1/plugin-jar-version plugin-war-version2.1.1/plugin-war-version plugin-maven-processor1.3.5/plugin-maven-processor !--plugin-maven-compiler2.3.2/plugin-maven-compiler-- plugin-maven-jaxws1.10/plugin-maven-jaxws xmlunit-version1.2/xmlunit-version project.build.sourceEncodingUTF-8/project.build.sourceEncoding project.reporting.outputEncodingUTF-8/project.reporting.outputEncoding /properties dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version${junit-version}/version scopetest/scope /dependency /dependencies repositories !--repository-- !--idmaven-repository.dev.java.net/id-- !--nameJava.net Repository for Maven 1/name-- !--urlhttp://download.java.net/maven/1/url-- !--layoutlegacy/layout-- !--/repository-- repository idmaven2-repository.dev.java.net/id nameJava.net Repository for Maven 2/name urlhttp://download.java.net/maven/2/url layoutdefault/layout /repository repository idglassfish-maven-repository.dev.java.net/id nameGlassFish Maven Repository/name urlhttp://download.java.net/maven/glassfish/url /repository repository idEclipseLink Repo/id nameEclipse maven repository http://eclipse.ialto.org/rt/eclipselink/maven.repo//name urlhttp://mirror.csclub.uwaterloo.ca/eclipse/rt/eclipselink/maven.repo//url /repository repository idEclipseLink Ialto Repo/id nameEclipse maven http://eclipse.ialto.com/rt/eclipselink/maven.repo//name urlhttp://www.eclipse.org/downloads/download.php?r=1amp;nf=1amp;file=/rt/eclipselink/maven.repo/url /repository !--repository-- !--idApache Repo/id-- !--nameApache repository for Derby/name-- !--urlhttp://people.apache.org/repo/m1-ibiblio-rsync-repository/url-- !--layoutlegacy/layout-- !--/repository-- /repositories pluginRepositories pluginRepository idmaven2-repository.dev.java.net/id urlhttp://download.java.net/maven/2/url /pluginRepository pluginRepository idmaven-annotation-plugin/id urlhttp://maven-annotation-plugin.googlecode.com/svn/trunk/mavenrepo/url /pluginRepository /pluginRepositories build pluginManagement plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId version2.3.2/version configuration source1.6/source target1.6/target /configuration /plugin /plugins /pluginManagement /build /project ---End Of pom.xml 2. I ran mvn help:effective-pom and this is what I got c:\jemvn help:effective-pom [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] chapter02 [INFO] Chapters Parent [INFO] Searching repository for plugin with prefix: 'help'. [INFO] [INFO] Building Chapters Parent [INFO]task-segment: [help:effective-pom] (aggregator-style) [INFO] [INFO] [help:effective-pom {execution: default-cli}] [INFO] Effective POMs, after inheritance, interpolation, and profiles are applied: ?xml version=1.0 encoding=UTF-8? !-- == --
Re: Error while compiling : annotations are not supported in -source 1.3
1. I made some changes in the pom.xml (indicated in Bold). This list strips HTML and RTF so no one can see your bold text. 2. I ran mvn help:effective-pom and this is what I got OK... but what happens (now) when you run mvn compile? I assume you are running all of this from the command line, and not from Eclipse etc, right? Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Error while compiling : annotations are not supported in -source 1.3
What does your Java home point to? Do you have Java 1.3 installed somewhere? Are you running Maven in an IDE? If you type mvn -version what prints out. Ron On 16/01/2011 1:11 AM, ankured182 wrote: Hi . I'm getting this Error annotations are not supported in -source 1.3 while trying to compile a Java EE project which has a simple entity that uses JPA , from the root file je(which has the pom.xml) . I'm using MAven 2.2.1 . Its obvious that Maven not detecting the JAVA 6. In many forums that I went through that addressed this issue, the problem seemed to have been solved by adding: configuration source1.6/source target1.6/target /configuration My pom.xml has this included already, but I'm still getting that error. : This is the ScreenShot of my command screen: http://maven.40175.n5.nabble.com/file/n3343153/mvn.jpg This is my pom.xml: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd; modelVersion4.0.0/modelVersion groupIdorg.beginningee6.book/groupId artifactIdchapters/artifactId version2.0/version packagingpom/packaging nameChapters Parent/name descriptionRoot pom.xml for all the chapters' code/description modules modulechapter02/module /modules properties derby-version10.6.2.1/derby-version eclipselink-version2.1.2/eclipselink-version javax.persistence-version2.0.0/javax.persistence-version glassfish-version3.0.1-b20/glassfish-version grizzly-version1.8.6.3/grizzly-version jaxb-version2.1.10/jaxb-version jaxws-version2.2/jaxws-version jaxrs-version1.1.1/jaxrs-version jersey-version1.2/jersey-version jsf-version2.0/jsf-version junit-version4.8.2/junit-version plugin-jar-version2.3.1/plugin-jar-version plugin-war-version2.1.1/plugin-war-version plugin-maven-processor1.3.5/plugin-maven-processor plugin-maven-compiler2.3.2/plugin-maven-compiler plugin-maven-jaxws1.10/plugin-maven-jaxws xmlunit-version1.2/xmlunit-version project.build.sourceEncodingUTF-8/project.build.sourceEncoding project.reporting.outputEncodingUTF-8/project.reporting.outputEncoding /properties dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version${junit-version}/version scopetest/scope /dependency /dependencies repositories !--repository-- !--idmaven-repository.dev.java.net/id-- !--nameJava.net Repository for Maven 1/name-- !--urlhttp://download.java.net/maven/1/url-- !--layoutlegacy/layout-- !--/repository-- repository idmaven2-repository.dev.java.net/id nameJava.net Repository for Maven 2/name urlhttp://download.java.net/maven/2/url layoutdefault/layout /repository repository idglassfish-maven-repository.dev.java.net/id nameGlassFish Maven Repository/name urlhttp://download.java.net/maven/glassfish/url /repository repository idEclipseLink Repo/id nameEclipse maven repository http://eclipse.ialto.org/rt/eclipselink/maven.repo//name urlhttp://mirror.csclub.uwaterloo.ca/eclipse/rt/eclipselink/maven.repo//url /repository repository idEclipseLink Ialto Repo/id nameEclipse maven http://eclipse.ialto.com/rt/eclipselink/maven.repo//name urlhttp://www.eclipse.org/downloads/download.php?r=1amp;nf=1amp;file=/rt/eclipselink/maven.repo/url /repository !--repository-- !--idApache Repo/id-- !--nameApache repository for Derby/name-- !--urlhttp://people.apache.org/repo/m1-ibiblio-rsync-repository/url-- !--layoutlegacy/layout-- !--/repository-- /repositories pluginRepositories pluginRepository idmaven2-repository.dev.java.net/id urlhttp://download.java.net/maven/2/url /pluginRepository pluginRepository idmaven-annotation-plugin/id urlhttp://maven-annotation-plugin.googlecode.com/svn/trunk/mavenrepo/url /pluginRepository /pluginRepositories build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId version${plugin-maven-compiler}/version inheritedtrue/inherited configuration source1.6/source target1.6/target /configuration /plugin
Re: Error while compiling : annotations are not supported in -source 1.3
Ron Thanks for the reply. I'm not running it in any IDE . straight from the command shell. No other Java versions running I guess, other than 1.6.0_22. and its Maven 2.2.1. http://maven.40175.n5.nabble.com/file/n3343936/maven2.jpg -- View this message in context: http://maven.40175.n5.nabble.com/Error-while-compiling-annotations-are-not-supported-in-source-1-3-tp3343153p3343936.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Error while compiling : annotations are not supported in -source 1.3
I'm not running it in any IDE . straight from the command shell. No other Java versions running I guess, other than 1.6.0_22. and its Maven 2.2.1. Check what mvn help:effective-pom says when you run that from your project directory. Perhaps there is another compiler configuration that is being applied and you just don't even realize it? Also, why do you have the plugin-maven-compiler as a property instead of simply putting it directly in the plugin/ node? It seems like a bit of unnecessary indirection. I'd say the same thing about your other plugin versions that are listed as properties. You should use pluginManagement for this purpose. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Error while compiling : annotations are not supported in -source 1.3
Hi . I'm getting this Error annotations are not supported in -source 1.3 while trying to compile a Java EE project which has a simple entity that uses JPA , from the root file je(which has the pom.xml) . I'm using MAven 2.2.1 . Its obvious that Maven not detecting the JAVA 6. In many forums that I went through that addressed this issue, the problem seemed to have been solved by adding: configuration source1.6/source target1.6/target /configuration My pom.xml has this included already, but I'm still getting that error. : This is the ScreenShot of my command screen: http://maven.40175.n5.nabble.com/file/n3343153/mvn.jpg This is my pom.xml: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd; modelVersion4.0.0/modelVersion groupIdorg.beginningee6.book/groupId artifactIdchapters/artifactId version2.0/version packagingpom/packaging nameChapters Parent/name descriptionRoot pom.xml for all the chapters' code/description modules modulechapter02/module /modules properties derby-version10.6.2.1/derby-version eclipselink-version2.1.2/eclipselink-version javax.persistence-version2.0.0/javax.persistence-version glassfish-version3.0.1-b20/glassfish-version grizzly-version1.8.6.3/grizzly-version jaxb-version2.1.10/jaxb-version jaxws-version2.2/jaxws-version jaxrs-version1.1.1/jaxrs-version jersey-version1.2/jersey-version jsf-version2.0/jsf-version junit-version4.8.2/junit-version plugin-jar-version2.3.1/plugin-jar-version plugin-war-version2.1.1/plugin-war-version plugin-maven-processor1.3.5/plugin-maven-processor plugin-maven-compiler2.3.2/plugin-maven-compiler plugin-maven-jaxws1.10/plugin-maven-jaxws xmlunit-version1.2/xmlunit-version project.build.sourceEncodingUTF-8/project.build.sourceEncoding project.reporting.outputEncodingUTF-8/project.reporting.outputEncoding /properties dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version${junit-version}/version scopetest/scope /dependency /dependencies repositories !--repository-- !--idmaven-repository.dev.java.net/id-- !--nameJava.net Repository for Maven 1/name-- !--urlhttp://download.java.net/maven/1/url-- !--layoutlegacy/layout-- !--/repository-- repository idmaven2-repository.dev.java.net/id nameJava.net Repository for Maven 2/name urlhttp://download.java.net/maven/2/url layoutdefault/layout /repository repository idglassfish-maven-repository.dev.java.net/id nameGlassFish Maven Repository/name urlhttp://download.java.net/maven/glassfish/url /repository repository idEclipseLink Repo/id nameEclipse maven repository http://eclipse.ialto.org/rt/eclipselink/maven.repo//name urlhttp://mirror.csclub.uwaterloo.ca/eclipse/rt/eclipselink/maven.repo//url /repository repository idEclipseLink Ialto Repo/id nameEclipse maven http://eclipse.ialto.com/rt/eclipselink/maven.repo//name urlhttp://www.eclipse.org/downloads/download.php?r=1amp;nf=1amp;file=/rt/eclipselink/maven.repo/url /repository !--repository-- !--idApache Repo/id-- !--nameApache repository for Derby/name-- !--urlhttp://people.apache.org/repo/m1-ibiblio-rsync-repository/url-- !--layoutlegacy/layout-- !--/repository-- /repositories pluginRepositories pluginRepository idmaven2-repository.dev.java.net/id urlhttp://download.java.net/maven/2/url /pluginRepository pluginRepository idmaven-annotation-plugin/id urlhttp://maven-annotation-plugin.googlecode.com/svn/trunk/mavenrepo/url /pluginRepository /pluginRepositories build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId version${plugin-maven-compiler}/version inheritedtrue/inherited configuration source1.6/source target1.6/target /configuration /plugin /plugins /build /project -- View this message in context: http://maven.40175.n5.nabble.com/Error-while-compiling-annotations-are-not-supported-in-source-1-3-tp3343153p3343153.html Sent from the Maven - Users mailing list archive at
Re: Error while compiling : annotations are not supported in -source 1.3
Possibly you need to move the compiler plugin configuration to pluginManagement. Just take what you have (do remove the inherited element though), but put it in pluginManagement. /Anders On Sun, Jan 16, 2011 at 07:11, ankured182 ankured...@yahoo.com wrote: Hi . I'm getting this Error annotations are not supported in -source 1.3 while trying to compile a Java EE project which has a simple entity that uses JPA , from the root file je(which has the pom.xml) . I'm using MAven 2.2.1 . Its obvious that Maven not detecting the JAVA 6. In many forums that I went through that addressed this issue, the problem seemed to have been solved by adding: configuration source1.6/source target1.6/target /configuration My pom.xml has this included already, but I'm still getting that error. : This is the ScreenShot of my command screen: http://maven.40175.n5.nabble.com/file/n3343153/mvn.jpg This is my pom.xml: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd; modelVersion4.0.0/modelVersion groupIdorg.beginningee6.book/groupId artifactIdchapters/artifactId version2.0/version packagingpom/packaging nameChapters Parent/name descriptionRoot pom.xml for all the chapters' code/description modules modulechapter02/module /modules properties derby-version10.6.2.1/derby-version eclipselink-version2.1.2/eclipselink-version javax.persistence-version2.0.0/javax.persistence-version glassfish-version3.0.1-b20/glassfish-version grizzly-version1.8.6.3/grizzly-version jaxb-version2.1.10/jaxb-version jaxws-version2.2/jaxws-version jaxrs-version1.1.1/jaxrs-version jersey-version1.2/jersey-version jsf-version2.0/jsf-version junit-version4.8.2/junit-version plugin-jar-version2.3.1/plugin-jar-version plugin-war-version2.1.1/plugin-war-version plugin-maven-processor1.3.5/plugin-maven-processor plugin-maven-compiler2.3.2/plugin-maven-compiler plugin-maven-jaxws1.10/plugin-maven-jaxws xmlunit-version1.2/xmlunit-version project.build.sourceEncodingUTF-8/project.build.sourceEncoding project.reporting.outputEncodingUTF-8/project.reporting.outputEncoding /properties dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version${junit-version}/version scopetest/scope /dependency /dependencies repositories !--repository-- !--idmaven-repository.dev.java.net/id-- !--nameJava.net Repository for Maven 1/name-- !--urlhttp://download.java.net/maven/1/url-- !--layoutlegacy/layout-- !--/repository-- repository idmaven2-repository.dev.java.net/id nameJava.net Repository for Maven 2/name urlhttp://download.java.net/maven/2/url layoutdefault/layout /repository repository idglassfish-maven-repository.dev.java.net/id nameGlassFish Maven Repository/name urlhttp://download.java.net/maven/glassfish/url /repository repository idEclipseLink Repo/id nameEclipse maven repository http://eclipse.ialto.org/rt/eclipselink/maven.repo//name urlhttp://mirror.csclub.uwaterloo.ca/eclipse/rt/eclipselink/maven.repo/ /url /repository repository idEclipseLink Ialto Repo/id nameEclipse maven http://eclipse.ialto.com/rt/eclipselink/maven.repo//name url http://www.eclipse.org/downloads/download.php?r=1nf=1file=/rt/eclipselink/maven.repo /url /repository !--repository-- !--idApache Repo/id-- !--nameApache repository for Derby/name-- !--urlhttp://people.apache.org/repo/m1-ibiblio-rsync-repository /url-- !--layoutlegacy/layout-- !--/repository-- /repositories pluginRepositories pluginRepository idmaven2-repository.dev.java.net/id urlhttp://download.java.net/maven/2/url /pluginRepository pluginRepository idmaven-annotation-plugin/id urlhttp://maven-annotation-plugin.googlecode.com/svn/trunk/mavenrepo /url /pluginRepository /pluginRepositories build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId version${plugin-maven-compiler}/version inheritedtrue/inherited configuration source1.6/source target1.6/target /configuration /plugin /plugins /build