本文整理了Java中org.apache.maven.artifact.Artifact.setRelease()
方法的一些代码示例,展示了Artifact.setRelease()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Artifact.setRelease()
方法的具体详情如下:
包路径:org.apache.maven.artifact.Artifact
类名称: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 );
内容来源于网络,如有侵权,请联系作者删除!