I have an application consisting of many scripts doing some stuff on their own. I want to modify it's structure using Maven for PHP with multiple modules, a common module and a lot of client modules depending on the common one. I use the PHPUnit for testing and I run the tests from maven with "mvn test". So when running the tests maven includes the common module paths and the src/main/php paths. The problem is that I don't know how to run the scripts now, because for testing purposes I have to rely on the fact that Maven includes the needed module paths so I can include files relative to the root of my module src dir.
Is there any way of dealing with this? Should I use a .bat file which includes the paths to all my modules to run the scripts?