Hello Tom, On Sunday, December 3, 2006 at 8:31:24 PM Tom wrote:
> Maven does not support creating two artifacts from one project and it > does not support circular dependencies between two projects. The only > proper solution is cutting the dependency from interface to > implementation. Thanks a lot for clarifying things up, for me don't need to search further. > One thing you could try is to create an abstract factory that can find > a concrete implementation of itself through reflection (based on a > default implementation, a system property, configuration, ...) Thanks. Already started something similar, while I was awaiting the answer here ... Seems I was on the right track ... > On 12/3/06, Peter Palmreuther <[EMAIL PROTECTED]> wrote: >> Hello, >> >> I'm new to Maven and tried to find an answer on the website, but >> either I'm to dense or it ain't there (yet). So if this question is >> already answered in a public available document I'd be happy to get >> the link. >> >> I have a project that should be a library to encapsulate the logger >> being used in all other projects. From this project I create two JAR >> files: one containing the interface(s) and a factory, the other one >> containing the implementation classes. >> >> By now I'm trying to switch to use Maven2 for project management and >> dependency tracking, but I'm still unable to get the two jars out of >> Maven build process. >> >> Therefore I've tried to split the project up into two projects to have >> two artifacts. But than I end up in a cyclic dependency: >> >> Interface project depends on implementation project for the factory to >> compile; Implementation project depends on interface project for the >> implementation class to compile (Class implements Interface). A >> deadlock :-( >> >> Anybody out there with an idea how to solve this problem "the Maven2 >> way"? I'd be happy with a hint on >> - either how to influence the packaging process for getting two JARs >> (artifacts?) from one POM >> - or how to tell the two Maven2 projects they belong "somehow >> together" for dependency resolution in a way it's done as if this >> were one project >> >> Thanks a lot in advance, >> -- >> Best regards >> Peter Palmreuther >> >> "Bother," said Pooh as he found he'd used a dirty needle -- Best regards "Peter Palmreuther <[EMAIL PROTECTED]>" (The Bat! v3.86.8 ALPHA (beta) on Windows XP 5.1 Build 2600 Service Pack 2) DIODE: What happens to people who don't die young. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
