tags:

views:

48

answers:

1

We have been trying to migrate our multi-module projects to maven. I have been struggling with the maven install plugin bug "http://jira.codehaus.org/browse/MNG-2971". I have written a Java program which can find and replace the expressions using my settings.xml and POM in my local repository view.

As a result all of my parent POM's are having a additional phase in the build process. What i'm doing is that i have attached a goal which will run my Java program during "validate" phase.

I think this is a not a good idea instead i would have asked individuals to run the program on their local repository on their own.

What i'm asking here is that the best way to work around the "install" plugin issue (MNG-2971).

I searched through the net but i could not locate such work around.

A: 

Well, I didn't try it because I'm not using properties from the settings.xml but the issue has a work around in the comments.

Pascal Thivent
Yes...I saw that...Is there is any other alternate? I really want to have "something" which can run over my local repostiory right after the artifact download from my "artifactory" or when i invoke "mvn install".