PoisonIvy

Poison Ivy - Java Library Dependency Resolver and Application Launcher


Project maintained by mrstampy Hosted on GitHub Pages — Theme by mattgraham

Poison Ivy - Java Library Dependency Resolver and Application Launcher

This library allows Java applications to be delivered without bundling Maven library dependencies with the deliverables. Instead the application is delivered with an ivy.xml file which specifies the library dependencies. On application startup, should libraries require resolution, the libraries are downloaded and the application can be restarted automatically.

Release 1.4 - June 7, 2014

Release 1.3 - April 11, 2014

Release 1.1 - April 8, 2014

Maven dependency

       <dependency>
           <groupId>com.github.mrstampy</groupId>
           <artifactId>PoisonIvy</artifactId>
           <version>1.4</version>
       </dependency>

The PoisonIvy class can be used in one of three ways:

Parameters

Examples (command line)

-mj MyApplication.jar

-mj MyApplication.jar -X mx1000m -X ms500m

-mc com.my.MainClass -X mx1000m -X ms500m -D my.settings.file=/some/path/and/file

-ivy /path/to/ivy.xml -ivysettings /path/to/ivysettings.xml -libdir /path/to/ivylib -f -nc

Examples (embedded class)

// forces update of libraries using the specified ivy.xml file

new PoisonIvy("-ivy", "myivy.xml", "-f").execute();

// forces update of libraries and (re)starts the Main application

new PoisonIvy("-f", "-mc", "com.my.app.Main").execute();

poisonivy.config

Should no parameters be specified a poisonivy.config file, if it exists, is used to specify the parameters. The first line of the file specifies the parameters as per the command line.

Dependencies

Poison Ivy's dependencies (ivy, slf4j-api and commons-cli) must be included with the application deliverable.