Use Dropbox to Host a Maven Repository

There are many Maven repository hosts that offer a free service if the project is open source software (OSS) such as Sonatype Nexus and JFrog Bintray.

There are times where privacy is required, such as commercial or experimental code, however the price to host such projects is not viable.

This is a guide to setup Maven public hosting of dependencies from a Dropbox account.

WARNING: This will not make the Maven repository private, but it can only be accessed if the URL is known.

1. Download the Dropbox desktop client.

2. Create a new directory in the Public folder that

Get Entity Field Values as String in Java

The following uses the Apache Commons Lang library that provides the ReflectionToStringBuilder class to assist in the construction of object field values into a single String value.

This is quite useful for the viewing all the objects field values and assignments in an easily readable format.

The below example uses JDK 1.8 and the Apache Commons Lang3 library.

A book object is created and the toString() method is invoked.

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

public class Book {
	public String title = "";
	public String author = "";
	public String isbn