tohokuaikiのチラシの裏

技術的ネタとか。

pom.xmlで依存性jarをローカルに置く方法

  1. pom.xmlに依存性のあるjarを設置する
  2. ${basedir}はpom.xmlのある位置なので、以下の記述をdependenciesに設置する
        <dependency>
            <groupId>jp.co.example.confluence.plugins</groupId>
            <artifactId>example</artifactId>
            <version>1.00.01</version>
            <scope>system</scope>
            <type>jar</type>
            <systemPath>${basedir}\example-1.00.01.jar</systemPath>
         </dependency>