1

I have 5 projects in my workspace, 2 of them are core projects and 3 are implementing these core projects.

Core Projects:

  • OnlineToolCore
  • OnlineToolCoreImpl

Implementing Tool Projects:

  • ToolAImpl
  • ToolBImpl
  • ToolCImpl

I want the possibility that if I build ToolAImpl, that OnlineToolCore and OnlineToolCoreImpl are also builded before without building ToolBImpl and ToolCImpl.

The same for ToolB: Core but not ToolA and ToolC. And for ToolC: Core but not ToolA and ToolB

How can I achieve this?

Tunaki
  • 132,869
  • 46
  • 340
  • 423
Dominik Heim
  • 119
  • 7
  • I understand your question, but not the reasons. Are you using Eclipse? If so, you can use workspace resolution to always resolve dependencies to the latest version in your workspace. – J Fabian Meier Oct 17 '16 at 13:31
  • Take a look at this question http://stackoverflow.com/questions/1114026/maven-modules-building-a-single-specific-module You can specify to build a single module and the modules it depends on with `mvn clean package -pl ToolAImpl -am`. That would build `ToolAImpl` and Core (assuming it depends on core). And it wouldn't build ToolB or ToolC. – Tunaki Oct 17 '16 at 13:38
  • That Response from Tunaki helped. Thank you very much. – Dominik Heim Oct 18 '16 at 08:52

0 Answers0