I have many modules Maven project. Because of external Tool which generate classes and configuration files I need to use maven-exec-plugin running after "mvn compile" and before "mvn package". In case of using that Tool I had to prepare bat file which built all modules separatly.
And now is the problem - after removing m2s folder (local repository of Maven) i cant build any of modules because of exception. It says that couldnt not resolve dependencies for project (no pom.xml file in that repository).
I need a solution that install or overwrite main pom.xml file for project in m2 maven local repository every time when I build any of modules.