why my maven compiling project using java 1.3

2014-04-16T18:52:11

I'm using maven in my projects and my classes does not have any error but when i use mvn compile & package it gives me a various error as below:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler plugin:2.0.2:compile (default-compile) on project cassandra: Compilation failure: Compilation failure: [ERROR] /home/mostafa/idea/clonedatabase/src/main/java/ir/apk/tm/db/cassandra/DB.java:[119,11] generics are not supported in -source 1.3

[ERROR] (use -source 5 or higher to enable generics)

[ERROR] ArrayList List = new ArrayList();

[ERROR] . . . .

and the other errors is saying for-each loops are not supported in -source 1.3 & static import declarations are not supported in -source 1.3 &annotations are not supported in -source 1.3

my java version is 1.6 but i don't know why it is compiling my project using java 1.3 and i using intelliJ

also i set maven jdk and jre version to 1.6

Copyright License:
Author:「Mostafa Jamareh」,Reproduced under the CC 4.0 BY-SA copyright license with link to original source & disclaimer.
Link to:https://stackoverflow.com/questions/23107354/why-my-maven-compiling-project-using-java-1-3

About “why my maven compiling project using java 1.3” questions

I'm using maven in my projects and my classes does not have any error but when i use mvn compile & package it gives me a various error as below: [ERROR] Failed to execute goal org.apache.maven.
We have a large (old) Java servlet project that is still compiled for Java 1.3, we run this code only in our own server with a modern JRE. What is the downside of compiling classes for 1.3 instead...
Right now, am using mvn package exec:java -DskipTests, which will compile my project just fine, and start a server. Instead of restarting the server, if a .java file changes, would like to only re-
I've been developing in Java using maven for a few days now. Today I edited my pom.xml based on these instructions. Suddenly running mvn compile is giving me errors as if I was compiling with an ol...
I am trying to compile a project via maven (2.. version) And get a PACK of errors that looks like (use -source 7 or higher to enable try-with-resources) /home/moonsearch/moonsearch/./site/src/com...
I am trying to get files annotated with lombok.jar to compile with maven 3 using one of the Java 8 early access releases. I have maven configured to use the java 8 compiler. The code that I am com...
I get this error mvn -e package in Ubuntu 12.04: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project HadoopSkeleton: Compilation
I have a Maven project in Java. I am new to all of these concepts. I created a Restful project which works well with a file repository. But I want to change that to a mongo repository. So I added my
I have a scala maven project inside an already available multi module java project in intellij(2012.1.2), intellij not auto compiling the scala project on save. I am not facing this issue for java
I am using maven2 to build the java project, when i issue the command mvn clean install i am getting the error could not parse error message: (use -source 5 or higher to enable generics). In my

Copyright License:Reproduced under the CC 4.0 BY-SA copyright license with link to original source & disclaimer.