Commit 3cc0b3e5 authored by Oleh Astappiev's avatar Oleh Astappiev
Browse files

add readme

parent 7194a781
# Private Maven "Repository"
## To add new package or version
### Add using pom.xml metadata
```bash
mvn org.apache.maven.plugins:maven-install-plugin:3.0.0-M1:install-file -Dfile=<path-to-file> -DlocalRepositoryPath=<path-to-this-repository>
```
Example
```bash
mvn org.apache.maven.plugins:maven-install-plugin:3.0.0-M1:install-file -Dfile=primefaces-9.0-SNAPSHOT.jar -DlocalRepositoryPath=.
```
### Add manually
```bash
mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> -DartifactId=<artifact-id> -Dversion=<version> -DlocalRepositoryPath=<path-to-this-repository> -Dpackaging=jar -DgeneratePom=true -DcreateChecksum=true
```
Example
```bash
mvn install:install-file -Dfile=primefaces-9.0-SNAPSHOT.jar -DgroupId=org.primefaces -DartifactId=primefaces -Dversion=9.0-8695c66 -DlocalRepositoryPath=. -Dpackaging=jar -DgeneratePom=true -DcreateChecksum=true
```
## Links
- https://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment