New Implementation

Hi Carlos,

this is the new implementation based on our discussion. I have tested it with an external Liferay maven hook project and it seem to work fine. I will testing it with external Liferay Maven Portlet project and send to another pull.

can you please start reviewing this and any questions please ping me or drop me a note