---
title: "MAVEN管理JAR包"
author: "dingbuoyi"
date: "2010-11-26T09:39:07Z"
tags: ["Apache", "Java", "XML", "maven", "项目管理"]
categories: ["编程语言"]
slug: "maven-jar"
draft: false
lastmod: "2010-11-26T09:40:34Z"
id: 825157
url: "https://dingbuoyi.iteye.com/blog/825157"
---

1 新建一个MAVEN项目 2 pom.xml \[code="java"] 4.0.0 org.dean test 0.0.1-SNAPSHOT jar test http://maven.apache.org UTF-8 commons-lang commons-lang 2.1 org.codehaus.plexus plexus-utils 1.1 org.apache.maven.plugins maven-jar-plugin test.Shuzu true false test \[/code] 3 pom.xml目录下运行 mvn jar:jar 4 运行 java -jar test.jar 会打印MAIN CLASS 更多请看http://maven.apache.org/plugins/maven-jar-plugin/plugin-info.html