Display deployed version on your maven powered Spring application

Sometimes it is useful to have an endpoint that will return your application’s maven build properties.

To set that up, there are only a few steps that need to be followed.

First, define the resource directory.  By default, Maven will look in src/main/resources. Regardless, it is a good idea to add the resources and set filtering to true.

You will need to include Maven resources plugin. Using @ helps with avoiding collisions with Spring placeholders.

Continue reading

Setting up WordPress on Amazon Lightsail

After an unsuccessful attempt to start blogging, I decided to give it another try.  And while my site with my 4 blog entries was still up and running, I decided to find it a new home.  I have been working with AWS for awhile now and thought that Amazon Lightsail would be the perfect location.

Getting up and running was simple.  Figuring out the details took a bit more effort.  I decided to compile what I learned into a single easily accessible page. 

Setting up Amazon Lightsail Account

For $5 (as of this writing) you will get a basic instance with 512 MB of RAM, 1 vCPU and 20 GB SSD.  Head over to  https://aws.amazon.com/lightsail/ and get yourself an account. You will need a credit or a debit card to sign up but you can try it out risk free for 30 days. Once you have your account, head over to Lightsail home and create an instance.  Choose your instance location, platform (Linux) and a bluepring (WordPress).

Continue reading