[launcher]
mvn -P run initialize
Create a debug profile in your IDE with the following characteristics:
Main class | There will be a class called Launcher in the launcher project that the Cougar archetype generated, or you can use com.betfair.cougar.core.impl.Main , or you can use one of your own devising |
VM parameters | - |
Program parameters | - |
Project/module | your launcher project |
There is a bug in Eclipse Maven plugin that needs to be fixed by adding following code to your top level pom (by default Eclipse plugin doesn’t add AspectJ artefacts):
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-eclipse-plugin</artifactId>
<configuration>
<ajdtVersion>none</ajdtVersion>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
Now run mvn eclipse:eclipse
from the top level project, then import as existing project into Eclipse. If you get annoying errors saying ‘The project cannot be built until the build path errors are resolved’, follow these instructions to resolve.
You are free to wrap com.betfair.cougar.core.impl.Main
with your own class, if needed.