Package org.apache.maven.archiva.consumers

Examples of org.apache.maven.archiva.consumers.ConsumerException


    public void beginScan( ArchivaRepository repository )
        throws ConsumerException
    {
        if ( !repository.isManaged() )
        {
            throw new ConsumerException( "Consumer requires managed repository." );
        }

        this.repositoryDir = new File( repository.getUrl().getPath() );
    }
View Full Code Here


    public void beginScan( ArchivaRepository repository )
        throws ConsumerException
    {
        if ( !repository.isManaged() )
        {
            throw new ConsumerException( "Consumer requires managed repository." );
        }

        this.repositoryDir = new File( repository.getUrl().getPath() );
    }
View Full Code Here

    public void beginScan( ArchivaRepository repository )
        throws ConsumerException
    {
        if ( !repository.isManaged() )
        {
            throw new ConsumerException( "Consumer requires managed repository." );
        }

        this.repository = repository;
        this.repositoryDir = new File( repository.getUrl().getPath() );

        try
        {
            this.layout = layoutFactory.getLayout( repository.getModel().getLayoutName() );
        }
        catch ( LayoutException e )
        {
            throw new ConsumerException( e.getMessage(), e );
        }
    }
View Full Code Here

    public void beginScan( ArchivaRepository repository ) throws ConsumerException
    {
        if ( !repository.isManaged() )
        {
            throw new ConsumerException( "Consumer requires managed repository." );
        }

        this.repository = repository;
        this.repositoryDir = new File( repository.getUrl().getPath() );

        String layoutName = repository.getModel().getLayoutName();
        if ( !bidirectionalLayoutMap.containsKey( layoutName ) )
        {
            throw new ConsumerException( "Unable to process repository with layout [" + layoutName
                            + "] as there is no coresponding " + BidirectionalRepositoryLayout.class.getName()
                            + " implementation available." );
        }

        this.layout = (BidirectionalRepositoryLayout) bidirectionalLayoutMap.get( layoutName );
View Full Code Here

    public void beginScan( ArchivaRepository repository ) throws ConsumerException
    {
        if ( !repository.isManaged() )
        {
            throw new ConsumerException( "Consumer requires managed repository." );
        }

        this.repository = repository;
        this.repositoryDir = new File( repository.getUrl().getPath() );
    }
View Full Code Here

    public void beginScan( ArchivaRepository repository )
        throws ConsumerException
    {
        if ( !repository.isManaged() )
        {
            throw new ConsumerException( "Consumer requires managed repository." );
        }

        this.repositoryDir = new File( repository.getUrl().getPath() );
    }
View Full Code Here

    public void beginScan( ArchivaRepository repository )
        throws ConsumerException
    {
        if ( !repository.isManaged() )
        {
            throw new ConsumerException( "Consumer requires managed repository." );
        }

        this.repositoryDir = new File( repository.getUrl().getPath() );
    }
View Full Code Here

    public void beginScan( ArchivaRepository repository ) throws ConsumerException
    {
        if ( !repository.isManaged() )
        {
            throw new ConsumerException( "Consumer requires managed repository." );
        }

        this.repository = repository;
        this.repositoryDir = new File( repository.getUrl().getPath() );

        String layoutName = repository.getModel().getLayoutName();
        if ( !bidirectionalLayoutMap.containsKey( layoutName ) )
        {
            throw new ConsumerException( "Unable to process repository with layout [" + layoutName
                            + "] as there is no coresponding " + BidirectionalRepositoryLayout.class.getName()
                            + " implementation available." );
        }

        this.layout = (BidirectionalRepositoryLayout) bidirectionalLayoutMap.get( layoutName );
View Full Code Here

    public void beginScan( ArchivaRepository repository ) throws ConsumerException
    {
        if ( !repository.isManaged() )
        {
            throw new ConsumerException( "Consumer requires managed repository." );
        }

        this.repository = repository;
        this.repositoryDir = new File( repository.getUrl().getPath() );
    }
View Full Code Here

                }
                catch ( ArchivaDatabaseException e )
                {
                    String emsg = "Unable to save problem with duplicate artifact to DB: " + e.getMessage();
                    getLogger().warn( emsg, e );
                    throw new ConsumerException( emsg, e );
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.maven.archiva.consumers.ConsumerException

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.