Eric,

You need another project and move the common source of both project1
and project2 to this new common project. That will solve your cyclic
dependency
problem.  

-D



On 8/23/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I am very new to maven and have decided to start off with Maven 2.
> 
> I have two projects and both projects depend upon each other to compile...
> 
> 
> Directory Structure
> 
> C:\tmp\project1
>        pom.xml
>        src\main\java\com... ClassA.java, ClassB.java
> C:\tmp\project2
>        pom.xml
>        src\main\java\com... ClassC.java, ClassD.java
> 
> Class A uses ClassD
> Class B uses ClassC
> 
> I do not yet have a master pom.xml defined yet that contains the module
> definitions... I was trying to get the individual projects to compile
> first before I create the master pom.xml file.
>    <modules>
>        <module>project1</module>
>        <module>project2</module>
>    </modules>
> 
> When defining the pom.xml file for each project I use the snapshot for the
> dependency and since I can't get either project to compile, I can't
> generate the snapshots..
> 
> project1's pom.xml file contains
> <dependency>
>        <groupId>com.mydomain</groupId>
>        <artifactId>project2</artifactId>
>        <version>1.0-SNAPSHOT</version>
> </dependency>
> 
> project2's pom.xml file contains
> <dependency>
>        <groupId>com.mydomain</groupId>
>        <artifactId>project1</artifactId>
>        <version>1.0-SNAPSHOT</version>
> </dependency>
> 
> How can I get a project to compile when the dependant snapshot can't be
> generated because of cyclical dependencies?
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to