maven中的编译错误

Din*_*i88 -3 java intellij-idea maven java-7

当我使用maven构建项目时出现以下错误.我正在使用jdk 1.7.0_03,但它告诉我如下.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project sample: Compilation failure: Compilation failure:

[ERROR] /home/dinithi/Training/Practise/Carbon_Assignment/LibrarySystem/Components/src/main/java/com/wso2/carbon/library/sample/LibraryManager.java:[11,7] error: generics are not supported in -source 1.3
Run Code Online (Sandbox Code Playgroud)

我在我的代码中使用HashMap如下.

Map<String,Book> books=new HashMap<String,Book>();
Run Code Online (Sandbox Code Playgroud)

有人可以帮我解决这个错误.

PS我正在使用intellij idea作为我的IDE.

Con*_*ion 6

将源元素添加(或更改)为插件配置:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>3.1</version>
    <configuration>
      <source>1.5</source>
      <target>1.5</target>
    </configuration>
  </plugin>
Run Code Online (Sandbox Code Playgroud)