code: private static RepositorySystemSession newRepositorySystemSession(RepositorySystem system, File localRepositoryBaseDir) {
          final DefaultRepositorySystemSession session = MavenRepositorySystemUtils.newSession();
          final LocalRepositoryManager localRepositoryManager = system.newLocalRepositoryManager(session, new LocalRepository(localRepositoryBaseDir));
          session.setLocalRepositoryManager(localRepositoryManager);
          return session;
      }
docs: Retrieves a new instance of a standalone {@link org.eclipse.aether.RepositorySystemSession}, which {@link org.eclipse.aether.repository.LocalRepositoryManager} points to 'target/local-repository' dir.
  @param system
  @return