This might seem like a silly question to some people but since I'm new to Maven I have been stuck on it since a few days so here goes.
I have 2 maven projects ProjectA & ProjectATest in same workspace,having their own pom files. The 1st pom generates a WAR file . The second pom file generates a shaded jar file.
Currently to run the jar file I have to first execute the build command on ProjectA & ProjectATest and then run the jar file from command line.
Is there a maven goal through which I can run the jar file when I trigger the build for ProjectA?? or tigger the execution of main class of ProjectATest after the build of ProjectA is successful??