Setting up maven to compile (instead of downloading) dependencies
<p>I cloned the git repository of Apache ActiveMQ Artemis project (<a href="https://github.com/apache/activemq-artemis" rel="nofollow">https://github.com/apache/activemq-artemis</a>) and then typed</p>

<pre><code>mvn -Ptests test -pl :integration-tests
</code></pre>

<p>I was surprised to see log messages like the following</p>

<pre><code>...
Downloading: http://repository.apache.org/snapshots/org/apache/activemq/artemis-selector/1.4.0-SNAPSHOT/artemis-selector-1.4.0-20160625.030221-11.jar
Downloading: http://repository.apache.org/snapshots/org/apache/activemq/artemis-core-client/1.4.0-SNAPSHOT/artemis-core-client-1.4.0-20160625.030211-11.jar
...
</code></pre>

<p>Since e.g. <code>artemis-core-client</code> is contained in the git repository I cloned in the beginning, I'd have expected maven just builds it from there.</p>

<p>That way, when I make changes in the core client source, they get picked up by the integration tests.</p>

<p>Instead, maven is downloading the jar from the repository.</p>

<p><strong>Question</strong>: How do I configure maven to always build all modules that are in the git repository and download only "true" dependencies, which I mean things not in the git repository?</p>