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.

I searched all around the net for a way to fetch localip of the machine in maven. But, found nothing working/ready to use. So, Here is an effort to fix it: A maven plugin that sets localIP as maven 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

0 comments: