org.apache.maven.artifact.Artifact.getDownloadUrl()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(5.4k)|赞(0)|评价(0)|浏览(80)

本文整理了Java中org.apache.maven.artifact.Artifact.getDownloadUrl()方法的一些代码示例,展示了Artifact.getDownloadUrl()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Artifact.getDownloadUrl()方法的具体详情如下:
包路径:org.apache.maven.artifact.Artifact
类名称:Artifact
方法名:getDownloadUrl

Artifact.getDownloadUrl介绍

暂无

代码示例

代码示例来源:origin: org.apache.maven/maven-project

/** {@inheritDoc} */
public String getDownloadUrl()
{
  return artifact.getDownloadUrl();
}

代码示例来源:origin: apache/maven

/** {@inheritDoc} */
public String getDownloadUrl()
{
  return artifact.getDownloadUrl();
}

代码示例来源:origin: org.apache.maven/maven-project

public String getDownloadUrl()
{
  return parent.getDownloadUrl();
}

代码示例来源:origin: apache/maven

public String getDownloadUrl()
{
  return parent.getDownloadUrl();
}

代码示例来源:origin: org.apache.maven/maven-artifact

public ArtifactNotFoundException( String message, Artifact artifact )
{
  this( message, artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion(), artifact.getType(),
     artifact.getClassifier(), null, artifact.getDownloadUrl(), artifact.getDependencyTrail() );
}

代码示例来源:origin: org.apache.maven/maven-artifact

protected ArtifactNotFoundException( String message, Artifact artifact,
                   List<ArtifactRepository> remoteRepositories, Throwable cause )
{
  this( message, artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion(), artifact.getType(),
     artifact.getClassifier(), remoteRepositories, artifact.getDownloadUrl(), artifact.getDependencyTrail(),
     cause );
}

代码示例来源:origin: apache/maven

public ArtifactNotFoundException( String message, Artifact artifact )
{
  this( message, artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion(), artifact.getType(),
     artifact.getClassifier(), null, artifact.getDownloadUrl(), artifact.getDependencyTrail() );
}

代码示例来源:origin: apache/maven

protected ArtifactNotFoundException( String message, Artifact artifact,
                   List<ArtifactRepository> remoteRepositories, Throwable cause )
{
  this( message, artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion(), artifact.getType(),
     artifact.getClassifier(), remoteRepositories, artifact.getDownloadUrl(), artifact.getDependencyTrail(),
     cause );
}

代码示例来源:origin: org.apache.maven/maven-artifact

private static String constructMessage( List<Artifact> artifacts )
{
  StringBuilder buffer = new StringBuilder( 256 );
  buffer.append( "Missing:\n" );
  buffer.append( "----------\n" );
  int counter = 0;
  for ( Artifact artifact : artifacts )
  {
    String message = ( ++counter ) + ") " + artifact.getId();
    buffer.append( constructMissingArtifactMessage( message, "  ", artifact.getGroupId(),
        artifact.getArtifactId(), artifact.getVersion(), artifact.getType(), artifact.getClassifier(),
        artifact.getDownloadUrl(), artifact.getDependencyTrail() ) );
  }
  buffer.append( "----------\n" );
  int size = artifacts.size();
  buffer.append( size ).append( " required artifact" );
  if ( size > 1 )
  {
    buffer.append( "s are" );
  }
  else
  {
    buffer.append( " is" );
  }
  buffer.append( " missing.\n\nfor artifact: " );
  return buffer.toString();
}

代码示例来源:origin: apache/maven

private static String constructMessage( List<Artifact> artifacts )
{
  StringBuilder buffer = new StringBuilder( 256 );
  buffer.append( "Missing:\n" );
  buffer.append( "----------\n" );
  int counter = 0;
  for ( Artifact artifact : artifacts )
  {
    String message = ( ++counter ) + ") " + artifact.getId();
    buffer.append( constructMissingArtifactMessage( message, "  ", artifact.getGroupId(),
        artifact.getArtifactId(), artifact.getVersion(), artifact.getType(), artifact.getClassifier(),
        artifact.getDownloadUrl(), artifact.getDependencyTrail() ) );
  }
  buffer.append( "----------\n" );
  int size = artifacts.size();
  buffer.append( size ).append( " required artifact" );
  if ( size > 1 )
  {
    buffer.append( "s are" );
  }
  else
  {
    buffer.append( " is" );
  }
  buffer.append( " missing.\n\nfor artifact: " );
  return buffer.toString();
}

代码示例来源:origin: apache/maven

clone.setDownloadUrl( artifact.getDownloadUrl() );
clone.setRepository( artifact.getRepository() );

代码示例来源:origin: org.apache.maven/maven-artifact

clone.setDownloadUrl( artifact.getDownloadUrl() );
clone.setRepository( artifact.getRepository() );

代码示例来源:origin: org.apache.maven/maven-project

if ( artifact.getDownloadUrl() == null && pomArtifact != null )
  artifact.setDownloadUrl( pomArtifact.getDownloadUrl() );

代码示例来源:origin: org.apache.maven.plugins/maven-gpg-plugin

public String getDownloadUrl()
{
  return delegate.getDownloadUrl();
}

代码示例来源:origin: org.netbeans.api/org-netbeans-modules-maven-embedder

public String getDownloadUrl() {
  return original.getDownloadUrl();
}

代码示例来源:origin: org.codehaus.mevenide/nb-mvn-embedder

public String getDownloadUrl() {
  return original.getDownloadUrl();
}

代码示例来源:origin: de.saumya.mojo/gem-maven-plugin

public String getDownloadUrl() {
  return this.artifact.getDownloadUrl();
}

代码示例来源:origin: torquebox/jruby-maven-plugins

public String getDownloadUrl() {
  return this.artifact.getDownloadUrl();
}

代码示例来源:origin: io.tesla.maven/maven-artifact

public ArtifactNotFoundException( String message, Artifact artifact )
{
  this( message, artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion(), artifact.getType(),
     artifact.getClassifier(), null, artifact.getDownloadUrl(), artifact.getDependencyTrail() );
}

代码示例来源:origin: io.tesla.maven/maven-artifact

protected ArtifactNotFoundException( String message, Artifact artifact,
                   List<ArtifactRepository> remoteRepositories, Throwable cause )
{
  this( message, artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion(), artifact.getType(),
     artifact.getClassifier(), remoteRepositories, artifact.getDownloadUrl(), artifact.getDependencyTrail(),
     cause );
}

相关文章

微信公众号

最新文章

更多