码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2016-04-23 18:21:05      阅读:226      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!