I have a set of applications, all use Maven and the local repository. The applications form a dependency tree using <dependency>
in their pom.xml
. All of these projects have -SNAPSHOT
in their version.
Is it possible for Maven (or some compatible dependency manager) to build an application together with all of its local dependencies whose source changed?
I do not want to create a multi-module project, because:
- the projects are exactly libraries, not modules;
- I do not want an additional complexity just to have a form of build which is already precisely defined;
- I want the process to be dynamic: if a library is mature enough to be put into a remote repository, it would be no more rebuilt with the main project and that's ok.
For now, there is a lot of refactoring, moving code from one library to another etc. and it happens often that substantial parts of the dependency tree need to be rebuilt. I thus need to manually write mvn install
in several projects in order to assure that there is no stale code.
question from:
https://stackoverflow.com/questions/66067002/does-build-with-local-dependencies-exist-in-maven-without-multi-module 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…