https://github.com/xvik/mvn-repo
https://github.com/xvik/mvn-repo
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/xvik/mvn-repo
- Owner: xvik
- Created: 2012-12-10T00:12:42.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-10-31T00:48:03.000Z (over 12 years ago)
- Last Synced: 2025-02-04T21:45:49.373Z (over 1 year ago)
- Size: 2.02 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
mvn-repo
========
To use reposititory add to pom:
mvn-repo
https://raw.github.com/xvik/mvn-repo/master
true
true
daily
To upload single jar:
1. Checkout repository, e.g. into ~/mvn-repo
2. Uplaod jar
mvn deploy:deploy-file \
-Dfile=path_to_jar \
-DgroupId=... \
-DartifactId=...\
-Dversion=... \
-Dpackaging=jar \
-DgeneratePom=true \
-DcreateChecksum=true \
-Durl=file://~/mvn-repo
3. Push changes
To deploy artifacts with mvn deploy:
1. Add github plugin
com.github.github
site-maven-plugin
0.7
Maven artifacts for ${project.artifactId} ${project.version}
true
true
${project.build.directory}/mvn-repo
refs/heads/master
**/*
mvn-repo
xvik
site
deploy
2. Add property into properties section
github
3.Add
mvn-repo-github
Temporary Staging Repository
file://${project.build.directory}/mvn-repo
4. Set github credentials in ~/.m2/settings.xml (servers section):
github
USER
PASSWORD
5. perform mvn deploy