LoginSignup
3
3

More than 5 years have passed since last update.

maven でモジュール化するときのコマンド

Posted at

モジュール化するプロジェクトで最初にやること(Eclipse用)

いつも使うので忘れぬようにメモ

ルートプロジェクト作成

mvn -X archetype:generate -DarchetypeGroupId=org.codehaus.mojo.archetypes -DarchetypeArtifactId=pom-root -DarchetypeVersion=RELEASE -DgroupId=[グループID] -DartifactId=[アーティファクトID] -Dversion=[バージョン]

子モジュール作成

mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=RELEASE

eclipse プロジェクト化

子モジュールのディレクトリに移動して

mvn eclipse:eclipse
3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3