Last active
July 12, 2017 06:36
-
-
Save veysiertekin/aad85c4aa6ae53dc4b55 to your computer and use it in GitHub Desktop.
Create -local project specific- maven repository
This file contains 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
mvn deploy:deploy-file -DgroupId=com.blogspot.pragmastic -DartifactId=old-stuff -Dversion=0.9 | |
-Dpackaging=jar -Dfile=lib/old-stuff.jar -Durl=file://${project.basedir}/lib | |
-DrepositoryId=local-project-libraries | |
mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging> | |
# example | |
mvn install:install-file -Dfile=/Users/vertekin/Downloads/jaxb-api-2.1.jar -DgroupId=javax.xml -DartifactId=jaxb-api -Dversion=2.1 -Dpackaging=jar |
This file contains 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
<dependencies> | |
<dependency> | |
<groupId>com.blogspot.pragmastic</groupId> | |
<artifactId>old-stuff</artifactId> | |
<version>0.9</version> | |
</dependency> | |
</dependencies> |
This file contains 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
mvn archetype:generate -DgroupId=<groupId> -DartifactId=<artifactId> -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false |
This file contains 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
<repositories> | |
<repository> | |
<id>local-project-libraries</id> | |
<name>Local project libraries</name> | |
<url>file://${project.basedir}/lib</url> | |
<layout>default</layout> | |
</repository> | |
</repositories> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment