Giter Site home page Giter Site logo

dependency-runtime-maven-plugin's Introduction

Dependency Runtime Maven Plugin

Adding this plugin to your project allows you to put just your code in a jar file, then all of the dependencies will be downloaded from Maven when they are needed at runtime.

If you are interested in the code that makes this possible, you can view the library here.

Usage

Add the following to your project's pom.xml:

<build>
    <plugins>
        <plugin>
            <groupId>com.github.zachdeibert</groupId>
            <artifactId>dependency-runtime-maven-plugin</artifactId>
            <version>1.0.0-SNAPSHOT</version>
            <executions>
                <execution>
                    <id>inject-runtime</id>
                    <goals>
                        <goal>inject-runtime</goal>
                    </goals>
                </execution>
            </executions>
            <configuration>
                <runtimeVersion>1.0.0-SNAPSHOT</runtimeVersion>
            </configuration>
        </plugin>
    </plugins>
</build>

Note: this requires your jar to have the Main-Class attribute set. If you want this plugin to set the attribute for you, add <mainClass>your.main.Class</mainClass> to the <configuration> tag.

Legal

This project has the MIT license, so you can use the code for your project, regardless of what your project is or what license your project has. There is a copyright notice for my code embedded in the jar, so all you need to do is install the plugin, then you are free to distribute it.

dependency-runtime-maven-plugin's People

Contributors

zachdeibert avatar

Watchers

 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.