Build path specifies execution environment J2SE-1.5. There are no JREs installed in the workspace that are strictly compatible with this environment.
新建maven2工程时,会自动将jre library指向为j2se-1.5,而不是我安装的jdk1.6,
在java build path 中奖j2se-1.5移除掉又选择jdk1.6后,右键项目maven -》update
project..又把我的jdk改成了1.5.
后来更改maven 的pom文件才解决这一问题:
<build>
<finalName>MavenProject</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>
分享到:
相关推荐
maven-javanet-plugin-1.5.jar
maven-cruisecontrol-plugin-1.5.jar
赠送jar包:xz-1.5.jar; 赠送原API文档:xz-1.5-javadoc.jar; 赠送源代码:xz-1.5-sources.jar; 赠送Maven依赖信息文件:xz-1.5.pom; 包含翻译后的API文档:xz-1.5-javadoc-API文档-中文(简体)-英语-对照版.zip...
maven-maven-plugin-1.5-sources.jar
maven-jxr-plugin-1.5.jar
1)将文件放入libs后,在gradle文件里加入implementation files('libs/commons-email-1.5.jar') 2)android收发邮件会要求引入此jar包
maven-maven-plugin-1.5.jar
maven-invoker-plugin-1.5.jar
commons-codec-1.5-javadoc.jar
maven-wadl-plugin-1.5-sources.jar
maven-scm-plugin-1.5-sources.jar
maven-pax-plugin-1.5-sources.jar
maven-junit-plugin-1.5-sources.jar
maven-junithelper-plugin-1.5-sources.jar
maven-jomc-plugin-1.5-sources.jar
maven-jomc-plugin-1.5-site.jar
maven-jomc-plugin-1.5-project.jar
maven-hpi-plugin-1.5-sources.jar
maven-graph-plugin-1.5-sources.jar
maven-ejc-plugin-1.5-sources.jar