Examples of deleteArtifact()


Examples of org.apache.archiva.repository.ManagedRepositoryContent.deleteArtifact()

            Set<ArtifactReference> related = repository.getRelatedArtifacts( artifactReference );
            log.debug( "related: {}", related );
            for ( ArtifactReference artifactRef : related )
            {
                repository.deleteArtifact( artifactRef );
            }

            Collection<ArtifactMetadata> artifacts =
                metadataRepository.getArtifacts( repositoryId, namespace, projectId, version );
View Full Code Here

Examples of org.apache.archiva.repository.ManagedRepositoryContent.deleteArtifact()

                {
                    throw new ArchivaRestServiceException( "You must configure a type/packaging when using classifier",
                                                           400, null );
                }

                repository.deleteArtifact( artifactReference );

            }
            else
            {
View Full Code Here

Examples of org.apache.archiva.repository.ManagedRepositoryContent.deleteArtifact()

                {
                    Set<ArtifactReference> related = repository.getRelatedArtifacts( artifactReference );
                    log.debug( "related: {}", related );
                    for ( ArtifactReference artifactRef : related )
                    {
                        repository.deleteArtifact( artifactRef );
                    }
                }
                File metadataFile = getMetadata( targetPath.getAbsolutePath() );
                ArchivaRepositoryMetadata metadata = getMetadata( metadataFile );
View Full Code Here

Examples of org.apache.archiva.repository.ManagedRepositoryContent.deleteArtifact()

                {
                    throw new ArchivaRestServiceException( "You must configure a type/packaging when using classifier",
                                                           400, null );
                }

                repository.deleteArtifact( artifactReference );

            }
            else
            {
View Full Code Here

Examples of org.apache.archiva.repository.ManagedRepositoryContent.deleteArtifact()

                {
                    Set<ArtifactReference> related = repository.getRelatedArtifacts( artifactReference );
                    log.debug( "related: {}", related );
                    for ( ArtifactReference artifactRef : related )
                    {
                        repository.deleteArtifact( artifactRef );
                    }
                }
                File metadataFile = getMetadata( targetPath.getAbsolutePath() );
                ArchivaRepositoryMetadata metadata = getMetadata( metadataFile );
View Full Code Here

Examples of org.apache.archiva.rest.api.services.RepositoriesService.deleteArtifact()

            artifact.setVersion( "1.0.1" );
            artifact.setPackaging( "jar" );

            RepositoriesService repositoriesService = getRepositoriesService( null );

            repositoriesService.deleteArtifact( artifact, SOURCE_REPO_ID );
        }
        catch ( ServerWebApplicationException e )
        {
            assertEquals( 403, e.getStatus() );
            throw e;
View Full Code Here

Examples of org.apache.archiva.rest.api.services.RepositoriesService.deleteArtifact()

            artifact.setGroupId( "commons-logging" );
            artifact.setArtifactId( "commons-logging" );
            artifact.setVersion( "1.0.1" );
            artifact.setPackaging( "jar" );

            repositoriesService.deleteArtifact( artifact, null );
        }
        catch ( ServerWebApplicationException e )
        {
            assertEquals( "not http 400 status", 400, e.getStatus() );
            throw e;
View Full Code Here

Examples of org.apache.archiva.rest.api.services.RepositoriesService.deleteArtifact()

            artifact.setVersion( "1.0.1" );
            artifact.setPackaging( "jar" );

            RepositoriesService repositoriesService = getRepositoriesService( authorizationHeader );

            repositoriesService.deleteArtifact( artifact, SOURCE_REPO_ID );

            assertFalse( "artifact not deleted exists:" + artifactFile.getPath(), artifactFile.exists() );

        }
        finally
View Full Code Here

Examples of org.apache.archiva.rest.api.services.RepositoriesService.deleteArtifact()

            artifact.setPackaging( "jar" );
            artifact.setContext( SOURCE_REPO_ID );

            RepositoriesService repositoriesService = getRepositoriesService( null );

            repositoriesService.deleteArtifact( artifact );
        }
        catch ( ServerWebApplicationException e )
        {
            assertEquals( 403, e.getStatus() );
            throw e;
View Full Code Here

Examples of org.apache.archiva.rest.api.services.RepositoriesService.deleteArtifact()

            artifact.setGroupId( "commons-logging" );
            artifact.setArtifactId( "commons-logging" );
            artifact.setVersion( "1.0.1" );
            artifact.setPackaging( "jar" );

            repositoriesService.deleteArtifact( artifact );
        }
        catch ( ServerWebApplicationException e )
        {
            assertEquals( "not http 400 status", 400, e.getStatus() );
            throw e;
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.