maven - 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?
解决方案
一种解决方案是将所有组件包装到一个 pom 项目中。
构建父 pom maven 时会自动触发所有子模块的构建。
推荐阅读
- node.js - 计算弹性搜索中两点之间的距离
- python - Heroku / Python / Dash 的新手:如何定义数据即应用程序的架构(使用 excel 文件)
- python - 如何在 Python 中的 map 中编写指令?
- wordpress - 一段时间后如何自动关闭wordpress页面?
- typescript - 在Typescript中从对象数组到对象对象
- linux - 使用 python 读取文件在 Linux 中无法正常工作
- delphi - E2010 不兼容的类型:“System.Rtti.T”和“MyInterfaceImpl.T”泛型
- python - MaxProductOfThree 如何提高性能
- apache - Drupal 主页在 Chrome 中以 ERR_EMPTY_RESPONSE 响应
- php - 没有输出并且不起作用当我在 phpunit 测试中运行 [Artisan::call(...)] 或 [shell_exec(...)] 时,但是当不在 phpunit 中时,没关系