Package org.apache.maven.shared.release.env

Examples of org.apache.maven.shared.release.env.DefaultReleaseEnvironment


        ReleaseDescriptor releaseDescriptor = new ReleaseDescriptor();
        releaseDescriptor.setInteractive( false );

        // test
        phase.simulate( releaseDescriptor, new DefaultReleaseEnvironment(), reactorProjects );

        // verify
        assertNull( "Check release versions", releaseDescriptor.getReleaseVersions().get( "groupId:artifactId" ) );
        assertEquals( "Check development versions", Collections.singletonMap( "groupId:artifactId", "1.3-SNAPSHOT" ),
                      releaseDescriptor.getDevelopmentVersions() );
View Full Code Here


        ReleaseDescriptor releaseDescriptor = new ReleaseDescriptor();
        releaseDescriptor.setAutoVersionSubmodules( true );
        releaseDescriptor.setInteractive( false );

        // test
        phase.execute( releaseDescriptor, new DefaultReleaseEnvironment(), reactorProjects );

        // verify
        assertEquals( "Check development versions", Collections.singletonMap( "groupId:artifactId", "1.3-SNAPSHOT" ),
                      releaseDescriptor.getDevelopmentVersions() );
        assertNull( "Check release versions", releaseDescriptor.getReleaseVersions().get( "groupId:artifactId" ) );
View Full Code Here

        ReleaseDescriptor releaseDescriptor = new ReleaseDescriptor();
        releaseDescriptor.setAutoVersionSubmodules( true );
        releaseDescriptor.setInteractive( false );

        // test
        phase.simulate( releaseDescriptor, new DefaultReleaseEnvironment(), reactorProjects );

        // verify
        assertEquals( "Check development versions", Collections.singletonMap( "groupId:artifactId", "1.3-SNAPSHOT" ),
                      releaseDescriptor.getDevelopmentVersions() );
        assertNull( "Check release versions", releaseDescriptor.getReleaseVersions().get( "groupId:artifactId" ) );
View Full Code Here

        ReleaseDescriptor releaseDescriptor = new ReleaseDescriptor();
        releaseDescriptor.setAutoVersionSubmodules( true );
        releaseDescriptor.setInteractive( false );

        // test
        phase.execute( releaseDescriptor, new DefaultReleaseEnvironment(), reactorProjects );

        // verify
        assertEquals( "Check development versions", Collections.singletonMap( "groupId:artifactId", "1.3-SNAPSHOT" ),
                      releaseDescriptor.getDevelopmentVersions() );
        assertNull( "Check release versions", releaseDescriptor.getReleaseVersions().get( "groupId:artifactId" ) );
View Full Code Here

        ReleaseDescriptor releaseDescriptor = new ReleaseDescriptor();
        releaseDescriptor.setAutoVersionSubmodules( true );
        releaseDescriptor.setInteractive( false );

        // test
        phase.simulate( releaseDescriptor, new DefaultReleaseEnvironment(), reactorProjects );

        // verify
        assertEquals( "Check development versions", Collections.singletonMap( "groupId:artifactId", "1.3-SNAPSHOT" ),
                      releaseDescriptor.getDevelopmentVersions() );
        assertNull( "Check release versions", releaseDescriptor.getReleaseVersions().get( "groupId:artifactId" ) );
View Full Code Here

        ReleaseDescriptor releaseDescriptor = new ReleaseDescriptor();
        releaseDescriptor.setAutoVersionSubmodules( true );
        releaseDescriptor.setInteractive( false );

        // test
        phase.execute( releaseDescriptor, new DefaultReleaseEnvironment(), reactorProjects );

        // verify
        assertEquals( "Check release versions", Collections.singletonMap( "groupId:artifactId", "1.2" ),
                      releaseDescriptor.getReleaseVersions() );
        assertNull( "Check development versions", releaseDescriptor.getDevelopmentVersions().get( "groupId:artifactId" ) );
View Full Code Here

        ReleaseDescriptor releaseDescriptor = new ReleaseDescriptor();
        releaseDescriptor.setAutoVersionSubmodules( true );
        releaseDescriptor.setInteractive( false );

        // test
        phase.simulate( releaseDescriptor, new DefaultReleaseEnvironment(), reactorProjects );

        // verify
        assertEquals( "Check release versions", Collections.singletonMap( "groupId:artifactId", "1.2" ),
                      releaseDescriptor.getReleaseVersions() );
        assertNull( "Check development versions", releaseDescriptor.getDevelopmentVersions().get( "groupId:artifactId" ) );
View Full Code Here

        ReleaseDescriptor releaseDescriptor = new ReleaseDescriptor();
        releaseDescriptor.setAutoVersionSubmodules( true );
        releaseDescriptor.setInteractive( false );

        // test
        phase.execute( releaseDescriptor, new DefaultReleaseEnvironment(), reactorProjects );

        // verify
        assertEquals( "Check release versions", Collections.singletonMap( "groupId:artifactId", "1.2" ),
                      releaseDescriptor.getReleaseVersions() );
        assertNull( "Check development versions", releaseDescriptor.getDevelopmentVersions().get( "groupId:artifactId" ) );
View Full Code Here

        ReleaseDescriptor releaseDescriptor = new ReleaseDescriptor();
        releaseDescriptor.setAutoVersionSubmodules( true );
        releaseDescriptor.setInteractive( false );

        // test
        phase.simulate( releaseDescriptor, new DefaultReleaseEnvironment(), reactorProjects );

        // verify
        assertEquals( "Check release versions", Collections.singletonMap( "groupId:artifactId", "1.2" ),
                      releaseDescriptor.getReleaseVersions() );
        assertNull( "Check development versions", releaseDescriptor.getDevelopmentVersions().get( "groupId:artifactId" ) );
View Full Code Here

        releaseDescriptor.setAutoVersionSubmodules( true );
        releaseDescriptor.setBranchCreation( true );
        releaseDescriptor.setInteractive( false );

        // test
        phase.execute( releaseDescriptor, new DefaultReleaseEnvironment(), reactorProjects );

        // verify
        assertEquals( "Check development versions", Collections.singletonMap( "groupId:artifactId", "1.3-SNAPSHOT" ),
                      releaseDescriptor.getDevelopmentVersions() );
        assertNull( "Check release versions", releaseDescriptor.getReleaseVersions().get( "groupId:artifactId" ) );
View Full Code Here

TOP

Related Classes of org.apache.maven.shared.release.env.DefaultReleaseEnvironment

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.