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

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


            writer = new PrintWriter( new FileWriter( logFile ) );
            log( "Logging Initialized." );
        }
        catch ( IOException e )
        {
            throw new InitializationException( "Unable to initialize log file writer: " + logFile.getAbsolutePath(), e );
        }
    }
View Full Code Here


            initialiseTypeMap( defaultConfig );
        }
        catch ( RegistryException e )
        {
            throw new InitializationException( errMsg + e.getMessage(), e );
        }
        catch ( SecurityException e )
        {
            throw new InitializationException( errMsg + e.getMessage(), e );
        }
        catch ( NoSuchFieldException e )
        {
            throw new InitializationException( errMsg + e.getMessage(), e );
        }
        catch ( IllegalArgumentException e )
        {
            throw new InitializationException( errMsg + e.getMessage(), e );
        }
        catch ( IllegalAccessException e )
        {
            throw new InitializationException( errMsg + e.getMessage(), e );
        }

        this.archivaConfiguration.addChangeListener( this );
    }
View Full Code Here

            userConfigFilename = expressionEvaluator.expand( userConfigFilename );
            altConfigFilename = expressionEvaluator.expand( altConfigFilename );
        }
        catch ( EvaluatorException e )
        {
            throw new InitializationException( "Unable to evaluate expressions found in "
                + "userConfigFilename or altConfigFilename." );
        }

        registry.addChangeListener( this );
    }
View Full Code Here

        {
            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

            properties.load( resourceAsStream );

            String property = properties.getProperty( "version" );
            if ( property == null )
            {
                throw new InitializationException( "maven-core properties did not include the version" );
            }

            applicationVersion = new DefaultArtifactVersion( property );
        }
        catch ( IOException e )
        {
            throw new InitializationException( "Unable to read properties file from maven-core", e );
        }
        finally
        {
            IOUtil.close( resourceAsStream );
        }
View Full Code Here

            properties.load( resourceAsStream );

            String property = properties.getProperty( "version" );
            if ( property == null )
            {
                throw new InitializationException( "maven-core properties did not include the version" );
            }

            applicationVersion = new DefaultArtifactVersion( property );
        }
        catch ( IOException e )
        {
            throw new InitializationException( "Unable to read properties file from maven-core", e );
        }
        finally
        {
            IOUtil.close( resourceAsStream );
        }
View Full Code Here

    // initialize domain and IP address
    try {
      m_factory = lookup(MessageIdFactory.class);
      m_factory.initialize(m_domain.getId());
    } catch (IOException e) {
      throw new InitializationException("Error while initializing MessageIdFactory!", e);
    }

    // initialize the tagged transaction cache
    final int size = m_configManager.getTaggedTransactionCacheSize();
View Full Code Here

            properties.load( resourceAsStream );

            String property = properties.getProperty( "version" );
            if ( property == null )
            {
                throw new InitializationException( "maven-core properties did not include the version" );
            }

            applicationVersion = new DefaultArtifactVersion( property );
        }
        catch ( IOException e )
        {
            throw new InitializationException( "Unable to read properties file from maven-core", e );
        }
        finally
        {
            IOUtil.close( resourceAsStream );
        }
View Full Code Here

        {
            initializeTable( "MetadataKeys" );
        }
        catch ( ArchivaDatabaseException ade )
        {
            throw new InitializationException( "unable to initialize metadata keys database" );
        }
    }
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.