w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
maven dependency for multi-module project

Just to be clear, if your ServiceModule1 wants to depend on ModelsModule, you can build it in two steps,

$ cd ModelsModule
$ mvn clean install
$ cd ..
$ cd ServiceModule1
$ mvn clean package

Please note install in step2,

In other words, it is not mandatory that all your lib should be in maven central. But it is mandatory that all of them should be in your local repo. install is a goal which can install a lib to your local repo.

Now this link will show you how to install a test jar to your local repo.

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.