Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Open Sourcing Eclipse Dropwizard Tools

DZone's Guide to

Open Sourcing Eclipse Dropwizard Tools

Introducing Eclipse Dropwizard Tools, a series of plugins to make developing with the handy Dropwizard stack an easier and more seamless experience. Read on for more information!

· Java Zone
Free Resource

Bitbucket is for the code that takes us to Mars, decodes the human genome, or drives your next car. What will your code do? Get started with Bitbucket today, it's free.


Here at Tasktop, we really like industry standards. It's important for us to use well-known tools and frameworks to make transitions between teams easier. When it comes to creating a REST API there is no way around JAX-RS in the Java world. But JAX-RS (or one of its implementations) is not a full server stack. You always need to use some other technologies e.g. to access a database, do logging and much more.

Several projects exist providing such a stack. And one of the coolest projects in the last years is Dropwizard. Dropwizard combines some industry standard technologies like JAX-RS (Jersey), Hibernate, log4j, guava, Jetty (and some more) and glues them together. We use Dropwizard here at Tasktop for several products because it just works and make things easy.

As you might know, we have a heavy Eclipse background and are using Eclipse as an IDE for all our projects. For this reason, we also use Eclipse for our Dropwizard applications. While you can launch Dropwizard applications without special tooling in Eclipse, it has some drawbacks. These are:

  • You need to use system properties to point to your Dropwizard configuration.
  • You always need to terminate a previously launched instance of your application because the port used by the running instance will be occupied when launching the new instance.

Introducing the Eclipse Dropwizard Tools

To make our life easier we have created the Eclipse Dropwizard Tools. The tools contain a launcher to launch Dropwizard applications. You can select the Dropwizard configuration in the UI and it eliminates all previously launch instances before it launches a new one. So no more "address is already in use" error messages.

:auncher

Besides of this, the tools contain a launch shortcut. This means you can just launch your main class as a Dropwizard Application and it will also pick the first .yml file in your project as the configuration to use.

Launch Shortcut

One other goodie we added, is a YAML editor. YAML is an essential part of Dropwizard (e.g. for the configuration). We did not develop this by ourselves, instead, we use the Eclipse YEdit plugin. It's a very mature YAML editor for Eclipse and makes the editing much easier.

Installation

The Dropwizard Tools are available in the Eclipse Marketplace. You can simply drag and drop the "install" badge below into your IDE to install it.

Drag to your running Eclipse workspace to install Dropwizard Tools

Alternatively, you can also use the p2 repository URL which is: http://tasktop.github.io/dropwizard-tools/

License and Contribution

The Eclipse Dropwizard Tools are licensed using the Apache 2.0 Software License and hosted as a GitHub project. Feel free to open issues and create some pull requests. We would love to see your contribution and every feedback is welcome!

Bitbucket is the Git solution for professional teams who code with a purpose, not just as a hobby. Get started today, it's free.

Topics:
dropwizard ,eclipse ,plugin ,development ,ide ,java

Published at DZone with permission of Betty Zakheim, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}