Skip to content

Instantly share code, notes, and snippets.

@danlangford
Last active October 13, 2015 21:48
Show Gist options
  • Save danlangford/4260375 to your computer and use it in GitHub Desktop.
Save danlangford/4260375 to your computer and use it in GitHub Desktop.
local maven repo INSIDE your project
# the maven command will make the repo directory structure for you
mvn install:install-file \
-Dfile=D:\SomeThingCool\lib\remote\dependencies\ThirdParty-1.0.1.jar \
-DgroupId=org.somethingcool \
-DartifactId=thirdparty \
-Dversion=1.0.1 \
-Dpackaging=jar \
-DlocalRepositoryPath=src\repo
<!-- … -->
<repository>
<id>my-project-repo</id>
<name>my-project-repo</name>
<url>file://${basedir}/src/repo</url>
</repository>
<!-- … -->
<dependency>
<groupId>org.somethingcool</groupId>
<artifactId>thirdparty</artifactId>
<version>1.0.1</version>
</dependency>
<!-- … -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment