Examples of ProfileActivationException


Examples of org.apache.maven.profiles.activation.ProfileActivationException

                    }
                }
            }
            catch ( IOException e )
            {
                throw new ProfileActivationException( "Cannot read profiles.xml resource from directory: " + projectDir,
                                                      e );
            }
            catch ( XmlPullParserException e )
            {
                throw new ProfileActivationException(
                    "Cannot parse profiles.xml resource from directory: " + projectDir, e );
            }
        }
    }
View Full Code Here

Examples of org.apache.maven.profiles.activation.ProfileActivationException

                public void add( ModelProblemCollectorRequest req )
                {
                    if ( !ModelProblem.Severity.WARNING.equals( req.getSeverity() ) )
                    {
                        errors.add( new ProfileActivationException( req.getMessage(), req.getException() ) );
                    }
                }
            } );

        if ( !errors.isEmpty() )
View Full Code Here

Examples of org.apache.maven.profiles.activation.ProfileActivationException

                    }
                }
            }
            catch ( IOException e )
            {
                throw new ProfileActivationException( "Cannot read profiles.xml resource from directory: " + projectDir,
                                                      e );
            }
            catch ( XmlPullParserException e )
            {
                throw new ProfileActivationException(
                    "Cannot parse profiles.xml resource from directory: " + projectDir, e );
            }
        }
    }
View Full Code Here

Examples of org.apache.maven.profiles.activation.ProfileActivationException

                getLog().debug( "ProfilesRoot was found to be NULL" );
            }
        }
        catch ( IOException e )
        {
            throw new ProfileActivationException( "Cannot read profiles.xml resource from directory: "
                + projectDir, e );
        }
        catch ( XmlPullParserException e )
        {
            throw new ProfileActivationException( "Cannot parse profiles.xml resource from directory: "
                + projectDir, e );
        }
    }
View Full Code Here

Examples of org.apache.maven.profiles.activation.ProfileActivationException

        return DiagnosisUtils.containsInCausality( error, ProfileActivationException.class );
    }

    public String diagnose( Throwable error )
    {
        ProfileActivationException activationException =
            (ProfileActivationException) DiagnosisUtils.getFromCausality( error, ProfileActivationException.class );

        StringBuffer messageBuffer = new StringBuffer();

        messageBuffer.append( "Error activating profiles." );
        messageBuffer.append( "\n\nReason: " ).append( activationException.getMessage() );

        if ( DiagnosisUtils.containsInCausality( activationException, ComponentLookupException.class ) )
        {
            ComponentLookupException cle = (ComponentLookupException) DiagnosisUtils.getFromCausality(
                activationException, ComponentLookupException.class );
View Full Code Here

Examples of org.apache.maven.profiles.activation.ProfileActivationException

                    }
                }
            }
            catch ( IOException e )
            {
                throw new ProfileActivationException( "Cannot read profiles.xml resource from directory: " + projectDir,
                                                      e );
            }
            catch ( XmlPullParserException e )
            {
                throw new ProfileActivationException(
                    "Cannot parse profiles.xml resource from directory: " + projectDir, e );
            }
        }
    }
View Full Code Here

Examples of org.apache.maven.profiles.activation.ProfileActivationException

                public void add( ModelProblemCollectorRequest req )
                {
                    if ( !ModelProblem.Severity.WARNING.equals( req.getSeverity() ) )
                    {
                        errors.add( new ProfileActivationException( req.getMessage(), req.getException() ) );
                    }
                }
            } );

        if ( !errors.isEmpty() )
View Full Code Here

Examples of org.apache.maven.profiles.activation.ProfileActivationException

                public void add( Severity severity, String message, InputLocation location, Exception cause )
                {
                    if ( !ModelProblem.Severity.WARNING.equals( severity ) )
                    {
                        errors.add( new ProfileActivationException( message, cause ) );
                    }
                }

            } );
View Full Code Here

Examples of org.apache.maven.profiles.activation.ProfileActivationException

                    }
                }
            }
            catch ( IOException e )
            {
                throw new ProfileActivationException( "Cannot read profiles.xml resource from directory: " + projectDir,
                                                      e );
            }
            catch ( XmlPullParserException e )
            {
                throw new ProfileActivationException(
                    "Cannot parse profiles.xml resource from directory: " + projectDir, e );
            }
        }
    }
View Full Code Here

Examples of org.apache.maven.profiles.activation.ProfileActivationException

            return false;
        }
        catch ( ComponentLookupException e )
        {
            throw new ProfileActivationException( "Cannot retrieve list of profile activators.", e );
        }
        finally
        {
            try
            {
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.