-
Notifications
You must be signed in to change notification settings - Fork 48
Installation Instructions
Using the grails-jaxrs plugin requires a Grails 1.1.1 (or higher) installation. For instructions how to download and install Grails refer to the Grails reference documentation. The following table shows which grails-jaxrs version to use for which Grails version
Grails version | grails-jaxrs version |
---|---|
2.2.1 or higher | 0.8 |
2.1.1 or higher | 0.7 |
2.0.0 or higher | 0.6 |
1.3.7 or higher | 0.5-m1 |
1.2.0 or higher | 0.4 |
1.1.1 or higher | 0.1 - 0.3 |
- The latest stable version is 0.8 and can be installed from the Grails plugin repository
- The latest development version is 0.8 and can be obtained by checking out the sources and building the plugin. The plugin must then be installed manually.
To properly resolve all the dependencies required by Restlet
, you may have to add the following repository to your project's BuildConfig.groovy
:
mavenRepo 'http://maven.restlet.org/'
Note: If you want to install the plugin directly from the Grails Plugin Repository you can skip this section and go directly to the section Installing the plugin.
The plugin binaries can be downloaded from the project's download section.
If you want to build the plugin from its sources clone the grails-jaxrs repository with
git clone git://github.com/krasserm/grails-jaxrs.git
and change to the created grails-jaxrs
directory. Optionally, run the unit and integration tests by entering
grails test-app
on the command line. To create a binary package of the plugin enter
grails package-plugin
The filename of the created plugin is grails-jaxrs-<version>.zip
where <version>
is the current development version. To build older versions of the plugin from its sources use one of the grails-jaxrs tags.
If you want to use the grails-jaxrs plugin in a Grails application you need to install it first. The plugin can be either be installed directly from the Grails plugin repository or from a local package that has been download before or built from the sources.
Add the plugin dependency declaration to your project's BuildConfig.groovy
($PROJECT_DIR/grails-app/conf/BuildConfig.groovy
)
grails.project.dependency.resolution = {
plugins {
compile ':jaxrs:0.8'
}
}
Then go to your project's root directory and enter
grails refresh-dependencies
Go to your project's root directory and enter
grails install-plugin jaxrs 0.7
Version 0.8 and above are distributed with a POM file in addition to the plugin zip distribution; the POM file is required for correct resolution of the plugin's dependencies.
From the grails-jaxrs
directory run
grails maven-install
To install the plugin to your local Maven cache then add the plugin's dependency declaration to your project's BuildConfig.groovy
descriptor
Install the plugin to your local Maven cache in the following coordinates:
%USER_HOME/.m2/repository/org/grails/plugins/jaxrs/%VERSION/jaxrs-$VERSION.zip
%USER_HOME/.m2/repository/org/grails/plugins/jaxrs/%VERSION/jaxrs-$VERSION.pom
And add the plugin's dependency declaration to your project's BuildConfig.groovy
descriptor
Go to your project's root directory and enter
grails install-plugin /path/to/grails-jaxrs-<version>.zip
where /path/to
needs to be replaced by the absolute or relative path to the grails-jaxrs-<version>.zip
file.