Thank you Anders and Zac.

The project was originally managed by Ant (by other man), and I'm porting that project to maven now. I don't change module structure yet, but probably the time to change will come soon.

The manager is standalone data server that manage whole configurations of the system. Other subsystems get their initual configs from manager by using manager's clientAPI. The utils:config is a library that integrate config values from manager, local config file, VM arguements or environmental variables, so depend on manager:clientAPI.

I found that other modules of utils don't depend on config, and it's possible to wipe out dependency on config from manager:*. I'll pick config out from utils.


2011년 01월 05일 13:27, Zac Thompson 쓴 글:
I agree with Anders that your structure should probably be modified.
I am also suspicious of the "utils/config" component.  I highly doubt
that it should be dependent on clientAPI.  I find myself questioning
if it should exist at all.

1) I think utils/config should not be dependent on clientAPI, or ...
2) ... else config does not belong as a utils component and is really
part of mid/manager, or ...
3) ... else clientAPI does not belong as part of mid/manager and
should be in its own project at the same level as utils and mid

However, if you change your hierarchy to be completely flat (all
modules become siblings at the same level), then your problems will go
away for now.

On Mon, Jan 3, 2011 at 11:20 PM, Anders Hammar<and...@hammar.net>  wrote:
What version of Maven are you using? Have you tried 3.0.1?

Out of a module design perspective, I find your structure strange and I
think that you should try to re-arrange. In some sense you do have cyclic
dependencies, as utils depends on mid, while mid depends on utils.

/Anders

On Tue, Jan 4, 2011 at 03:19, Hayarobi Park<hayarobip...@gmail.com>  wrote:

Hello,

I'm managing maven project of my team, and having truble in module
dependencies..

The root project has some sub modules.
A submodule named "utils" has a few submodule; config, logger, json and
etc.
Another submodule "mid" has "manager" submodule, which are pom project and
has core, clientAPI and protocol sub modules.

The problem is that utils:config depends on mid:manager:clientAPI,
mid:manager:clientAPI depends on utils:logger and utils:json, and the other
modules in mid:manager depend on submodules utils, including config. There
are not cyclic, but twisted dependencies, and maven can't solve the
dependency well.

I have to do tedius steps to build whole project in the new configuration.
1. install utils first, maven complains and stop building utils:config
since mid:manager:clientAPI was not installed yet, just after installing
utils pom project.
2. go to utils:logger and install, and for utils:json respectively.
3. go to mid directory and install mid, maven will install mid and stop
further install caused by dependeny on utils:config of some other submodules
of mid.
4. go to mid:manager and install it.
5. go to mid:manager:clientAPI and install it.
6. go to utils:config and install it.
7. Finally, go  to top level and install whole modules.

How to solve this situation?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to