Maven Shared Dependency
Just got head into Maven and I've got situation where I have cyclic dependency problem.
my original structure was

    |-mainProject
    |-webProject
where mainProject has webProject as a dependency (war packaging).
Got error since webProject also depends on mainProject, so I changed the structure

    |-coreProject
    |-mainProject
    |-webProject
so that core get packaged into a jar and both main&web have core as dependency.
Now I see different error while creating -shade.jar.

CoreProject's components need to be used by both main&web projects.
What would be the best practice in this case?


Maven Shared Dependency
===

Just got head into Maven and I've got situation where I have cyclic dependency problem.
my original structure was

    |-mainProject
    |-webProject
where mainProject has webProject as a dependency (war packaging).
Got error since webProject also depends on mainProject, so I changed the structure

    |-coreProject
    |-mainProject
    |-webProject
so that core get packaged into a jar and both main&web have core as dependency.
Now I see different error while creating -shade.jar.

CoreProject's components need to be used by both main&web projects.
What would be the best practice in this case?

