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
Post a Comment