Last active
October 13, 2015 21:48
-
-
Save danlangford/4260375 to your computer and use it in GitHub Desktop.
local maven repo INSIDE your project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- … --> | |
<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