---
title: さくっとmaven-archetypeプロジェクトを作る
tags: []
categories: ["Programming", "Java", "Maven"]
date: 2012-02-13T12:53:17Z
updated: 2012-02-13T12:53:17Z
---

メモ

[archetype:create-from-project][1]を使うとらくちん。

雛形プロジェクトを作成して、
    
    $ mvn archetype:create-from-project

とすれば`target/generated-sources/archetype`にarchetypeプロジェクトが作成される。

あとはこのフォルダの内容の設定をいくつか変えればおｋ。$等、Velocityの予約文字もエスケープしてくれる。

ただし勝手にgroupIdに合致する文字列を`${groupId}`に置換しちゃうので注意。





  [1]: http://maven.apache.org/archetype/maven-archetype-plugin/create-from-project-mojo.html
