Package org.apache.maven.continuum.release

Examples of org.apache.maven.continuum.release.ContinuumReleaseException


        {
            return settingsBuilder.buildSettings();
        }
        catch ( IOException e )
        {
            throw new ContinuumReleaseException( "Failed to get Maven Settings.", e );
        }
        catch ( XmlPullParserException e )
        {
            throw new ContinuumReleaseException( "Failed to get Maven Settings.", e );
        }
    }
View Full Code Here


                         LocalRepository repository )
        throws ContinuumReleaseException
    {
        if ( !repository.getName().equalsIgnoreCase( "default" ) )
        {
            throw new ContinuumReleaseException( "Incorrect local repository name!" );
        }

        if ( !repository.getLocation().equals( "/home/user/.m2/repository" ) )
        {
            throw new ContinuumReleaseException( "Incorrect local repository location!" );
        }

        if ( !repository.getLayout().equals( "default" ) )
        {
            throw new ContinuumReleaseException( "Incorrect local repository layout!" );
        }
    }
View Full Code Here

        releaseManager.getPreparedReleases().remove( releaseId );

        if ( StringUtils.isNotBlank( listener.getError() ) )
        {
            throw new ContinuumReleaseException( "Failed to rollback release: " + listener.getError() );
        }
    }
View Full Code Here

            }

            // call reload in case we disable the build agent
            distributedBuildManager.reload();

            throw new ContinuumReleaseException(
                "Failed to retrieve release plugin parameters because build agent " + buildAgentUrl +
                    " is not available" );
        }
        catch ( MalformedURLException e )
        {
            log.error( "Invalid build agent url " + buildAgentUrl );
            throw new ContinuumReleaseException( "Invalid build agent url " + buildAgentUrl );
        }
        catch ( Exception e )
        {
            log.error( "Failed to retrieve release plugin parameters", e );
            throw new ContinuumReleaseException( "Failed to retrieve release plugin parameters", e );
        }
    }
View Full Code Here

            }

            // call reload in case we disable the build agent
            distributedBuildManager.reload();

            throw new ContinuumReleaseException(
                "Failed to process project for releasing because build agent " + buildAgentUrl + " is unavailable" );
        }
        catch ( MalformedURLException e )
        {
            log.error( "Invalid build agent url " + buildAgentUrl );
            throw new ContinuumReleaseException( "Invalid build agent url " + buildAgentUrl );
        }
        catch ( Exception e )
        {
            log.error( "Failed to process project for releasing", e );
            throw new ContinuumReleaseException( "Failed to process project for releasing", e );
        }
    }
View Full Code Here

            }

            // call reload in case we disable the build agent
            distributedBuildManager.reload();

            throw new ContinuumReleaseException(
                "Failed to prepare release project because the build agent " + buildAgentUrl + " is not available" );
        }
        catch ( MalformedURLException e )
        {
            log.error( "Invalid build agent url " + buildAgentUrl );
            throw new ContinuumReleaseException( "Invalid build agent url " + buildAgentUrl );
        }
        catch ( Exception e )
        {
            log.error( "Failed to prepare release project " + project.getName(), e );
            throw new ContinuumReleaseException( "Failed to prepare release project " + project.getName(), e );
        }
    }
View Full Code Here

            }

            // call reload in case we disable a build agent
            distributedBuildManager.reload();

            throw new ContinuumReleaseException( "Failed to get release result of " + releaseId +
                                                     " because the build agent " + buildAgentUrl +
                                                     " is not available" );
        }
        catch ( MalformedURLException e )
        {
            log.error( "Invalid build agent url " + buildAgentUrl );
            throw new ContinuumReleaseException( "Invalid build agent url " + buildAgentUrl );
        }
        catch ( Exception e )
        {
            log.error( "Failed to get release result of " + releaseId, e );
            throw new ContinuumReleaseException( "Failed to get release result of " + releaseId, e );
        }
    }
View Full Code Here

            }

            // call reload in case we disable the build agent
            distributedBuildManager.reload();

            throw new ContinuumReleaseException( "Failed to get listener for " + releaseId +
                                                     " because the build agent " + buildAgentUrl +
                                                     " is not available" );
        }
        catch ( MalformedURLException e )
        {
            log.error( "Invalid build agent url " + buildAgentUrl );
            throw new ContinuumReleaseException( "Invalid build agent url " + buildAgentUrl );
        }
        catch ( Exception e )
        {
            log.error( "Failed to get listener for " + releaseId, e );
            throw new ContinuumReleaseException( "Failed to get listener for " + releaseId, e );
        }
    }
View Full Code Here

            }

            // call reload in case we disable the build agent
            distributedBuildManager.reload();

            throw new ContinuumReleaseException( "Failed to remove listener of " + releaseId +
                                                     " because the build agent " + buildAgentUrl +
                                                     " is not available" );
        }
        catch ( MalformedURLException e )
        {
            log.error( "Invalid build agent url " + buildAgentUrl );
            throw new ContinuumReleaseException( "Invalid build agent url " + buildAgentUrl );
        }
        catch ( Exception e )
        {
            log.error( "Failed to remove listener of " + releaseId, e );
            throw new ContinuumReleaseException( "Failed to remove listener of " + releaseId, e );
        }
    }
View Full Code Here

            }

            // call reload in case we disable the build agent
            distributedBuildManager.reload();

            throw new ContinuumReleaseException( "Failed to get prepared release name of " + releaseId +
                                                     " because the build agent " + buildAgentUrl +
                                                     " is not available" );
        }
        catch ( MalformedURLException e )
        {
            log.error( "Invalid build agent url " + buildAgentUrl );
            throw new ContinuumReleaseException( "Invalid build agent url " + buildAgentUrl );
        }
        catch ( Exception e )
        {
            log.error( "Failed to get prepared release name of " + releaseId, e );
            throw new ContinuumReleaseException( "Failed to get prepared release name of " + releaseId, e );
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.maven.continuum.release.ContinuumReleaseException

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.