문제

Suppose we have a multimodule project:

<modules>
  <module>first</module>
  <module>second</module>
</modules>

where second depends on first through dependencies.

If I run mvn cleanpackage, does maven or reactor will put any of the modules to local repo anyway?

도움이 되었습니까?

해결책

The answer is no.

Here are the maven lifecycle phases

As you can see, package comes before install, so install wont be executed - nothing will go to your local repo, unless it was there already.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top