---
title: "常用maven创建项目骨架命令"
author: "wolfcame"
date: "2012-02-03T16:14:01Z"
tags: []
categories: ["开源软件"]
slug: "maven"
draft: false
lastmod: "2012-09-25T16:52:40Z"
id: 1392280
url: "https://wolfcame.iteye.com/blog/1392280"
---

创建一般的maven工程骨架
mvn archetype:create -DgroupId=cn.xxx -DartifactId=myApp -Dpackage=cn.xxx

创建一般的maven web工程骨架
mvn archetype:create -DgroupId=com.xxx -DartifactId=myweb -Dpackage=cn.xxx -DarchetypeArtifactId=maven-archetype-webapp 



```java

mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes -DgroupId=cn.xxx.helloworld -DartifactId=helloworld

```