Examples of PluginParameterException


Examples of org.apache.maven.plugin.PluginParameterException

        Parameter param = new Parameter();
        param.setName( "testName" );
        param.setAlias( "testAlias" );
        param.setEditable( true );

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

        String userMessage = diagnoser.diagnose( error );

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

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

Examples of org.apache.maven.plugin.PluginParameterException

        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

Examples of org.apache.maven.plugin.PluginParameterException

        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

Examples of org.apache.maven.plugin.PluginParameterException

        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

Examples of org.apache.maven.plugin.PluginParameterException

        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

Examples of org.apache.maven.plugin.PluginParameterException

            Collection<Parameter> missingParameters = validator.getMissingParameters();
            if ( !missingParameters.isEmpty() )
            {
                if ( "basic".equals( configuratorId ) )
                {
                    throw new PluginParameterException( mojoDescriptor, new ArrayList<Parameter>( missingParameters ) );
                }
                else
                {
                    /*
                     * NOTE: Other configurators like the map-oriented one don't call into the listener, so do it the
View Full Code Here

Examples of org.apache.maven.plugin.PluginParameterException

            }
        }

        if ( !invalidParameters.isEmpty() )
        {
            throw new PluginParameterException( mojoDescriptor, invalidParameters );
        }
    }
View Full Code Here

Examples of org.apache.maven.plugin.PluginParameterException

            Collection<Parameter> missingParameters = validator.getMissingParameters();
            if ( !missingParameters.isEmpty() )
            {
                if ( "basic".equals( configuratorId ) )
                {
                    throw new PluginParameterException( mojoDescriptor, new ArrayList<Parameter>( missingParameters ) );
                }
                else
                {
                    /*
                     * NOTE: Other configurators like the map-oriented one don't call into the listener, so do it the
View Full Code Here

Examples of org.apache.maven.plugin.PluginParameterException

            }
        }

        if ( !invalidParameters.isEmpty() )
        {
            throw new PluginParameterException( mojoDescriptor, invalidParameters );
        }
    }
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.