jarファイルがmavenレポジトリに公開されていないことってありますよね(あるのか?)
そういう時は適当なディレクトリにjarファイルを置いておいて
<dependencies> <dependency> <groupId>com.example</groupId> <artifactId>example-artifact</artifactId> <version>1.0.0</version> <scope>system</scope> <systemPath>${project.basedir}/libs/example-artifact-1.0.0.jar</systemPath> </dependency> </dependencies>
をpom.xmlに書いておけばok
ただしこの方法は推奨されていないらしい