Reputation: 405
I have a one module (i.e common module) in this there were multiple packages. I am going to inject common module into another project. I wanted to include/exclude some packages from common module as other project will going to use only few packages from common module. is there any way or maven plugin to exclude packages from module ?
|--common-module
|-- com.parser
|--jsonParser.java
|--xyz.java
|-- com.http
|--RestTemplet.java
Project1 --> include common-module but it should exclude com.parser package
Project2 --> include common-module but it should exclude com.http package
Any input would be highly appreciated
Upvotes: 0
Views: 369
Reputation: 35795
Modules are the smallest unit.
Either you include a module as dependency or you don't.
Upvotes: 1