Examples of execute()


Examples of org.apache.maven.plugin.assembly.mojos.AssemblyMojo.execute()

        AssemblyMojo mojo = getMojo( "depSet-excludes-plugin-config.xml" );

        MavenProject project = (MavenProject) getVariableValueFromObject( mojo, "executedProject" );
        Set artifactSet = project.getArtifacts();

        mojo.execute();

        Map archiveMap = ArchiverManagerStub.archiverStub.getFiles();
        Collection archivedFiles = archiveMap.keySet();

        assertEquals( "Test number of files in archive", artifactSet.size(), archivedFiles.size() );
View Full Code Here

Examples of org.apache.maven.plugin.assembly.mojos.DirectoryInlineMojo.execute()

        DirectoryInlineMojo mojo = ( DirectoryInlineMojo ) lookupMojo( "directory-inline", testPom );

        assertNotNull( mojo );

        mojo.execute();

        Map filesArchived = ArchiverManagerStub.archiverStub.getFiles();

        Set files = filesArchived.keySet();
View Full Code Here

Examples of org.apache.maven.plugin.assembly.mojos.DirectoryMojo.execute()

        assertNotNull( mojo );

        AssemblyMojoTest.generateTestFileSets(getBasedir(), "\n");
       
        mojo.execute();

        Map filesArchived = ArchiverManagerStub.archiverStub.getFiles();

        Set files = filesArchived.keySet();
View Full Code Here

Examples of org.apache.maven.plugin.assembly.mojos.UnpackMojo.execute()

    {
        try
        {
            UnpackMojo mojo = getMojo( "archiver-manager-exception-plugin-config.xml" );

            mojo.execute();

            MavenProject project = (MavenProject) getVariableValueFromObject( mojo, "project" );
            String filename = project.getArtifact().getFile().getName();
            String dir = filename.substring( 0, filename.lastIndexOf( '.' ) );
            File workDir = (File) getVariableValueFromObject( mojo, "workDirectory" );
View Full Code Here

Examples of org.apache.maven.plugin.dependency.CopyDependenciesMojo.execute()

        if (!lib.exists()) {
            lib.mkdirs();
        }

        CopyDependenciesMojo cdm = new PlayCopyDependenciesMojo();
        cdm.execute();
    }

    private class PlayCopyDependenciesMojo extends CopyDependenciesMojo {

        public PlayCopyDependenciesMojo() {
View Full Code Here

Examples of org.apache.maven.plugin.dependency.analyze.AnalyzeDuplicateMojo.execute()

            new File( getBasedir(), "target/test-classes/unit/duplicate-dependencies/plugin-config.xml" );
        AnalyzeDuplicateMojo mojo = (AnalyzeDuplicateMojo) lookupMojo( "analyze-duplicate", testPom );
        assertNotNull( mojo );
        DuplicateLog log = new DuplicateLog();
        mojo.setLog( log );
        mojo.execute();

        assertTrue(log.getContent().contains("List of duplicate dependencies defined in <dependencies/> in "
                + "your pom.xml"));
        assertTrue(log.getContent().contains("junit:junit:jar"));
    }
View Full Code Here

Examples of org.apache.maven.plugin.dependency.fromDependencies.BuildClasspathMojo.execute()

        artifacts.addAll( directArtifacts );

        project.setArtifacts( artifacts );
        project.setDependencyArtifacts( directArtifacts );

        mojo.execute();
        String file = null;
        try
        {
            file = mojo.readClasspathFile();
View Full Code Here

Examples of org.apache.maven.plugin.dependency.resolvers.ResolveDependenciesMojo.execute()

        artifacts.addAll( directArtifacts );

        project.setArtifacts( artifacts );
        project.setDependencyArtifacts( directArtifacts );

        mojo.execute();
        DependencyStatusSets results = mojo.getResults();
        assertNotNull( results );
        assertEquals( artifacts.size(), results.getResolvedDependencies().size() );

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

Examples of org.apache.maven.plugin.dependency.tree.TreeMojo.execute()

        artifacts.addAll( directArtifacts );

        project.setArtifacts( artifacts );
        project.setDependencyArtifacts( directArtifacts );

        mojo.execute();

        DependencyNode rootNode = mojo.getDependencyGraph();
        assertNodeEquals( "testGroupId:project:jar:1.0:compile", rootNode );
        assertEquals( 2, rootNode.getChildren().size() );
        assertChildNodeEquals( "testGroupId:snapshot:jar:2.0-SNAPSHOT:compile", rootNode, 0 );
View Full Code Here

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
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.