public SimpleVersionlessArtifactRef( final String groupId, final String artifactId, final String type, final String classifier ) throws InvalidVersionSpecificationException { super( groupId, artifactId ); this.tc = new SimpleTypeAndClassifier( type, classifier ); }
public TypeAndClassifier detach() { return new SimpleTypeAndClassifier( this ); }
public SimpleArtifactRef( final String groupId, final String artifactId, final VersionSpec version, final String type, final String classifier ) { super( groupId, artifactId, version ); this.tc = new SimpleTypeAndClassifier( type, classifier ); }
public SimpleArtifactRef( final String groupId, final String artifactId, final String versionSpec, final String type, final String classifier ) throws InvalidVersionSpecificationException { super( groupId, artifactId, versionSpec ); this.tc = new SimpleTypeAndClassifier( type, classifier ); }
@Override public VersionlessArtifactRef asVersionlessArtifactRef( final String type, final String classifier ) { final TypeAndClassifier tc = new SimpleTypeAndClassifier( type, classifier ); if ( SimpleVersionlessArtifactRef.class.equals( getClass() ) && this.tc.equals( tc ) ) { return this; } return super.asVersionlessArtifactRef( type, classifier ); }
public SimpleVersionlessArtifactRef( final ProjectRef ref, final TypeAndClassifier tc ) { super( ref.getGroupId(), ref.getArtifactId() ); this.tc = tc == null ? new SimpleTypeAndClassifier() : tc; }
private SimpleTypeAndClassifier getSimpleTypeAndClassifier( final TypeAndClassifier tc ) { if ( tc instanceof SimpleTypeAndClassifier ) { return ( SimpleTypeAndClassifier ) tc; } else { return new SimpleTypeAndClassifier( tc.getType(), tc.getClassifier() ); } }
public SimpleVersionlessArtifactRef( final ProjectRef ref, final String type, final String classifier ) { super( ref.getGroupId(), ref.getArtifactId() ); this.tc = new SimpleTypeAndClassifier( type, classifier ); }
public SimpleArtifactRef( final ProjectVersionRef ref, final String type, final String classifier ) { super( ref.getGroupId(), ref.getArtifactId(), ref.getVersionSpecRaw(), ref.getVersionStringRaw() ); this.tc = new SimpleTypeAndClassifier( type, classifier ); }
tc = new SimpleTypeAndClassifier( pathInfo.getType(), pathInfo.getClassifier() );
pomArtifact = new SimpleVersionlessArtifactRef( r, new SimpleTypeAndClassifier( "pom" ) ); logger.debug( "No artifacts found for: {}; created POM artifact for inclusion: {}", r, pomArtifact );
pomArtifact = new SimpleVersionlessArtifactRef( r, new SimpleTypeAndClassifier( "pom" ) ); logger.debug( "No artifacts found for: {}; created POM artifact for inclusion: {}", r, pomArtifact );