1

Let's say we have a multi-module project parent, module1, module2 where module1 depends on module2.

If I run "mvn test" (not "mvn install"), will module2 sees the changes in module1?

Thanks in advance.

1 Answer 1

1

Yes, it will. Maven maintains cross-module classpath while compiling and testing.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks! I had a "mvn clean test" which failed but "mvn clean install" passed, what could be the possible reasons? :)

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.