简体   繁体   中英

Maven test lifecycle in a multi-module project

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM