Package org.codehaus.plexus.personality.plexus.lifecycle.phase

Examples of org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException


        {
            startInvoker();
        }
        catch ( IOException e )
        {
            throw new InitializationException( "Error detecting maven home.", e );
        }
    }
View Full Code Here


        {
            startInvoker();
        }
        catch ( IOException e )
        {
            throw new InitializationException( "Error detecting maven home.", e );
        }
    }
View Full Code Here

        {
            engine.init();
        }
        catch ( Exception e )
        {
            throw new InitializationException( "Cannot start the velocity engine: ", e );
        }
    }
View Full Code Here

        {
            engine.init();
        }
        catch ( Exception e )
        {
            throw new InitializationException( "Cannot start the velocity engine: ", e );
        }
    }
View Full Code Here

            createServices( configuration.getChild("services") );
      }
      catch( Exception e )
      {
          getLogger().error("Could not start the configuration service.", e);
          throw new InitializationException("Could not start configuration service.", e);
      }
  }
View Full Code Here

        {
            startInvoker();
        }
        catch ( IOException e )
        {
            throw new InitializationException( "Error detecting maven home.", e );
        }
    }
View Full Code Here

                }
            }
        }
        catch ( RegistryException e )
        {
            throw new InitializationException( e.getMessage(), e );
        }

        lookupRegistry = registry.getSubset( PREFIX );

        if ( getLogger().isDebugEnabled() )
View Full Code Here

    {
       String userManagerRole = config.getString( USER_MANAGER_IMPL );
      
       if ( userManagerRole == null )
       {
           throw new InitializationException( "User Manager Configuration Missing: " + USER_MANAGER_IMPL + " configuration property"  );
       }
      
       try
       {
           userManagerImpl = (UserManager)container.lookup( UserManager.class.getName(), userManagerRole );
       }
       catch ( ComponentLookupException e )
       {
           throw new InitializationException( "unable to resolve user manager implementation", e );
       }
    }
View Full Code Here

        {
            initializeDefaultContinuumBuildDefintions();
        }
        catch ( BuildDefinitionServiceException e )
        {
            throw new InitializationException( e.getMessage(), e );
        }
    }
View Full Code Here

        if ( wdFile.exists() )
        {
            if ( !wdFile.isDirectory() )
            {
                throw new InitializationException(
                    "The specified working directory isn't a directory: " + "'" + wdFile.getAbsolutePath() + "'." );
            }
        }
        else
        {
            if ( !wdFile.mkdirs() )
            {
                throw new InitializationException(
                    "Could not making the working directory: " + "'" + wdFile.getAbsolutePath() + "'." );
            }
        }

        getLogger().info( "Showing all projects: " );

        for ( Project project : projectDao.getAllProjectsByNameWithBuildDetails() )
        {
            for ( ProjectNotifier notifier : (List<ProjectNotifier>) project.getNotifiers() )
            {
                if ( StringUtils.isEmpty( notifier.getType() ) )
                {
                    try
                    {
                        removeNotifier( project.getId(), notifier.getId() );
                    }
                    catch ( ContinuumException e )
                    {
                        throw new InitializationException( "Database is corrupted.", e );
                    }
                }
            }

            if ( project.getState() != ContinuumProjectState.NEW &&
                project.getState() != ContinuumProjectState.CHECKEDOUT &&
                project.getState() != ContinuumProjectState.OK && project.getState() != ContinuumProjectState.FAILED &&
                project.getState() != ContinuumProjectState.ERROR )
            {
                int state = project.getState();

                project.setState( project.getOldState() );

                project.setOldState( 0 );

                try
                {
                    getLogger().info( "Fix project state for project " + project.getId() + ":" + project.getName() +
                        ":" + project.getVersion() );

                    projectDao.updateProject( project );

                    Project p = projectDao.getProject( project.getId() );

                    if ( state == p.getState() )
                    {
                        getLogger().info( "Can't fix the project state." );
                    }
                }
                catch ( ContinuumStoreException e )
                {
                    throw new InitializationException( "Database is corrupted.", e );
                }
            }

            getLogger().info( " " + project.getId() + ":" + project.getName() + ":" + project.getVersion() + ":" +
                project.getExecutorId() );
View Full Code Here

TOP

Related Classes of org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException

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.