---
title: "maven 打包的问题"
author: "eric_wyf"
date: "2011-09-21T20:20:39Z"
tags: []
categories: ["互联网"]
slug: "maven"
draft: false
lastmod: "2011-09-21T20:21:15Z"
id: 1177335
url: "https://eric-wyf.iteye.com/blog/1177335"
---

如果package出现--source1.3 的类似问题，那么在pom.xml中加入如下插件配置：

 

&lt;build&gt;  
    &lt;plugins&gt;  
      &lt;plugin&gt;  
        &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;  
        &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;  
        &lt;configuration&gt;  
          &lt;source&gt;1.5&lt;/source&gt;  
          &lt;target&gt;1.5&lt;/target&gt;  
        &lt;/configuration&gt;  
      &lt;/plugin&gt;  
    &lt;/plugins&gt;  
  &lt;/build&gt;