Code Monkey home page Code Monkey logo

maven-repo's Introduction

*** to add a jar to this git-based maven repository, run the following with your
    local copy:
    mvn install:install-file -DgroupId=[groupId] -DartifactId=[artifactId]
    -Dversion=[version] -Dpackaging=jar -Dfile=[pathToJar]
    -DlocalRepositoryPath=[pathToGitRepo] -DcreateChecksum=true

[groupId], [artifactId] and [version] can be anything you want, as long as the
    dependency in your project's pom.xml has the same values.
[pathToJar] is the local path to the jar file that you're installing in the
    local copy of the git repository
[pathToGitRepo] is the path of the local copy of the git repository

*** after running the above command, go to the artifact directory of your local
    maven repository (i.e., [pathToGitRepo]/[groupId]/[artifactId]) and rename
    the maven-metadata-local files that are generated to remove the local part.

*** add all files to the git repository and commit to the public remote
    repository

*** in your project's pom.xml you must have the following inside a
    <repositories></repositories> element:

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

<id> and <name> can be anything you want, as long as id is unique. The most
    important part is the url, where:
[username] is your github username
[repo-name] is the name of your github repository where your maven repository
    is published.

*** once installed in the github maven repository, your jar can be used in your
    project by adding the following dependency to your pom.xml:

<dependency>
    <groupId>[groupId]</groupId>
    <artifactId>[artifactId]</artifactId>
    <version>[version]</version>
</dependency>

maven-repo's People

Contributors

kdubezerra avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.