Dashboard > RIFE > ... > Tips and Tricks > Using RIFE In Maven-Built Applications
RIFE Log In | Sign Up   View a printable version of the current page.
Using RIFE In Maven-Built Applications


Added by Jeremy Whitlock, last edited by Jeremy Whitlock on Oct 26, 2006  (view change)
Labels: 
(None)

While we wait on the RIFE developers to submit the request to the Maven people to have the RIFE jars in the Maven repositories (hint, hint), I have decided to take a few minutes to tell you how I have been able to use RIFE as part of Maven-built applications.

Instructions

Please use the following steps to add RIFE to your local Maven repository:

  • Download RIFE
  • Extract RIFE
  • cd EXTRACTED/WEB-INF/lib
  • Run "mvn install:install-file -DgroupId=com.uwyn -DartifactId=rife-jdk15 -Dversion=1.5.1 -Dpackaging=jar -Dfile=rife-1.5.1-jdk15.jar" without the quotes

That is it. I know it may appear to be more difficult than this but it is not. To allow for Maven to locate your RIFE jar as part of your build, this is all you need to do. Here is a snippet of how to use your newly available RIFE library in your Maven build:

<dependency>
  <groupId>com.uwyn</groupId>
  <artifactId>rife-jdk15</artifactId>
  <version>1.5.1</version>
</dependency>

In the event that you read this after 1.5.1 or you are installing another RIFE library, the artifactId and version may change. Although not a lengthy tip, I have found use in this now that I have began giving Maven a second chance.

Take care,

Jeremy Whitlock



Are you enjoying Confluence? Please consider purchasing it today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.1a Build:#515 May 19, 2006) - Bug/feature request - Contact Administrators