本文整理了Java中org.apache.maven.artifact.Artifact.setArtifactHandler()
方法的一些代码示例,展示了Artifact.setArtifactHandler()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Artifact.setArtifactHandler()
方法的具体详情如下:
包路径:org.apache.maven.artifact.Artifact
类名称:Artifact
方法名:setArtifactHandler
暂无
代码示例来源:origin: org.apache.maven/maven-project
/** {@inheritDoc} */
public void setArtifactHandler( ArtifactHandler handler )
{
artifact.setArtifactHandler( handler );
}
代码示例来源:origin: apache/maven
/** {@inheritDoc} */
public void setArtifactHandler( ArtifactHandler handler )
{
artifact.setArtifactHandler( handler );
}
代码示例来源:origin: org.apache.maven/maven-project
result.setArtifactHandler( artifact.getArtifactHandler() );
result.setDependencyFilter( artifact.getDependencyFilter() );
result.setDependencyTrail( artifact.getDependencyTrail() );
代码示例来源:origin: org.apache.maven.plugins/maven-gpg-plugin
public void setArtifactHandler( ArtifactHandler artifactHandler )
{
delegate.setArtifactHandler( artifactHandler );
}
代码示例来源:origin: org.netbeans.api/org-netbeans-modules-maven-embedder
public void setArtifactHandler(ArtifactHandler handler) {
original.setArtifactHandler(handler);
}
代码示例来源:origin: org.codehaus.mevenide/nb-mvn-embedder
public void setArtifactHandler(ArtifactHandler handler) {
original.setArtifactHandler(handler);
}
代码示例来源:origin: torquebox/jruby-maven-plugins
public void setArtifactHandler(final ArtifactHandler handler) {
this.artifact.setArtifactHandler(handler);
}
代码示例来源:origin: de.saumya.mojo/gem-maven-plugin
public void setArtifactHandler(final ArtifactHandler handler) {
this.artifact.setArtifactHandler(handler);
}
代码示例来源:origin: grails/grails-maven
/**
* Executes the MvnWarMojo on the current project.
*
* @throws org.apache.maven.plugin.MojoExecutionException if an error occured while building the webapp
*/
public void execute() throws MojoExecutionException, MojoFailureException {
super.execute();
// Make the WAR file the build artifact.
artifact.setFile(warFile);
artifact.setArtifactHandler(artifactHandler);
}
}
代码示例来源:origin: de.saumya.mojo/gem-maven-plugin
public GemArtifact(final MavenProject project) {
this.artifact = project.getArtifact();
this.jarFile = this.artifact.getFile();
if (isGem()) {
if ( project.getBuild().getFinalName() == null || !project.getGroupId().equals("rubygems")) {
this.artifact.setFile(new File(new File(project.getBuild()
.getDirectory()), getGemFile()));
}
else {
this.artifact.setFile(new File(new File(project.getBuild()
.getDirectory()), project.getBuild().getFinalName() + ".gem" ) );
}
}
// allow maven2 to do the right thing with the classifier
project.setArtifact(this);
this.artifact.setArtifactHandler(new GemArtifactHandler(this.artifact.getArtifactHandler()));
}
代码示例来源:origin: grails/grails-maven
artifact.setArtifactHandler(handler);
代码示例来源:origin: torquebox/jruby-maven-plugins
public GemArtifact(final MavenProject project) {
this.artifact = project.getArtifact();
this.jarFile = this.artifact.getFile();
if (isGem()) {
if ( project.getBuild().getFinalName() == null || !project.getGroupId().equals("rubygems")) {
this.artifact.setFile(new File(new File(project.getBuild()
.getDirectory()), getGemFile()));
}
else {
this.artifact.setFile(new File(new File(project.getBuild()
.getDirectory()), project.getBuild().getFinalName() + ".gem" ) );
}
}
// allow maven2 to do the right thing with the classifier
project.setArtifact(this);
this.artifact.setArtifactHandler(new GemArtifactHandler(this.artifact.getArtifactHandler()));
}
代码示例来源:origin: grails/grails-maven
/**
* Executes the MvnGrailsStandaloneJettyMojo on the current project.
*
* @throws MojoExecutionException if an error occured while building the webapp
*/
public void execute() throws MojoExecutionException, MojoFailureException {
Build build = project.getBuild();
String jarFileName = build.getFinalName() != null ? build.getFinalName() : project.getArtifactId() + "-" + project.getVersion();
if(!jarFileName.endsWith(".jar")) {
jarFileName += ".jar";
}
jarFile = new File(build.getDirectory(), jarFileName);
if(getEnvironment() == null) {
env = "prod";
}
runGrails("BuildStandalone", "--jetty " + jarFile.toString());
// Make the WAR file the build artifact.
artifact.setFile(jarFile);
artifact.setArtifactHandler(artifactHandler);
}
}
代码示例来源:origin: com.atlassian.maven.plugins/amps-maven-plugin
project.getArtifact().setArtifactHandler(artifactHandlerManager.getArtifactHandler("jar"));
代码示例来源:origin: com.atlassian.maven.plugins/maven-amps-plugin
project.getArtifact().setArtifactHandler(artifactHandlerManager.getArtifactHandler("jar"));
代码示例来源:origin: com.atlassian.maven.plugins/maven-amps-plugin
project.getArtifact().setArtifactHandler(artifactHandlerManager.getArtifactHandler("jar"));
代码示例来源:origin: net.jangaroo/jangaroo-maven-plugin
mainArtifact.setFile(zipFile);
mainArtifact.setArtifactHandler(artifactHandlerManager.getArtifactHandler(extension));
代码示例来源:origin: net.jangaroo/jangaroo-maven-plugin
mainArtifact.setFile(jarFile);
mainArtifact.setArtifactHandler(artifactHandlerManager.getArtifactHandler(Type.JAR_EXTENSION));
代码示例来源:origin: apache/asterixdb
Artifact.SCOPE_COMPILE, "jar", "sources", null);
MavenProject mavenProject = mojo.resolveDependency(sourcesArtifact);
sourcesArtifact.setArtifactHandler(mavenProject.getArtifact().getArtifactHandler());
final ArtifactRepository localRepo = mojo.getSession().getLocalRepository();
final File marker = new File(localRepo.getBasedir(), localRepo.pathOf(sourcesArtifact) + ".oncentral");
代码示例来源:origin: guru.nidi/build-tools
public static ArtifactResolutionResult resolveArtifact(MavenSession session, RepositorySystem repository, Artifact artifact, boolean transitive, ArtifactFilter resolutionFilter) {
artifact.setArtifactHandler(new DefaultArtifactHandler(artifact.getType()));
ArtifactResolutionRequest request = new ArtifactResolutionRequest()
.setArtifact(artifact)
.setResolveRoot(true)
.setServers(session.getRequest().getServers())
.setMirrors(session.getRequest().getMirrors())
.setProxies(session.getRequest().getProxies())
.setLocalRepository(session.getLocalRepository())
.setRemoteRepositories(session.getRequest().getRemoteRepositories())
.setResolveTransitively(transitive)
.setCollectionFilter(resolutionFilter)
.setResolutionFilter(resolutionFilter);
//.setListeners(Arrays.<ResolutionListener>asList(new DebugResolutionListener(new ConsoleLogger())));
return repository.resolve(request);
}
内容来源于网络,如有侵权,请联系作者删除!