Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Oleh Astappiev
maven-repo
Commits
3cc0b3e5
Commit
3cc0b3e5
authored
Dec 31, 2020
by
Oleh Astappiev
Browse files
add readme
parent
7194a781
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
README.md
README.md
+26
-0
No files found.
README.md
0 → 100644
View file @
3cc0b3e5
# 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment