LoginSignup
5
9

More than 5 years have passed since last update.

Mavenでjarをローカルリポジトリに配置する方法

Posted at

Mavenでjarをローカルリポジトリに配置する方法。

installを使用する。

mvn install:install-file -Dfile={jarファイルのパス} -DgroupId={groupId} -DartifactId={artifactId} -Dversion={version} -Dpackaging=jar -DgeneratePom=true

おまけ

ローカルリポジトリに配置されたjarを使用する。

pomファイルに記述を追加する。

<dependency>
    <groupId>{groupId}</groupId>
    <artifactId>{artifactId}</artifactId>
    <version>{version}</version>
</dependency>
5
9
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
5
9