Package org.apache.maven

Examples of org.apache.maven.MavenSession


        // Even though the rootProject contains the rootContext we set both in
        // the even that there is no rootProject and the user is requesting goals
        // to be attained that do not directly relate to a project. A goaly that
        // may, say, generate the skeletal maven application build.

        mavenSession = new MavenSession();
        mavenSession.setRootContext( getRootContext() );
        // note: setRootDescriptor file is a static method
        MavenSession.setRootDescriptorFile( getDescriptorFile() );
    }
View Full Code Here


        FileInputStream fis = new FileInputStream( basedir + SOURCE_BASE + "forehead.conf" );
        Forehead.getInstance().config( fis );
        fis.close();

        // setup maven session
        MavenSession mavenSession = new MavenSession();
        mavenSession.setRootContext( context );
        File projectFile = new File( basedir + "/src/test/touchstone-build/project.xml" );

        // set the project being run
        MavenSession.setRootDescriptorFile( projectFile );

        project = MavenUtils.getProject( projectFile, context );

        // This seems like a glitch in the context assembly that doesn't affect the real world, so work around it
        project.getContext().setMavenRepoLocal( fakeHomeLocal + "/repository" );

        assertNotNull( project );

        pluginManager = mavenSession.getPluginManager();
    }
View Full Code Here

        // Even though the rootProject contains the rootContext we set both in
        // the even that there is no rootProject and the user is requesting goals
        // to be attained that do not directly relate to a project. A goaly that
        // may, say, generate the skeletal maven application build.

        mavenSession = new MavenSession();
        mavenSession.setRootContext( getRootContext() );
        // note: setRootDescriptor file is a static method
        MavenSession.setRootDescriptorFile( getDescriptorFile() );
    }
View Full Code Here

TOP

Related Classes of org.apache.maven.MavenSession

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.