Package org.apache.maven.plugin.deploy.stubs

Examples of org.apache.maven.plugin.deploy.stubs.ArtifactRepositoryStub


       
        assertEquals( "jar", packaging );
       
        artifact.setFile( file );       
       
        ArtifactRepositoryStub repo = getRepoStub( mojo );

        assertNotNull( repo );
       
        repo.setAppendToUrl( "basic-deploy-test" );
       
        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();
View Full Code Here


        assertEquals( "jar", packaging );

        artifact.setFile( file );

        ArtifactRepositoryStub repo = getRepoStub( mojo );

        assertNotNull( repo );

        repo.setAppendToUrl( "basic-deploy-test" );

        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() );

        setVariableValueToObject( mojo, "skip", Boolean.TRUE );
       
        mojo.execute();
View Full Code Here

       
        artifact = ( DeployArtifactStub ) getVariableValueFromObject( mojo, "artifact" );
       
        artifact.setArtifactHandlerExtension( packaging );
       
        ArtifactRepositoryStub repo = getRepoStub( mojo );
       
        repo.setAppendToUrl( "basic-deploy-pom" );
       
        mojo.execute();
       
        List expectedFiles = new ArrayList();
        List fileList = new ArrayList();
View Full Code Here

       
        artifact = ( DeployArtifactStub ) getVariableValueFromObject( mojo, "artifact" );
       
        artifact.setFile( testPom );
       
        ArtifactRepositoryStub repo = getRepoStub( mojo );
       
        repo.setAppendToUrl( "basic-deploy-updateReleaseParam" );       
       
        mojo.execute();
       
        assertTrue( artifact.isRelease() );
    }
View Full Code Here

       
        artifact.setFile( file );
       
        List attachedArtifacts = ( ArrayList ) getVariableValueFromObject( mojo, "attachedArtifacts" );

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

        String packaging = getVariableValueFromObject( mojo, "packaging" ).toString();
View Full Code Here

       
        assertEquals( "jar", packaging );
       
        artifact.setFile( file );       
       
        ArtifactRepositoryStub repo = getRepoStub( mojo );

        assertNotNull( repo );
       
        repo.setAppendToUrl( "basic-deploy-test" );
       
        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<String> expectedFiles = new ArrayList<String>();
View Full Code Here

        assertEquals( "jar", packaging );

        artifact.setFile( file );

        ArtifactRepositoryStub repo = getRepoStub( mojo );

        assertNotNull( repo );

        repo.setAppendToUrl( "basic-deploy-test" );

        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() );

        setVariableValueToObject( mojo, "skip", Boolean.TRUE );
       
        mojo.execute();
View Full Code Here

        artifact = (DeployArtifactStub) project.getArtifact();
       
        artifact.setArtifactHandlerExtension( packaging );
       
        ArtifactRepositoryStub repo = getRepoStub( mojo );
       
        repo.setAppendToUrl( "basic-deploy-pom" );
       
        mojo.execute();
       
        List<String> expectedFiles = new ArrayList<String>();
        List<String> fileList = new ArrayList<String>();
View Full Code Here

        artifact = (DeployArtifactStub) project.getArtifact();
       
        artifact.setFile( testPom );
       
        ArtifactRepositoryStub repo = getRepoStub( mojo );
       
        repo.setAppendToUrl( "basic-deploy-updateReleaseParam" );       
       
        mojo.execute();
       
        assertTrue( artifact.isRelease() );
    }
View Full Code Here

       
       
        @SuppressWarnings( "unchecked" )
        List<AttachedArtifactStub> attachedArtifacts = project.getAttachedArtifacts();

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

        String packaging = project.getPackaging();
View Full Code Here

TOP

Related Classes of org.apache.maven.plugin.deploy.stubs.ArtifactRepositoryStub

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.