Tuesday, December 27, 2011

maven plugin to get localip

During a dev build, its useful to have resource filters that can create config files using localip of the machine on which build/deployment is happening. (Eg: serving media files from dev machine to a remote browser)

I searched all around for a way to fetch localip of the machine into maven build. But, found nothing working/ready to use. So, Here is an effort to fix the gap in dev tools: A maven plugin that sets localIP as a property. It can be attached to initialize phase of the build.

The code is opensourced on gihub: https://github.com/tmahesh/maven-getlocalip-plugin with usage/install instructions

No comments: