Tabnine Logo
ArchivaProjectModel.getArtifactId
Code IndexAdd Tabnine to your IDE (free)

How to use
getArtifactId
method
in
org.apache.maven.archiva.model.ArchivaProjectModel

Best Java code snippets using org.apache.maven.archiva.model.ArchivaProjectModel.getArtifactId (Showing top 11 results out of 315)

origin: org.apache.archiva/archiva-database-consumers

  private String toProjectKey( ArchivaProjectModel project )
  {
    StringBuilder key = new StringBuilder();

    key.append( project.getGroupId() ).append( ":" );
    key.append( project.getArtifactId() ).append( ":" );
    key.append( project.getVersion() );

    return key.toString();
  }
}
origin: org.apache.maven.archiva/archiva-database-consumers

private void appendModel( StringBuffer buf, ArchivaProjectModel model )
{
  buf.append( "groupId:" ).append( model.getGroupId() );
  buf.append( "|artifactId:" ).append( model.getArtifactId() );
  buf.append( "|version:" ).append( model.getVersion() );
  buf.append( "|packaging:" ).append( model.getPackaging() );
}
origin: org.apache.archiva/archiva-database-consumers

private String toProjectKey( ArchivaProjectModel project )
{
  StringBuilder key = new StringBuilder();
  key.append( project.getGroupId() ).append( ":" );
  key.append( project.getArtifactId() ).append( ":" );
  key.append( project.getVersion() );
  return key.toString();
}
origin: org.apache.archiva/archiva-database-consumers

private void appendModel( StringBuffer buf, ArchivaProjectModel model )
{
  buf.append( "groupId:" ).append( model.getGroupId() );
  buf.append( "|artifactId:" ).append( model.getArtifactId() );
  buf.append( "|version:" ).append( model.getVersion() );
  buf.append( "|packaging:" ).append( model.getPackaging() );
}
origin: org.apache.maven.archiva/archiva-model

/**
 * Method toString
 */
public java.lang.String toString()
{
  StringBuffer buf = new StringBuffer();
  buf.append( "groupId = '" );
  buf.append( getGroupId() + "'" );
  buf.append( "\n" ); 
  buf.append( "artifactId = '" );
  buf.append( getArtifactId() + "'" );
  buf.append( "\n" ); 
  buf.append( "version = '" );
  buf.append( getVersion() + "'" );
  return buf.toString();
} //-- java.lang.String toString() 
origin: org.apache.maven.archiva/archiva-model

/**
 * Method equals
 * 
 * @param other
 */
public boolean equals(Object other)
{
  if ( this == other)
  {
    return true;
  }
  
  if ( !(other instanceof ArchivaProjectModel) )
  {
    return false;
  }
  
  ArchivaProjectModel that = (ArchivaProjectModel) other;
  boolean result = true;
  result = result && ( getGroupId() == null ? that.getGroupId() == null : getGroupId().equals( that.getGroupId() ) );
  result = result && ( getArtifactId() == null ? that.getArtifactId() == null : getArtifactId().equals( that.getArtifactId() ) );
  result = result && ( getVersion() == null ? that.getVersion() == null : getVersion().equals( that.getVersion() ) );
  return result;
} //-- boolean equals(Object) 
origin: org.apache.archiva/archiva-database-consumers

if ( !artifact.getArtifactId().equalsIgnoreCase( model.getArtifactId() ) )
  emsg.append( " has an invalid project model [" );
  appendModel( emsg, model );
  emsg.append( "]: The model artifactId [" ).append( model.getArtifactId() );
  emsg.append( "] does not match the artifactId portion of the filename: " ).append( artifact.getArtifactId() );
origin: org.apache.maven.archiva/archiva-model

public static String toKey( ArchivaProjectModel model )
{
  return toKey( model.getGroupId(), model.getArtifactId(), model.getVersion() );
}

origin: org.apache.maven.archiva/archiva-database-consumers

if ( !artifact.getArtifactId().equalsIgnoreCase( model.getArtifactId() ) )
  emsg.append( " has an invalid project model [" );
  appendModel( emsg, model );
  emsg.append( "]: The model artifactId [" ).append( model.getArtifactId() );
  emsg.append( "] does not match the artifactId portion of the filename: " ).append( artifact.getArtifactId() );
origin: org.apache.archiva/archiva-artifact-reports

private void validateAppropriateModel( String location, ArchivaArtifact artifact, ArchivaProjectModel model )
  throws ConsumerException
{
  if ( model != null )
  {
    if ( !StringUtils.equals( model.getGroupId(), artifact.getGroupId() ) )
    {
      addProblem( artifact, "The groupId of the " + location +
        " project model doesn't match with the artifact, expected <" + artifact.getGroupId() +
        ">, but was actually <" + model.getGroupId() + ">" );
    }
    if ( !StringUtils.equals( model.getArtifactId(), artifact.getArtifactId() ) )
    {
      addProblem( artifact, "The artifactId of the " + location +
        " project model doesn't match with the artifact, expected <" + artifact.getArtifactId() +
        ">, but was actually <" + model.getArtifactId() + ">" );
    }
    if ( !StringUtils.equals( model.getVersion(), artifact.getVersion() ) )
    {
      addProblem( artifact, "The version of the " + location +
        " project model doesn't match with the artifact, expected <" + artifact.getVersion() +
        ">, but was actually <" + model.getVersion() + ">" );
    }
  }
}
origin: org.apache.maven.archiva/archiva-model

public static ArchivaProjectModel clone( ArchivaProjectModel model )
{
  if ( model == null )
  {
    return null;
  }
  ArchivaProjectModel cloned = new ArchivaProjectModel();
  cloned.setGroupId( model.getGroupId() );
  cloned.setArtifactId( model.getArtifactId() );
  cloned.setVersion( model.getVersion() );
  cloned.setParentProject( clone( model.getParentProject() ) );
  cloned.setName( model.getName() );
  cloned.setDescription( model.getDescription() );
  cloned.setUrl( model.getUrl() );
  cloned.setPackaging( model.getPackaging() );
  cloned.setOrigin( model.getOrigin() );
  cloned.setMailingLists( cloneMailingLists( model.getMailingLists() ) );
  cloned.setCiManagement( clone( model.getCiManagement() ) );
  cloned.setIndividuals( cloneIndividuals( model.getIndividuals() ) );
  cloned.setIssueManagement( clone( model.getIssueManagement() ) );
  cloned.setLicenses( cloneLicenses( model.getLicenses() ) );
  cloned.setOrganization( clone( model.getOrganization() ) );
  cloned.setScm( clone( model.getScm() ) );
  cloned.setRepositories( cloneRepositories( model.getRepositories() ) );
  cloned.setDependencies( cloneDependencies( model.getDependencies() ) );
  cloned.setPlugins( clonePlugins( model.getPlugins() ) );
  cloned.setReports( cloneReports( model.getReports() ) );
  cloned.setDependencyManagement( cloneDependencies( model.getDependencyManagement() ) );
  return cloned;
}
org.apache.maven.archiva.modelArchivaProjectModelgetArtifactId

Javadoc

Get The Artifact ID of the repository content.

Popular methods of ArchivaProjectModel

  • getGroupId
    Get The Group ID of the repository content.
  • getVersion
    Get The version of the repository content.
  • setVersion
    Set The version of the repository content.
  • getPackaging
    Get The declared packaging for this project model.
  • <init>
  • getDependencies
    Method getDependencies
  • getDependencyManagement
    Method getDependencyManagement
  • setArtifactId
    Set The Artifact ID of the repository content.
  • setGroupId
    Set The Group ID of the repository content.
  • setOrigin
    Set The Origin of this Model. (Filesystem, Proxy, or Deploy)
  • setPackaging
    Set The declared packaging for this project model.
  • getBuildExtensions
    Method getBuildExtensions
  • setPackaging,
  • getBuildExtensions,
  • getCiManagement,
  • getDescription,
  • getIndividuals,
  • getIssueManagement,
  • getLicenses,
  • getMailingLists,
  • getName

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (Timer)
  • Kernel (java.awt.image)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now