Package org.apache.maven.artifact.ant

Examples of org.apache.maven.artifact.ant.InstallDeployTaskSupport


    public void abortPublishTransaction() throws IOException {
        // do nothing
    }

    public void commitPublishTransaction() throws IOException {
        InstallDeployTaskSupport installDeployTaskSupport = createPreConfiguredTask(AntUtil.createProject());
        Set<DefaultMavenDeployment> defaultMavenDeployments = getArtifactPomContainer().createDeployableFilesInfos();
        File emptySettingsXml = createEmptyMavenSettingsXml();
        installDeployTaskSupport.setSettingsFile(emptySettingsXml);
        for (DefaultMavenDeployment defaultMavenDeployment : defaultMavenDeployments) {
            beforeDeploymentActions.execute(defaultMavenDeployment);
            addPomAndArtifact(installDeployTaskSupport, defaultMavenDeployment);
            execute(installDeployTaskSupport);
        }
View Full Code Here


    private boolean isIgnorable(Artifact artifact) {
        return artifact.getType().equals("ivy");
    }

    private void publish() {
        InstallDeployTaskSupport installDeployTaskSupport = createPreConfiguredTask(AntUtil.createProject());
        Set<MavenDeployment> mavenDeployments = getArtifactPomContainer().createDeployableFilesInfos();
        mavenSettingsSupplier.supply(installDeployTaskSupport);
        for (MavenDeployment mavenDeployment : mavenDeployments) {
            ((CustomInstallDeployTaskSupport) installDeployTaskSupport).clearAttachedArtifactsList();
            beforeDeploymentActions.execute(mavenDeployment);
View Full Code Here

TOP

Related Classes of org.apache.maven.artifact.ant.InstallDeployTaskSupport

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.