Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To prevent Maven from downloading project modules as artifacts from a remote repository, you can use the <skip>true</skip> option in the <dependency> configuration of your project.

For example:

<dependency>
  <groupId>com.example</groupId>
  <artifactId>my-module</artifactId>
  <version>1.0.0</version>
  <type>jar</type>
  <scope>compile</scope>
  <skip>true</skip>
</dependency>

This will tell Maven to skip downloading the artifact for this dependency. You can also use the -o option when running Maven to force it to work offline, which will prevent it from downloading any new artifacts.