protected void execute ( StoreOperation storeOperation , MavenProject rootModule , Set < MavenProject > executedModules ) throws MojoExecutionException , MojoFailureException { synchronized ( cachingStoreProvider ) { Store store = getStore ( rootModule ) ; if ( isResetStoreBeforeExecution ( ) && executedModules . isEmpty ( ) ) { store . reset ( ) ; } try { storeOperation . run ( rootModule , store ) ; } finally { releaseStore ( store ) ; } } }
Execute an operation with the store .