code: public static File resolve(AbstractWisdomMojo mojo, String coords) throws MojoExecutionException {
          ArtifactRequest request = new ArtifactRequest();
          request.setArtifact(
                  new DefaultArtifact(coords));
          request.setRepositories(mojo.remoteRepos);
  
          mojo.getLog().info("Resolving artifact " + coords +
                  " from " + mojo.remoteRepos);
  
          ArtifactResult result;
          try {
              result = mojo.repoSystem.resolveArtifact(mojo.repoSession, request);
          } catch (ArtifactResolutionException e) {
              mojo.getLog().error("Cannot resolve " + coords);
              throw new MojoExecutionException(e.getMessage(), e);
          }
  
          mojo.getLog().info("Resolved artifact " + coords + " to " +
                  result.getArtifact().getFile() + " from "
                  + result.getRepository());
  
          return result.getArtifact().getFile();
      }
docs: Resolves the specified artifact (using the : separated syntax).
  
  @param mojo   the mojo
  @param coords the coordinates ot the artifact to resolve using the : separated syntax -
  {@code <groupId>:<artifactId>[:<extension>[:<classifier>]]:<version>}, must not be {@code null}
  @return the artifact's file if it can be revolved. The file is located in the local maven repository.
  @throws MojoExecutionException if the artifact cannot be resolved