Force install dependency.

I have a maven project with a dependency in the pom:

        <dependency>
            <groupId>tld.domain1</groupId>
            <artifactId>name</artifactId>
            <version>0.0.0.0</version>
            <scope>provided</scope>
        </dependency>


This dependency does not exist at any of the repositories in the pom; I don't want to change the pom. Instead, I want to fetch the dependency jar from somewhere (wget), store it locally, and build the project with that.

This is with mvn in docker.
Was this page helpful?