Package org.apache.maven.plugin.deploy

Examples of org.apache.maven.plugin.deploy.DeployMojo.execute()


        assertEquals( "deploy-test", repo.getId() );
        assertEquals( "deploy-test", repo.getKey() );
        assertEquals( "file", repo.getProtocol() );
        assertEquals( "file://" + getBasedir() + "/target/remote-repo/basic-deploy-test", repo.getUrl() );
       
        mojo.execute();

        //check the artifact in local repository
        List expectedFiles = new ArrayList();
        List fileList = new ArrayList();
       
View Full Code Here


        assertEquals( "file", repo.getProtocol() );
        assertEquals( "file://" + getBasedir() + "/target/remote-repo/basic-deploy-test", repo.getUrl() );

        setVariableValueToObject( mojo, "skip", Boolean.TRUE );
       
        mojo.execute();

        File localRepo = new File( LOCAL_REPO, "" );

        File[] files = localRepo.listFiles();
View Full Code Here

       
        ArtifactRepositoryStub repo = getRepoStub( mojo );
       
        repo.setAppendToUrl( "basic-deploy-pom" );
       
        mojo.execute();
       
        List expectedFiles = new ArrayList();
        List fileList = new ArrayList();
       
        expectedFiles.add( "org" );
View Full Code Here

       
        ArtifactRepositoryStub repo = getRepoStub( mojo );
       
        repo.setAppendToUrl( "basic-deploy-updateReleaseParam" );       
       
        mojo.execute();
       
        assertTrue( artifact.isRelease() );
    }

    public void testDeployIfArtifactFileIsNull()
View Full Code Here

       
        assertNull( artifact.getFile() );
       
        try
        {
            mojo.execute();

            fail( "Did not throw mojo execution exception" );
        }
        catch( MojoExecutionException e )
        {
View Full Code Here

        ArtifactRepositoryStub repo = getRepoStub( mojo );
       
        repo.setAppendToUrl( "basic-deploy-with-attached-artifacts" );         
       
        mojo.execute();

        String packaging = getVariableValueFromObject( mojo, "packaging" ).toString();

        for( Iterator iter=attachedArtifacts.iterator(); iter.hasNext(); )
        {
View Full Code Here

        if( sshFile.exists() )
        {
            FileUtils.deleteDirectory( sshFile );
        }

        mojo.execute();
           
        assertTrue( sshFile.exists() );
       
        FileUtils.deleteDirectory( sshFile );
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.