---
title: "maven 设置Jdk 版本编译"
author: "chzhxu"
date: "2017-06-30T12:59:27Z"
tags: []
categories: ["开源软件"]
slug: "maven-jdk"
draft: false
lastmod: "2017-06-30T12:59:27Z"
id: 2382235
url: "https://gangling.iteye.com/blog/2382235"
---

**pom.xml**


```xml

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.3</version>
        <configuration>
          <source>1.7</source>
          <target>1.7</target>
          <!--<compilerArgs>-->
            <!--<arg>-Xlint:unchecked</arg>-->
            <!--<arg>-Xlint:deprecation </arg>-->
          <!--</compilerArgs>-->
          <encoding>UTF-8</encoding>
        </configuration>
      </plugin>

```