public boolean isSelectedVersionKnown( Artifact artifact ) throws OverConstrainedVersionException { boolean value = false; if ( recommendedVersion != null ) { value = true; } else { if ( restrictions.size() == 0 ) { throw new OverConstrainedVersionException( "The artifact has no valid ranges", artifact ); } } return value; }
logger.debug( "While recursing: " + e.getMessage(), e ); result.addVersionRangeViolation( e );
throw new MojoFailureException("Invalid comparison version: " + e.getMessage(), e); } catch (ArtifactMetadataRetrievalException e) { throw new MojoExecutionException("Error determining previous version: " + e.getMessage(), e);
public boolean isSelectedVersionKnown( Artifact artifact ) throws OverConstrainedVersionException { boolean value = false; if ( recommendedVersion != null ) { value = true; } else { if ( restrictions.size() == 0 ) { throw new OverConstrainedVersionException( "The artifact has no valid ranges", artifact ); } } return value; }
throw new MojoFailureException( "Invalid comparison version: " + ocve.getMessage() );
public ArtifactVersion getSelectedVersion( Artifact artifact ) throws OverConstrainedVersionException { ArtifactVersion version; if ( recommendedVersion != null ) { version = recommendedVersion; } else { if ( restrictions.size() == 0 ) { throw new OverConstrainedVersionException( "The artifact has no valid ranges", artifact ); } version = null; } return version; }
public ArtifactVersion getSelectedVersion( Artifact artifact ) throws OverConstrainedVersionException { ArtifactVersion version; if ( recommendedVersion != null ) { version = recommendedVersion; } else { if ( restrictions.size() == 0 ) { throw new OverConstrainedVersionException( "The artifact has no valid ranges", artifact ); } version = null; } return version; }
throw new OverConstrainedVersionException( "Unable to get a selected Version for " + artifact.getArtifactId(), artifact );
throw new OverConstrainedVersionException( "Unable to find a version in " + resetArtifact.getAvailableVersions() + " to match the range " + resetArtifact.getVersionRange(), throw new OverConstrainedVersionException( "No versions are present in the repository for the artifact" + " with a range " + versionRange, artifact, throw new OverConstrainedVersionException( "Couldn't find a version in " + versions + " to match range " + versionRange, artifact, childRemoteRepositories );
public boolean isSelectedVersionKnown( Artifact artifact ) throws OverConstrainedVersionException { boolean value = false; if ( recommendedVersion != null ) { value = true; } else { if ( restrictions.size() == 0 ) { throw new OverConstrainedVersionException( "The artifact has no valid ranges", artifact ); } } return value; }
public ArtifactVersion getSelectedVersion( Artifact artifact ) throws OverConstrainedVersionException { ArtifactVersion version; if ( recommendedVersion != null ) { version = recommendedVersion; } else { if ( restrictions.size() == 0 ) { throw new OverConstrainedVersionException( "The artifact has no valid ranges", artifact ); } version = null; } return version; }