Examples of Gav


Examples of org.guvnor.common.services.project.model.GAV

    @Test
    public void testListFiles() throws Exception {
        GuvnorM2Repository repo = new GuvnorM2Repository();
        repo.init();

        GAV gav = new GAV( "org.kie.guvnor",
                           "guvnor-m2repo-editor-backend",
                           "0.0.1-SNAPSHOT" );

        InputStream is = this.getClass().getResourceAsStream( "guvnor-m2repo-editor-backend-test.jar" );
        repo.deployArtifact( is,
                             gav,
                             false );

        gav = new GAV( "org.jboss.arquillian.core",
                       "arquillian-core-api",
                       "1.0.2.Final" );
        is = this.getClass().getResourceAsStream( "guvnor-m2repo-editor-backend-test.jar" );
        repo.deployArtifact( is,
                             gav,
View Full Code Here

Examples of org.guvnor.common.services.project.model.GAV

    @Test
    public void testListFilesWithFilter() throws Exception {
        GuvnorM2Repository repo = new GuvnorM2Repository();
        repo.init();

        GAV gav = new GAV( "org.kie.guvnor",
                           "guvnor-m2repo-editor-backend",
                           "0.0.1-SNAPSHOT" );
        InputStream is = this.getClass().getResourceAsStream( "guvnor-m2repo-editor-backend-test.jar" );
        repo.deployArtifact( is,
                             gav,
                             false );

        gav = new GAV( "org.jboss.arquillian.core",
                       "arquillian-core-api",
                       "1.0.2.Final" );
        is = this.getClass().getResourceAsStream( "guvnor-m2repo-editor-backend-test.jar" );
        repo.deployArtifact( is,
                             gav,
View Full Code Here

Examples of org.guvnor.common.services.project.model.GAV

        m2RepoServiceField.setAccessible( true );
        m2RepoServiceField.set( helper,
                                service );

        FormData uploadItem = new FormData();
        GAV gav = new GAV( "org.kie.guvnor",
                           "guvnor-m2repo-editor-backend",
                           "0.0.1-SNAPSHOT" );
        uploadItem.setGav( gav );
        FileItem file = new TestFileItem();
        uploadItem.setFile( file );
View Full Code Here

Examples of org.guvnor.common.services.project.model.GAV

            + "</plugin>";

    @Test
    public void testPOMContentHandlerNewProject() throws IOException {
        final POMContentHandler handler = new POMContentHandler();
        final GAV gav = new GAV();
        gav.setGroupId("org.guvnor");
        gav.setArtifactId( "test" );
        gav.setVersion( "0.0.1" );
        final POM pom = new POM( "name",
                                 "description",
                                 gav );
        final String xml = handler.toString( pom );
View Full Code Here

Examples of org.guvnor.common.services.project.model.GAV

            groupIdBuilder.append(nameSplit[i]);
        }

        String groupId = groupIdBuilder.toString();
        String artifactId = nameSplit[nameSplit.length - 1];
        GAV gav = new GAV(groupId,
                          artifactId,
                          "0.0.1");
        POM pom = new POM(gav);

        Path modulePath = migrationPathManager.generateRootPath();
View Full Code Here

Examples of org.guvnor.common.services.project.model.GAV

        Model model = new MavenXpp3Reader().read(new StringReader(pomAsString));

        POM gavModel = new POM(
                model.getName(),
                model.getDescription(),
                new GAV(
                        (model.getGroupId() == null ? model.getParent().getGroupId() : model.getGroupId()),
                        (model.getArtifactId() == null ? model.getParent().getArtifactId() : model.getArtifactId()),
                        (model.getVersion() == null ? model.getParent().getVersion() : model.getVersion())
                )
        );

        if (model.getParent() != null) {
            gavModel.setParent(new GAV(model.getParent().getGroupId(), model.getParent().getArtifactId(), model.getParent().getVersion()));
        }

        gavModel.getModules().clear();
        for (String module : model.getModules()) {
            gavModel.getModules().add(module);
View Full Code Here

Examples of org.guvnor.common.services.project.model.GAV

            final String groupId = props.getProperty( "groupId" );
            final String artifactId = props.getProperty( "artifactId" );
            final String version = props.getProperty( "version" );

            return new GAV( groupId,
                            artifactId,
                            version );
        } catch ( IOException e ) {
            log.error( e.getMessage() );
        }
View Full Code Here

Examples of org.guvnor.common.services.project.model.GAV

        org.uberfire.java.nio.file.Path path = p.getPath( url.toURI() );

        ruleNameUpdateEvent = mock( Event.class );
        final Builder builder = new Builder( project,
                                             path,
                                             new GAV(),
                                             ioService,
                                             projectService,
                                             ruleNameUpdateEvent,
                                             new ArrayList<BuildValidationHelper>() );
View Full Code Here

Examples of org.guvnor.common.services.project.model.GAV

        org.uberfire.java.nio.file.Path path = p.getPath( url.toURI() );

        ruleNameUpdateEvent = mock( Event.class );
        final Builder builder = new Builder( project,
                                             path,
                                             new GAV(),
                                             ioService,
                                             projectService,
                                             ruleNameUpdateEvent,
                                             new ArrayList<BuildValidationHelper>() );
View Full Code Here

Examples of org.guvnor.common.services.project.model.GAV

        org.uberfire.java.nio.file.Path path = p.getPath( url.toURI() );

        ruleNameUpdateEvent = mock( Event.class );
        final Builder builder = new Builder( project,
                                             path,
                                             new GAV(),
                                             ioService,
                                             projectService,
                                             ruleNameUpdateEvent,
                                             new ArrayList<BuildValidationHelper>() );
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.