Creating multiple Maven projects

I am very new to Maven and wondering about creating multiple Maven projects.

We have two Maven projects, Project A and Project B.

Project A depends on the artifact generated by Project B.

When changes to project A or B are marked in SVN, our local Hudson server creates a modified project (and any dependent projects) and uploads artifacts to our local Nexus repository.

Now consider two developers.

Developer 1 hacks only Project A, and when Developer 1 creates Project A locally, Maven sends and receives the last artifact of Project B from our Nexus server.

Developer 2 hacked both project A and project B at the same time. When Developer 2 creates Project A locally, we want maven to create Project B with any local changes and use the resulting artifact to create Project A. How do we configure Maven to create using the local version of Project B instead of getting the artifact from Nexus? Is this a standard usage pattern for Maven?

+3
source share
1 answer

How do we configure Maven to create using the local version of Project B instead of getting the artifact from Nexus?

updatePolicy . , Maven SNAPSHOT . , B , A , SNAPSHOT Nexus. , . ( -o).

PS: AFAIK, Maven 3.x, ( -U).

+3

Source: https://habr.com/ru/post/1757443/


All Articles