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

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

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

Artifact.setRelease介绍

暂无

代码示例

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

/** {@inheritDoc} */
public void setRelease( boolean release )
{
  artifact.setRelease( release );
}

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

/** {@inheritDoc} */
public void setRelease( boolean release )
{
  artifact.setRelease( release );
}

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

result.setDependencyTrail( artifact.getDependencyTrail() );
result.setOptional( artifact.isOptional() );
result.setRelease( artifact.isRelease() );

代码示例来源:origin: org.apache.maven.plugin-testing/maven-plugin-testing-harness

/**
 * @param groupId not null
 * @param artifactId not null
 * @param versionRange not null
 * @param scope not null
 * @param type not null
 * @param classifier
 * @param optional not null
 * @return a <code>DefaultArtifact</code> instance
 * @throws IOException if any
 */
public Artifact createArtifact( String groupId, String artifactId, VersionRange versionRange, String scope,
                String type, String classifier, boolean optional )
  throws IOException
{
  ArtifactHandler ah = new DefaultArtifactHandlerStub( type, classifier );
  Artifact artifact =
    new DefaultArtifact( groupId, artifactId, versionRange, scope, type, classifier, ah, optional );
  // i have no idea why this needs to be done manually when isSnapshot is able to figure it out.
  artifact.setRelease( !artifact.isSnapshot() );
  if ( createFiles )
  {
    setArtifactFile( artifact, this.workingDir, this.srcFile, this.createUnpackableFile );
  }
  return artifact;
}

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

public void setRelease( boolean release )
{
  delegate.setRelease( release );
}

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

public void setRelease(boolean release) {
  original.setRelease(release);
}

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

public void setRelease(boolean release) {
  original.setRelease(release);
}

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

public void setRelease(final boolean release) {
  this.artifact.setRelease(release);
}

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

public void setRelease(final boolean release) {
  this.artifact.setRelease(release);
}

代码示例来源:origin: com.simpligility.org.apache.maven.plugin-testing/maven-plugin-testing-harness

/**
 * @param groupId not null
 * @param artifactId not null
 * @param versionRange not null
 * @param scope not null
 * @param type not null
 * @param classifier
 * @param optional not null
 * @return a <code>DefaultArtifact</code> instance
 * @throws IOException if any
 */
public Artifact createArtifact( String groupId, String artifactId, VersionRange versionRange, String scope,
                String type, String classifier, boolean optional )
  throws IOException
{
  ArtifactHandler ah = new DefaultArtifactHandlerStub( type, classifier );
  Artifact artifact =
    new DefaultArtifact( groupId, artifactId, versionRange, scope, type, classifier, ah, optional );
  // i have no idea why this needs to be done manually when isSnapshot is able to figure it out.
  artifact.setRelease( !artifact.isSnapshot() );
  if ( createFiles )
  {
    setArtifactFile( artifact, this.workingDir, this.srcFile, this.createUnpackableFile );
  }
  return artifact;
}

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

artifact.setRelease( true );

代码示例来源:origin: org.sonatype.plugins/nexus-staging-maven-plugin

artifact.setRelease(true);
  pomArtifact.setFile(pomFile);
  if (updateReleaseInfo) {
   pomArtifact.setRelease(true);

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

artifact.setRelease( true );

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

artifact.setRelease( true );
    if ( updateReleaseInfo )
      pomArtifact.setRelease( true );

相关文章

微信公众号

最新文章

更多