|
| 1 | +### Eclipse Integration with ServiceStack |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | +The **ServiceStackEclipse** plugin enables cross-platform [Add ServiceStack Reference](https://github.com/ServiceStack/ServiceStack/wiki/Add-ServiceStack-Reference) integration with Eclipse on Windows, OSX and Linux. |
| 6 | + |
| 7 | +### Install from Eclipse Marketplace |
| 8 | + |
| 9 | +To install, search for **ServiceStack** in the Eclipse Marketplace at `Help -> Eclipse Marketplace`: |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | +Find the **ServiceStackEclipse** plugin, click **Install** and follow the wizard to the end, restarting to launch Eclipse with the plugin loaded! |
| 14 | + |
| 15 | +> **ServiceStackEclipse** is best used with Java Maven Projects where it automatically adds the **ServiceStack.Java** client library to your Maven Dependencies and when your project is set to **Build Automatically**, are then downloaded and registered, so you're ready to start consuming ServiceStack Services with the new `JsonServiceClient` |
| 16 | +
|
| 17 | +### Add ServiceStack Reference |
| 18 | + |
| 19 | +Just like the [support in Android Studio](https://github.com/ServiceStack/ServiceStack/wiki/Java-Add-ServiceStack-Reference) you can right-click on a Java Package to open the **Add ServiceStack Reference...** dialog from the Context Menu: |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | +Complete the dialog to add the remote Servers generated Java DTO's to your selected Java package and the `net.servicestack.client` dependency to your Maven dependencies. |
| 24 | + |
| 25 | +### Update ServiceStack Reference |
| 26 | + |
| 27 | +Updating a ServiceStack Reference works as normal where you can change any of the available options in the header comments, save, then right-click on the file in the File Explorer and click on **Update ServiceStack Reference** in the Context Menu: |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | +## [ServiceStack Java Documentation](https://github.com/ServiceStack/ServiceStack/wiki/Java-Add-ServiceStack-Reference#update-servicestack-reference) |
| 32 | + |
| 33 | +For further information on the different code-generation configuration options available and examples of using the `JsonServiceClient` refer to the [Java ServiceStack Reference Documentation](https://github.com/ServiceStack/ServiceStack/wiki/Java-Add-ServiceStack-Reference#update-servicestack-reference). |
0 commit comments