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.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2022-04-11 11:00:00 +0000
Seen: 11 times
Last updated: Sep 12 '21
What is the procedure for loading npm modules in AWS Lambda?
What are the steps to permanently eliminate Modules from an Intellij Maven Project?
What is an alternative to using __dirname in Node.js when ES6 modules are being utilized?
What is the issue with importing node-fetch when using ES modules that is not supported?
Why is the Angular Universal build getting stuck at "10% building modules 1/1 modules 0 active"?
Can native es modules in Nodejs 16 allow importing from the root directory?
How to bring in ES modules for ol.events.condition.shiftKeyOnly in OpenLayers?