---
title: "maven 里 assembly 和 package 打包的区别"
author: "successfulroof"
date: "2012-02-15T10:42:58Z"
tags: []
categories: ["企业架构"]
slug: "maven-assembly-package"
draft: false
lastmod: "2012-02-15T10:42:58Z"
id: 1407013
url: "https://fucky.iteye.com/blog/1407013"
---

They are quite different. 'package' is a simple command used for simple/single projects where you only have to create a jar/war.

 

The [assembly plugin](http://maven.apache.org/plugins/maven-assembly-plugin/) is much more powerful, and can be used to create full distribution packages for large projects. This can be just a simple jar file, but it can also be a large distribution archive for your project, including source code, documentation, etc. You configure what the assembly should look like by means of an XML file called the assembly descriptor.

 

 

看了上面你应该大概了解！