How to build self-confidence?

In Maven how can I recursively build -SNAPSHOT dependencies present in the filesystem but outside the reactor?

  • I have two projects as follows, in neighbouring directories on the filesystem: project_a (-SNAPSHOT) project_b (-SNAPSHOT, depends on project_a) I'd like to build project_b and for Maven to discover that project_a exists on the filesystem and thus build it rather than look in the local repo for its artifact. I could build these within an aggregator and use the reactor to select project_b i.e. mvn --projects project_b [goal] However, this is problematic because this two-project example is a simplification of my real build, which consists of dozens of projects, and I don't want to have to maintain an aggregator project that lists all of them. I only want to recursively build -SNAPSHOT dependencies Is there a neat way I could get Maven to perform a recursive build that looks on the filesystem to find -SNAPSHOT dependency projects and builds them?

  • Answer:

    I am not aware of a way to do that with maven directly.

Dan Dudley at Quora Visit the source

Was this solution helpful to you?

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.