LoginSignup
5
5

More than 5 years have passed since last update.

プロジェクト内にライブラリのディレクトリを作ってリポジトリとして使う設定

Last updated at Posted at 2013-06-27

mavenのRepositoryに登録されていないライブラリをローカルに配置して使う方法。

  1. プロジェクト内にライブラリを登録するディレクトリを作成する。
  2. リポジトリ配下に、「 localreponame\com\vendor\libname\1.0.0 」というように通常のリポジトリと同じ構成でディレクトリを切る。
  3. ディレクトリ内に.pomや.sha1などの必要なファイルを配置する。
  4. pmm.xmlのリポジトリ定義に以下のように設定追加

<repositories>
    <repository>
        <id>local</id>
        <url>file:${basedir}/m2repo</url>
    </repository>
</repositories>

要はで「file:${basedir}/リポジトリ名」を指定すればいいだけっす。

5
5
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
5