Package org.apache.maven.plugin

Examples of org.apache.maven.plugin.PluginParameterException


        param.setName( "testName" );
        param.setAlias( "testAlias" );
        param.setExpression( "${localRepository}" );
        param.setEditable( false );

        PluginParameterException error = buildException( "test", "test", Collections.singletonList( param ) );

        String userMessage = diagnoser.diagnose( error );

        System.out.println( userMessage );
View Full Code Here


        param.setName( "testName" );
        param.setAlias( "testAlias" );
        param.setExpression( "${maven.mode.online}" );
        param.setEditable( false );

        PluginParameterException error = buildException( "test", "test", Collections.singletonList( param ) );

        String userMessage = diagnoser.diagnose( error );

        System.out.println( userMessage );
View Full Code Here

        param.setName( "testName" );
        param.setAlias( "testAlias" );
        param.setExpression( "${project.build.finalName}" );
        param.setEditable( true );

        PluginParameterException error = buildException( "test", "test", Collections.singletonList( param ) );

        String userMessage = diagnoser.diagnose( error );

        System.out.println( userMessage );
View Full Code Here

        param.setName( "testName" );
        param.setExpression( "${project.distributionManagementArtifactRepository}" );
        param.setRequired( true );
        param.setEditable( false );

        PluginParameterException error = buildException( "test", "test", Collections.singletonList( param ) );

        String userMessage = diagnoser.diagnose( error );

        System.out.println( userMessage );
View Full Code Here

        param.setName( "testName" );
        param.setAlias( "testAlias" );
        param.setExpression( "${project.build.finalName}" );
        param.setEditable( false );

        PluginParameterException error = buildException( "test", "test", Collections.singletonList( param ) );

        String userMessage = diagnoser.diagnose( error );

        System.out.println( userMessage );
View Full Code Here

        PluginConfigurationException pce =
            (PluginConfigurationException) DiagnosisUtils.getFromCausality( error, PluginConfigurationException.class );

        if ( pce instanceof PluginParameterException )
        {
            PluginParameterException exception = (PluginParameterException) pce;

            return exception.buildDiagnosticMessage();
        }
        else if ( DiagnosisUtils.containsInCausality( pce, ComponentConfigurationException.class ) )
        {
            ComponentConfigurationException cce = (ComponentConfigurationException) DiagnosisUtils.getFromCausality(
                pce, ComponentConfigurationException.class );
View Full Code Here

        mojoDescriptor.setGoal( goal );
        mojoDescriptor.setPluginDescriptor( pluginDescriptor );

        mojoDescriptor.setParameters( params );

        return new PluginParameterException( mojoDescriptor, params );
    }
View Full Code Here

        param.setName( "testName" );
        param.setAlias( "testAlias" );
        param.setExpression( "${project.build.finalName}" );
        param.setEditable( true );

        PluginParameterException error = buildException( "test", "test", Collections.singletonList( param ) );

        assertTrue( diagnoser.canDiagnose( error ) );
    }
View Full Code Here

        param2.setEditable( false );

        params.add( param2 );

        PluginParameterException error = buildException( "test", "test", params );

        String userMessage = diagnoser.diagnose( error );

        System.out.println( userMessage );
View Full Code Here

        param.setName( "testName" );
        param.setAlias( "testAlias" );
        param.setExpression( "${project.build.finalName" );
        param.setEditable( true );

        PluginParameterException error = buildException( "test", "test", Collections.singletonList( param ) );

        String userMessage = diagnoser.diagnose( error );

        System.out.println( userMessage );
View Full Code Here

TOP

Related Classes of org.apache.maven.plugin.PluginParameterException

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.