Hello..

I am very new in Maven.

I have 3 projects - A, B and C

My goal is to establish inter dependency – such as

B >> A (dependency on A declared on pom and assembly xml in B)

B >> C (dependency on C declared on pom and assembly xml in B)

C >> B (dependency on B declared on pom and assembly xml in C)

Now when I run mvn install on C, install is successful.

But when I run mvn install on B, it fails.

Here is the error I am getting -

Java Code:
Exception in thread "main" java.lang.StackOverflowError
        at sun.nio.cs.SingleByte.withResult(SingleByte.java:44)
        at sun.nio.cs.SingleByte.access$000(SingleByte.java:38)
        at sun.nio.cs.SingleByte$Encoder.encodeArrayLoop(SingleByte.java:187)
        at sun.nio.cs.SingleByte$Encoder.encodeLoop(SingleByte.java:219)
        at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:561)
        at sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:271)
        at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:125)
        at java.io.OutputStreamWriter.write(OutputStreamWriter.java:207)
        at java.io.BufferedWriter.flushBuffer(BufferedWriter.java:129)
        at java.io.PrintStream.write(PrintStream.java:526)
        at java.io.PrintStream.print(PrintStream.java:669)
        at java.io.PrintStream.println(PrintStream.java:806)
        at org.apache.maven.cli.PrintStreamLogger.info(PrintStreamLogger.java:111)
        at org.codehaus.plexus.logging.AbstractLogger.info(AbstractLogger.java:51)
        at org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext(AbstractArchiver.java:500)
        at org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext(AbstractArchiver.java:504)
Any pointer would be highly appreciated.

Thank you.