Examples of MavenSession


Examples of org.apache.maven.execution.MavenSession

    }

    public void testMavenRepoClassPathValue()
        throws Exception
    {
        MavenSession session = getDummySession();
        MavenProject project = getDummyProject();
        File jarFile = new File( "target/test/dummy.jar" );
        JarArchiver jarArchiver = getCleanJarArciver( jarFile );

        MavenArchiver archiver = getMavenArchiver( jarArchiver );
View Full Code Here

Examples of org.apache.maven.execution.MavenSession

    }

    public void testMavenRepoClassPathValue_WithSnapshot()
        throws Exception
    {
        MavenSession session = getDummySession();
        MavenProject project = getDummyProjectWithSnapshot();
        File jarFile = new File( "target/test/dummy.jar" );
        JarArchiver jarArchiver = getCleanJarArciver( jarFile );

        MavenArchiver archiver = getMavenArchiver( jarArchiver );
View Full Code Here

Examples of org.apache.maven.execution.MavenSession

    }

    public void testCustomClassPathValue()
        throws Exception
    {
        MavenSession session = getDummySession();
        MavenProject project = getDummyProject();
        File jarFile = new File( "target/test/dummy.jar" );
        JarArchiver jarArchiver = getCleanJarArciver( jarFile );

        MavenArchiver archiver = getMavenArchiver( jarArchiver );
View Full Code Here

Examples of org.apache.maven.execution.MavenSession

    }

    public void testCustomClassPathValue_WithSnapshotResolvedVersion()
        throws Exception
    {
        MavenSession session = getDummySession();
        MavenProject project = getDummyProjectWithSnapshot();
        File jarFile = new File( "target/test/dummy.jar" );
        JarArchiver jarArchiver = getCleanJarArciver( jarFile );
        MavenArchiver archiver = getMavenArchiver( jarArchiver );
View Full Code Here

Examples of org.apache.maven.execution.MavenSession

    }

    public void testCustomClassPathValue_WithSnapshotForcingBaseVersion()
        throws Exception
    {
        MavenSession session = getDummySession();
        MavenProject project = getDummyProjectWithSnapshot();
        File jarFile = new File( "target/test/dummy.jar" );
        JarArchiver jarArchiver = getCleanJarArciver( jarFile );

        MavenArchiver archiver = getMavenArchiver( jarArchiver );
View Full Code Here

Examples of org.apache.maven.execution.MavenSession

        ReactorManager reactorManager = null;
        List goals = null;
        String executionRootDir = null;
        Date startTime = new Date();

        return new MavenSession( container, settings, localRepo, eventDispatcher, reactorManager, goals,
                                 executionRootDir, executionProperties, startTime );
    }
View Full Code Here

Examples of org.apache.maven.execution.MavenSession

                                                                 ArrayList bundles )
        throws Exception
    {
        final ProcessRemoteResourcesMojo mojo = lookupProcessMojo();

        MavenSession session = new MavenSession( container,
                                    null, //Settings settings,
                                    null, //ArtifactRepository localRepository,
                                    null, //EventDispatcher eventDispatcher,
                                    new ReactorManager(new ArrayList()),
                                    Arrays.asList( new String[] {"install"} ),
View Full Code Here

Examples of org.apache.maven.execution.MavenSession

        assembly.setId( "assembly.${groupId}" );

        final MockManager mm = new MockManager();

        final MockControl sessionControl = MockClassControl.createControl( MavenSession.class );
        final MavenSession session = (MavenSession) sessionControl.getMock();

        mm.add( sessionControl );

        final Properties execProps = new Properties();
        execProps.setProperty( "groupId", "still.another.id" );

        session.getExecutionProperties();
        sessionControl.setReturnValue( execProps, MockControl.ZERO_OR_MORE );

        session.getUserProperties();
        sessionControl.setReturnValue( new Properties(), MockControl.ZERO_OR_MORE );

        final MockControl csControl = MockControl.createControl( AssemblerConfigurationSource.class );
        final AssemblerConfigurationSource cs = (AssemblerConfigurationSource) csControl.getMock();
View Full Code Here

Examples of org.apache.maven.execution.MavenSession

        artifactProject.setArtifact( artifactMock.getArtifact() );

        final MockControl sessionCtl = MockClassControl.createControl( MavenSession.class );
        mockManager.add( sessionCtl );

        final MavenSession session = (MavenSession) sessionCtl.getMock();
        session.getExecutionProperties();
        sessionCtl.setReturnValue( null, MockControl.ZERO_OR_MORE );

        session.getUserProperties();
        sessionCtl.setReturnValue( new Properties(), MockControl.ZERO_OR_MORE );

        final MockControl csCtl = MockControl.createControl( AssemblerConfigurationSource.class );
        mockManager.add( csCtl );
View Full Code Here

Examples of org.apache.maven.execution.MavenSession

                              moduleProject.getVersion(), "jar", false, null );

        final MockControl sessionCtl = MockClassControl.createControl( MavenSession.class );
        mockManager.add( sessionCtl );

        final MavenSession session = (MavenSession) sessionCtl.getMock();
        session.getExecutionProperties();
        sessionCtl.setReturnValue( System.getProperties(), MockControl.ZERO_OR_MORE );

        session.getUserProperties();
        sessionCtl.setReturnValue( new Properties(), MockControl.ZERO_OR_MORE );

        final MockControl csCtl = MockControl.createControl( AssemblerConfigurationSource.class );
        mockManager.add( csCtl );
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.