首页 > 解决方案 > Maven - do a mvn install on local artifact when packaging

问题描述

i have a maven project which has some local artifacts as dependencies.

When I have to package my main application, i have to do a mvn install command on my local repositories before, which is quite annoying and easy to forget.

Is there a way to tell maven to install local repositories when packaging the main one?

标签: maven

解决方案


一种解决方案是将所有组件包装到一个 pom 项目中。

构建父 pom maven 时会自动触发所有子模块的构建。


推荐阅读