Valid form: <code>groupId:artifactId</code>

@see org.jboss.shrinkwrap.resolver.api.Coordinate#toCanonicalForm()
4797
@Override
    public String toCanonicalForm() {
        return new StringBuilder(groupId).append(SEPARATOR_COORDINATE).append(artifactId).toString();
    }
277203
public ArtifactName build() {
        String groupId = this.groupId;
        String artifactId = this.artifactId;
        String classifier = this.classifier;
        String packaging = this.packaging;
        String version = this.version;
        if (artifact != null && !artifact.isEmpty()) {
            final String[] artifactSegments = artifact.split(":");
            // groupId:artifactId:version[:packaging][:classifier].
            String value;
            switch (artifactSegments.length) {
                case 5:
                    value = artifactSegments[4].trim();
                    if (!value.isEmpty()) {
                        classifier = value;
                    }
                case 4:
                    value = artifactSegments[3].trim();
                    if (!value.isEmpty()) {
                        packaging = value;
                    }
                case 3:
                    value = artifactSegments[2].trim();
                    if (!value.isEmpty()) {
                        version = value;
                    }
                case 2:
                    value = artifactSegments[1].trim();
                    if (!value.isEmpty()) {
                        artifactId = value;
                    }
                case 1:
                    value = artifactSegments[0].trim();
                    if (!value.isEmpty()) {
                        groupId = value;
                    }
            }
        }
        return new ArtifactNameImpl(groupId, artifactId, classifier, packaging, version);
    }
1213293
public static String toCanonicalForm(CharSequence input) {
      if (input == null) {
         return null;
      }
      return StringFunctions.CANONICAL_NORMALIZATION.apply(input.toString());
   }
1151057
public Iterable<ArchiveCoordinateModel> findByGAV(String groupId, String artifactId, String version)
    {
        final Iterable<ArchiveCoordinateModel> archives = findAllByProperties(
                    new String[] { ArchiveCoordinateModel.GROUP_ID, ArchiveCoordinateModel.ARTIFACT_ID, ArchiveCoordinateModel.VERSION },
                    new String[] { groupId, artifactId, version });
        return archives;
    }
119847
@Override
  public Pair getCanonicalForm(Pair value) throws UcumException  {
		assert value != null : paramError("getCanonicalForm", "value", "must not be null");
		assert checkStringParam(value.getCode()) : paramError("getCanonicalForm", "value.code", "must not be null or empty");
		
		Term term = new ExpressionParser(model).parse(value.getCode());
		Canonical c = new Converter(model, handlers).convert(term);
		if (value.getValue() == null)
			return new Pair(null, new ExpressionComposer().compose(c, false));
		else
			return new Pair(value.getValue().multiply(c.getValue()), new ExpressionComposer().compose(c, false));
	}
242011
private Artifact getArtifactFromMavenCoordinates(final String artifact) throws MojoFailureException {

    String[] parts = StringUtils.split(artifact, ":");

    String version;
    String packaging = null;
    String classifier = null;

    switch (parts.length) {
      case 3:
        // groupId:artifactId:version
        version = parts[2];
        break;

      case 4:
        // groupId:artifactId:packaging:version
        packaging = parts[2];
        version = parts[3];
        break;

      case 5:
        // groupId:artifactId:packaging:classifier:version
        packaging = parts[2];
        classifier = parts[3];
        version = parts[4];
        break;

      default:
        throw new MojoFailureException("Invalid artifact: " + artifact);
    }

    String groupId = parts[0];
    String artifactId = parts[1];

    return createArtifact(artifactId, groupId, version, packaging, classifier);
  }
211229
private String getProjectReferenceId( final String groupId, final String artifactId, final String version )
    {
        return groupId + ":" + artifactId + ":" + version;
    }
196972
public String getCanonical() {
    if (BioVerb_Type.featOkTst && ((BioVerb_Type)jcasType).casFeat_canonical == null)
      jcasType.jcas.throwFeatMissing("canonical", "ch.epfl.bbp.uima.types.BioVerb");
    return jcasType.ll_cas.ll_getStringValue(addr, ((BioVerb_Type)jcasType).casFeatCode_canonical);}
860288
public static String getVersion(String groupId, String artifactId) {
        String key = "" + groupId + "/" + artifactId;
        Map<String, String> map = getGroupArtifactVersionMap();
        String version = map.get(key);
        if (version == null) {
            getLOG().warn("Could not find the version for groupId: " + groupId + " artifactId: " + artifactId + " in: " + map);
        }
        return version;
    }
1108923
public static ExtensionId toExtensionId(String groupId, String artifactId, String classifier, Version version)
    {
        String extensionId = toExtensionId(groupId, artifactId, classifier);

        return new ExtensionId(extensionId, version);
    }
859220
@SuppressWarnings("static-method")
	public Dependency toDependency(Artifact artifact) {
		final Dependency result = new Dependency();
		result.setArtifactId(artifact.getArtifactId());
		result.setClassifier(artifact.getClassifier());
		result.setGroupId(artifact.getGroupId());
		result.setOptional(artifact.isOptional());
		result.setScope(artifact.getScope());
		result.setType(artifact.getType());
		result.setVersion(artifact.getVersion());
		return result;
	}
104195
private Element getMavenPluginElement() {
        try {
            final Element pluginsRoot = document.getRootElement().element("build").element("plugins");
            for (final Element element : pluginsRoot.elements()) {
                final String groupId = XMLUtils.getChildValue("groupId", element);
                final String artifactId = XMLUtils.getChildValue("artifactId", element);
                if (PLUGIN_GROUPID.equals(groupId) && PLUGIN_ARTIFACTID.equals(artifactId)) {
                    return element;
                }
            }
        } catch (NullPointerException e) {
            return null;
        }
        return null;
    }
124273
public static Artifact getIdlArtifact(Artifact artifact, ArtifactFactory artifactFactory,
                                        ArtifactResolver artifactResolver,
                                        ArtifactRepository localRepository,
                                        List<ArtifactRepository> remoteRepos,
                                        String classifier)
    throws MojoExecutionException {
    Artifact idlArtifact = artifactFactory.createArtifactWithClassifier(
                                             artifact.getGroupId(),
                                             artifact.getArtifactId(),
                                             artifact.getVersion(),
                                             "jar",
                                             classifier);
    try {
      artifactResolver.resolve(idlArtifact, remoteRepos, localRepository);
      return idlArtifact;
    } catch (final ArtifactResolutionException e) {
      throw new MojoExecutionException(
        "Failed to resolve one or more idl artifacts:\n\n" + e.getMessage(), e);
    } catch (final ArtifactNotFoundException e) {
      throw new MojoExecutionException(
      "Failed to resolve one or more idl artifacts:\n\n" + e.getMessage(), e);
    }
  }
469492
protected String resolveArtifactId() {
		if (this.artifactId != null) {
			return this.artifactId;
		}
		if (this.output != null) {
			int i = this.output.lastIndexOf('.');
			return (i != -1) ? this.output.substring(0, i) : this.output;
		}
		return null;
	}
454814
public Set<Artifact> resolve(String groupId, String artifactId) throws MojoExecutionException {
		final ArtifactResolutionRequest request = new ArtifactResolutionRequest();
		request.setResolveRoot(true);
		request.setResolveTransitively(true);
		request.setLocalRepository(getSession().getLocalRepository());
		request.setRemoteRepositories(getSession().getCurrentProject().getRemoteArtifactRepositories());
		request.setOffline(getSession().isOffline());
		request.setForceUpdate(getSession().getRequest().isUpdateSnapshots());
		request.setServers(getSession().getRequest().getServers());
		request.setMirrors(getSession().getRequest().getMirrors());
		request.setProxies(getSession().getRequest().getProxies());
		request.setArtifact(createArtifact(groupId, artifactId));

		final ArtifactResolutionResult result = resolve(request);

		return result.getArtifacts();
	}
462469
private File resolveArtifact(ClusterConfiguration config)
            throws ArtifactException, IOException
    {
        String flavour = config.getFlavour();
        String version = config.getVersion();
        String artifactId = getArtifactId(flavour, version);
        String classifier = getArtifactClassifier(version);
        String type = getArtifactType(version);

        ElasticsearchArtifact artifactReference = new ElasticsearchArtifact(artifactId, version, classifier, type);
        config.getLog().debug("Artifact ref: " + artifactReference);

        PluginArtifactResolver artifactResolver = config.getArtifactResolver();
        try
        {
            config.getLog().debug("Resolving artifact against the local maven repo (stage 1)");
            return artifactResolver
                    .resolveArtifact(artifactReference.getArtifactCoordinates());
        }
        catch (ArtifactException e)
        {
            config.getLog().debug("Artifact not found; downloading and installing it");

            File tempFile = downloadArtifact(artifactReference, config);

            config.getLog().debug("Installing " + tempFile + " in the local maven repo");
            config.getArtifactInstaller().installArtifact(
                    artifactReference.getGroupId(),
                    artifactReference.getArtifactId(),
                    artifactReference.getVersion(),
                    artifactReference.getClassifier(),
                    artifactReference.getType(),
                    tempFile);
            
            config.getLog().debug("Resolving artifact against the local maven repo (stage 2)");
            return artifactResolver
                    .resolveArtifact(artifactReference.getArtifactCoordinates());
        }
    }
1033081
public static Plugin plugin(String groupId, String artifactId) {
		return plugin(groupId, artifactId, null);
	}