首页 > 其他 > 详细

关于maven:调整你的maven的jdk版本为 xxxx

时间:2016-04-23 18:18:02      阅读:133      评论:0      收藏:0      [点我收藏+]

找到你的.m2文件 在里面添加一下信息

实例  将其更改成1.7

<profiles>

 

                  <profile>

                          <id>jdk-1.7</id>

                          <!-- 另外一种激活方式 -->

                          <activation>

                                   <activeByDefault>true</activeByDefault>

                                   <jdk>1.7</jdk>

                          </activation>

                          <properties>

                                   <maven.compiler.source>1.7</maven.compiler.source>

                                   <maven.compiler.target>1.7</maven.compiler.target>

                                   <maven.compiler.compilerVersion>1.7</maven.compiler.compilerVersion>

                          </properties>

 

                  </profile>技术分享

<profiles>

 

                  <profile>

                          <id>jdk-1.7</id>

                          <!-- 另外一种激活方式 -->

                          <activation>

                                   <activeByDefault>true</activeByDefault>

                                   <jdk>1.7</jdk>

                          </activation>

                          <properties>

                                   <maven.compiler.source>1.7</maven.compiler.source>

                                   <maven.compiler.target>1.7</maven.compiler.target>

                                   <maven.compiler.compilerVersion>1.7</maven.compiler.compilerVersion>

                          </properties>

                  </profile>

关于maven:调整你的maven的jdk版本为 xxxx

原文:http://www.cnblogs.com/fujilong/p/5425088.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!