@ Override public void execute ( ) throws MojoExecutionException { new WisdomExecutor ( ) . stop ( this ) ; File pid = new File ( getWisdomRootDirectory ( ) , "RUNNING_PID" ) ; if ( WisdomExecutor . waitForFileDeletion ( pid ) ) { getLog ( ) . info ( "Wisdom server stopped." ) ; } else { throw new MojoExecutionException ( "The " + pid . getName ( ) + " file still exists after having stopped the " + "Wisdom instance - check log" ) ; } }
Tries to stops the running Wisdom server .