code: protected Artifact getArtifact(final ArtifactItem item) throws MojoExecutionException {
          assert item != null;
  
          Artifact artifact = createArtifact(item);
  
          return resolveArtifact(artifact, false);
      }
docs: Resolves the Artifact from the remote repository if necessary. If no version is specified, it will
  be retrieved from the dependency list or from the DependencyManagement section of the pom.
  
  
  @param item  The item to create an artifact for; must not be null
  @return      The artifact for the given item
  
  @throws MojoExecutionException   Failed to create artifact