Skip to content

budiariyanto/mavenrepo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Budi's Personal Maven Repository

Install Maven JAR

mvn install:install-file
 -DgroupId=[group-id]
 -DartifactId=[artifact-id]
 -Dversion=[version]
 -Dpackaging=[packaging-format]
 -Dfile=[path-to-file]
 -DlocalRepositoryPath=[path-to-git-repo]
  • [group-id],[artifact-id],[version] and [packaging-format] define the Maven properties of the file to install
  • [path-to-file] is the path to the JAR file to install
  • [path-to-git-repo] is the path to the local Git repository on your computer

Or you can use project pom file to define groupId, artifactId, groupId, version and packaging format using this command:

mvn install:install-file 
    -Dfile=[path-to-file] 
    -DpomFile=[path-to-pom-file] 
    -DlocalRepositoryPath=[path-to-git-repo]

Commit & push to your github repo

Documentation about maven install-file plugin can be found here.

Use

Add this to projects pom.xml:

<repositories>
    <repository>
        <id>git-[username]</id>
        <name>[username]'s Git based repo</name>
        <url>https://github.com/[username]/[repo-name]/raw/master/</url>
    </repository>
</repositories>

[username] is your github username [repo-name] is the name of the github repo you created

About

my maven personal repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published