public VersionRange getVersionRange() { return parent.getVersionRange(); }
/** {@inheritDoc} */ public VersionRange getVersionRange() { return artifact.getVersionRange(); }
/** {@inheritDoc} */ public VersionRange getVersionRange() { return artifact.getVersionRange(); }
public VersionRange getVersionRange() { return parent.getVersionRange(); }
public void restrictRange( Artifact artifact, Artifact replacement, VersionRange newRange ) { logger.debug( indent + artifact + " (range restricted from: " + artifact.getVersionRange() + " and: " + replacement.getVersionRange() + " to: " + newRange + " )" ); }
public void selectVersionFromRange( Artifact artifact ) { logger.debug( indent + artifact + " (setting version to: " + artifact.getVersion() + " from range: " + artifact.getVersionRange() + ")" ); }
public AttachedArtifact( Artifact parent, String type, String classifier, ArtifactHandler artifactHandler ) { super( parent.getGroupId(), parent.getArtifactId(), parent.getVersionRange(), parent.getScope(), type, classifier, artifactHandler, parent.isOptional() ); setDependencyTrail( Collections.singletonList( parent.getId() ) ); this.parent = parent; if ( getId().equals( parent.getId() ) ) { throw new InvalidArtifactRTException( parent.getGroupId(), parent.getArtifactId(), parent.getVersion(), parent.getType(), "An attached artifact must have a different ID than its corresponding main artifact." ); } }
public AttachedArtifact( Artifact parent, String type, String classifier, ArtifactHandler artifactHandler ) { super( parent.getGroupId(), parent.getArtifactId(), parent.getVersionRange(), parent.getScope(), type, classifier, artifactHandler, parent.isOptional() ); setDependencyTrail( Collections.singletonList( parent.getId() ) ); this.parent = parent; if ( getId().equals( parent.getId() ) ) { throw new InvalidArtifactRTException( parent.getGroupId(), parent.getArtifactId(), parent.getVersion(), parent.getType(), "An attached artifact must have a different ID" + " than its corresponding main artifact." ); } }
public static Artifact toArtifact( org.apache.maven.artifact.Artifact artifact ) { if ( artifact == null ) { return null; } String version = artifact.getVersion(); if ( version == null && artifact.getVersionRange() != null ) { version = artifact.getVersionRange().toString(); } Map<String, String> props = null; if ( org.apache.maven.artifact.Artifact.SCOPE_SYSTEM.equals( artifact.getScope() ) ) { String localPath = ( artifact.getFile() != null ) ? artifact.getFile().getPath() : ""; props = Collections.singletonMap( ArtifactProperties.LOCAL_PATH, localPath ); } Artifact result = new DefaultArtifact( artifact.getGroupId(), artifact.getArtifactId(), artifact.getClassifier(), artifact.getArtifactHandler().getExtension(), version, props, newArtifactType( artifact.getType(), artifact.getArtifactHandler() ) ); result = result.setFile( artifact.getFile() ); return result; }
public int getNature() { if ( artifact.getVersion() != null ) { return artifact.isSnapshot() ? SNAPSHOT : RELEASE; } VersionRange range = artifact.getVersionRange(); if ( range != null ) { for ( Restriction restriction : range.getRestrictions() ) { if ( isSnapshot( restriction.getLowerBound() ) || isSnapshot( restriction.getUpperBound() ) ) { return RELEASE_OR_SNAPSHOT; } } } return RELEASE; }
public static Artifact copyArtifact( Artifact artifact ) VersionRange range = artifact.getVersionRange();
public static Artifact copyArtifact( Artifact artifact ) VersionRange range = artifact.getVersionRange();
VersionRange previousRange = previous.getArtifact().getVersionRange(); VersionRange currentRange = node.getArtifact().getVersionRange(); if ( resetArtifact.getVersion() == null && resetArtifact.getVersionRange() != null ) ArtifactVersion selectedVersion = resetArtifact.getVersionRange(). matchVersion( resetArtifact.getAvailableVersions() ); + " to match the range " + resetArtifact.getVersionRange(), resetArtifact ); VersionRange versionRange = artifact.getVersionRange();
break; case ResolutionListener.RESTRICT_RANGE: if ( node.getArtifact().getVersionRange().hasRestrictions() || replacement.getVersionRange().hasRestrictions() )
public void restrictRange( Artifact artifact, Artifact replacement, VersionRange newRange ) { project.log( indent + artifact + " (range restricted from: " + artifact.getVersionRange() + " and: " + replacement.getVersionRange() + " to: " + newRange + " )" ); }
public void restrictRange( Artifact artifact, Artifact replacement, VersionRange newRange ) { project.log( indent + artifact + " (range restricted from: " + artifact.getVersionRange() + " and: " + replacement.getVersionRange() + " to: " + newRange + " )", Project.MSG_VERBOSE ); }
public void selectVersionFromRange( Artifact artifact ) { project.log( indent + artifact + " (setting version to: " + artifact.getVersion() + " from range: " + artifact.getVersionRange() + ")", Project.MSG_VERBOSE ); }
public void selectVersionFromRange( Artifact artifact ) { project.log( indent + artifact + " (setting version to: " + artifact.getVersion() + " from range: " + artifact.getVersionRange() + ")" ); }
public NarArtifact(final Artifact dependency, final NarInfo narInfo) { super(dependency.getGroupId(), dependency.getArtifactId(), dependency.getVersionRange(), dependency.getScope(), dependency.getType(), dependency.getClassifier(), dependency.getArtifactHandler(), dependency.isOptional()); this.setFile(dependency.getFile()); this.narInfo = narInfo; }
public AttachedNarArtifact(final Artifact parent, final String type, final String classifier) { super(parent.getGroupId(), parent.getArtifactId(), parent.getVersionRange(), parent.getScope(), type, classifier, null, parent.isOptional()); setArtifactHandler(new Handler(classifier)); }