Maven - Show dependencies: cycle

I have set up a project with following maven structure.

When looking at the maven dependency diagram, business links to business and persistence to business (see attached jpeg, blue boxes).
Why do these dependencies appear?

parent:
    <modelVersion>4.0.0</modelVersion>
    <groupId>company</groupId>
    <artifactId>app</artifactId>
    <packaging>pom</packaging>
    <version>1.0-SNAPSHOT</version>
    <modules>
        <module>persistence</module>
        <module>business</module>
    </modules>

....

       <dependency>
            <groupId>company.app</groupId>
            <artifactId>business</artifactId>
            <version>1.0-SNAPSHOT</version>
        </dependency>

business:
    <modelVersion>4.0.0</modelVersion>
    <groupId>company.app</groupId>
    <artifactId>business</artifactId>
    <packaging>pom</packaging>
    <version>1.0-SNAPSHOT</version>

    <parent>
        <groupId>company</groupId>
        <artifactId>app</artifactId>
        <version>1.0-SNAPSHOT</version>
    </parent>

    <dependencies>
        <dependency>
            <groupId>${pom.groupId}</groupId>
            <artifactId>persistence</artifactId>
            <version>1.0-SNAPSHOT</version>
        </dependency>

persistence:
    <modelVersion>4.0.0</modelVersion>
    <groupId>company.app</groupId>
    <artifactId>persistence</artifactId>
    <packaging>pom</packaging>
    <version>1.0-SNAPSHOT</version>

    <parent>
        <groupId>company</groupId>
        <artifactId>app</artifactId>
        <version>1.0-SNAPSHOT</version>
    </parent>



Attachment(s):
diagram.jpg

Please sign in to leave a comment.