简体   繁体   中英

In maven multimodule project is it recommended to use package or install

I have a maven multimodule project

<modules>
 <module>A</module>
 <module>B</module>
 <module>C</module>
</modules>

Module C depends on Module A. In this project structure can you let me know it is recommended to use package or install. I do not have any other requirement to share this project with other projects.

When launching a Maven command on multiple modules, if a dependency specified in one module is available as a project being built in the same command, Maven will use the output of the current build as dependency, instead of the JAR present in the local repository.

So it is not necessary to use install to make the changes of a module available to modules depending on it, as long as these modules are always built together.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM