The flow that I am thinking is that
But looking at the mvn tomcut:run, the CI will not stop as it feels like it runs the server on it self and we cannot proceed with the step 4.
What's the best practice here?
I think setting maven.tomcat.fork to true lets you keep executing in maven after starting the tomcat - see https://tomcat.apache.org/maven-plugin-trunk/tomcat7-maven-plugin/run-mojo.html
I think mvn tomcat:run will wait for return code in order to pass or fail the build. You can try creating a .bat and return some code. Even I faced this issue but couldn't work on it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So based in this code, Does this mean it will just execute the mvn tomcat:run in the background and execute next the exit?
mvn tomcat:run exit /b 0
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.