Maven: Run main method inside of test
- Go to the module, which contains the main class.
- Then run the following command to start the main class inside of your java test folder. All dependencies, which are configured by maven, will be available: <div class="wp_syntax">
mvn exec:java -Dexec.mainClass="package.Classname" -Dexec.classpathScope="test"
</div>