code: protected Artifact getArtifact(String groupId, String artifactId, String type, String version) throws MojoExecutionException {
          ArtifactItem item = new ArtifactItem();
          item.setGroupId(groupId);
          item.setArtifactId(artifactId);
          item.setType(type);
          item.setVersion(version);
  
          return getArtifact(item);
      }
docs: Equivalent to {@link #getArtifact(ArtifactItem)} with an ArtifactItem
  defined by the given the coordinates.
  
  @param groupId
  The group ID
  @param artifactId
  The artifact ID
  @param type
  The type (e.g. jar)
  @param version
  The version, or null to retrieve it from the dependency list
  or from the DependencyManagement section of the pom.
  @return Artifact The artifact for the given item
  @throws MojoExecutionException
  Failed to create artifact