Debugging Maven dependencies
<p>The project "child", contains a java class:</p>

<pre><code>package org.child;

public class Elaborate {

    public String getStr() {
    return "hello";
    }
}
</code></pre>

<p>And this pom.xml:</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;project xmlns="http://maven.apache.org/POM/4.0.0"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;

    &lt;groupId&gt;org.child&lt;/groupId&gt;
    &lt;artifactId&gt;child&lt;/artifactId&gt;
    &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;


&lt;/project&gt;
</code></pre>

<p>The project "parent" contains this java class:</p>

<pre><code>import org.child.Elaborate;

public class App {

    public static void main(String[] args) {


    Elaborate elaborate = new Elaborate();

    System.out.println(elaborate.getStr());
    }
}
</code></pre>

<p>And this pom.xml:</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;project xmlns="http://maven.apache.org/POM/4.0.0"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;

    &lt;groupId&gt;org.parent&lt;/groupId&gt;
    &lt;artifactId&gt;parent&lt;/artifactId&gt;
    &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;

    &lt;dependencies&gt;

    &lt;dependency&gt;
        &lt;groupId&gt;org.child&lt;/groupId&gt;
        &lt;artifactId&gt;child&lt;/artifactId&gt;
        &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
    &lt;/dependency&gt;

    &lt;/dependencies&gt;

&lt;/project&gt;
</code></pre>

<p>I'm opening the two projects into two separate Intellij windows. What I'm trying to do is debugging on both sides.</p>

<p>However, if I run the application with the "parent", I can only debug the parent. If I put a breakpoint in the "child", the debugger doesn't stop there.</p>

<p>Any idea on how I can do?</p>