code: public void doExecute()
          throws MojoExecutionException, MojoFailureException
      {
          if ( !session.getSettings().isInteractiveMode() )
          {
              throw new MojoExecutionException(
                  "Cannot run a mock repository in batch mode (as there is no way to signal shutdown) "
                      + "use mrm:start instead" );
          }
          FileSystemServer mrm = createFileSystemServer( createArtifactStore() );
          getLog().info( "Starting Mock Repository Manager" );
          mrm.ensureStarted();
          String url = mrm.getUrl();
          try
          {
              getLog().info( "Mock Repository Manager " + url + " is started." );
              if ( StringUtils.isNotEmpty( settingsServletPath ) )
              {
                  String downloadUrl;
                  try
                  {
                      downloadUrl = mrm.getRemoteUrl();
                  }
                  catch ( UnknownHostException e )
                  {
                      downloadUrl = mrm.getUrl();
                  }
                  
                  String settings = FileUtils.filename( settingsServletPath );
                  
                  getLog().info( "To share this repository manager, let users download " + downloadUrl + "/" + settingsServletPath );
                  getLog().info( "Maven should be started as 'mvn --settings " + settings +" [phase|goal]'" );
              }
              ConsoleScanner consoleScanner = new ConsoleScanner();
              consoleScanner.start();
              getLog().info( "Hit ENTER on the console to stop the Mock Repository Manager and continue the build." );
              consoleScanner.waitForFinished();
          }
          catch ( InterruptedException e )
          {
              // ignore
          }
          finally
          {
              getLog().info( "Stopping Mock Repository Manager " + url );
              mrm.finish();
              try
              {
                  mrm.waitForFinished();
                  getLog().info( "Mock Repository Manager " + url + " is stopped." );
              }
              catch ( InterruptedException e )
              {
                  // ignore
              }
          }
      }
docs: {@inheritDoc}