Package org.apache.maven.project

Examples of org.apache.maven.project.InvalidProjectModelException


        message.append( "\nProject ID: " ).append( pbe.getProjectId() );

        if ( pbe instanceof InvalidProjectModelException )
        {
            InvalidProjectModelException ipme = (InvalidProjectModelException) pbe;

            message.append( "\nPOM Location: " ).append( ipme.getPomLocation() );

            ModelValidationResult result = ipme.getValidationResult();

            if ( result != null )
            {
                message.append( "\nValidation Messages:\n\n" ).append( ipme.getValidationResult().render( "    " ) );
            }
        }

        message.append( "\n\n" ).append( "Reason: " ).append( pbe.getMessage() );
View Full Code Here


                }
            }

            if ( e instanceof InvalidProjectModelException )
            {
                InvalidProjectModelException ex = (InvalidProjectModelException) e;

                ModelValidationResult validationResult = ex.getValidationResult();

                if ( validationResult != null && validationResult.getMessageCount() > 0 )
                {
                    for ( String valmsg : (List<String>) validationResult.getMessages() )
                    {
View Full Code Here

                }
            }

            if ( e instanceof InvalidProjectModelException )
            {
                InvalidProjectModelException ex = (InvalidProjectModelException) e;

                ModelValidationResult validationResult = ex.getValidationResult();

                if ( validationResult != null && validationResult.getMessageCount() > 0 )
                {
                    for ( String valmsg : (List<String>) validationResult.getMessages() )
                    {
View Full Code Here

                }
            }

            if ( e instanceof InvalidProjectModelException )
            {
                InvalidProjectModelException ex = (InvalidProjectModelException) e;

                ModelValidationResult validationResult = ex.getValidationResult();

                if ( validationResult != null && validationResult.getMessageCount() > 0 )
                {
                    for ( Iterator<String> i = validationResult.getMessages().iterator(); i.hasNext(); )
                    {
View Full Code Here

                }
            }

            if ( e instanceof InvalidProjectModelException )
            {
                InvalidProjectModelException ex = (InvalidProjectModelException) e;

                ModelValidationResult validationResult = ex.getValidationResult();

                if ( validationResult != null && validationResult.getMessageCount() > 0 )
                {
                    for ( Iterator i = validationResult.getMessages().iterator(); i.hasNext(); )
                    {
View Full Code Here

TOP

Related Classes of org.apache.maven.project.InvalidProjectModelException

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.