java - Maven Build using 1.3 Error -


i trying build java application , getting compilation error below :

[error] /media/disk2/myapp/assignment/src/main/java/helper/helperfunctions.java:[29,16] error: generics not supported in -source 1.3 

but java using 1.7 version, using ubuntu14.04 on mechine. idea how solve this.

java -version java version "1.7.0_76" java(tm) se runtime environment (build 1.7.0_76-b13) java hotspot(tm) 64-bit server vm (build 24.76-b04, mixed mode) 

add below tag in pom.xml

<project>   [...]   <build>     [...]     <plugins>       <plugin>         <groupid>org.apache.maven.plugins</groupid>         <artifactid>maven-compiler-plugin</artifactid>         <configuration>           <!-- or whatever version use -->           <source>1.7</source>           <target>1.7</target>         </configuration>       </plugin>     </plugins>     [...]   </build>   [...] </project> 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -