Package org.apache.maven.plugin

Examples of org.apache.maven.plugin.PluginManager


     * @deprecated use the tag instead
     */
    public MavenJellyContext getPluginContext( String pluginId )
        throws Exception
    {
        PluginManager pluginManager = context.getMavenSession().getPluginManager();
        return pluginManager.getPluginContext( pluginId );
    }
View Full Code Here


    private PluginManager pluginManager;

    /** Default Constructor. */
    public MavenSession()
    {
        pluginManager = new PluginManager( this );
        //goalNames.add( BUILD_START_GOAL );
    }
View Full Code Here

    public void doTag( XMLOutput output )
        throws MissingAttributeException, JellyTagException
    {
        checkAttribute( file, "file" );

        PluginManager manager = getMavenContext().getMavenSession().getPluginManager();
        try
        {
            manager.installPlugin( file, null, cache );
        }
        catch ( Exception e )
        {
            throw new JellyTagException( "error installing plugin", e );
        }
View Full Code Here

            // Lazy goal loading
            Session session = createSession();
            MavenJellyContext baseContext = (MavenJellyContext) session.getAttribute( PluginManager.BASE_CONTEXT );
            GoalToJellyScriptHousingMapper mapper = (GoalToJellyScriptHousingMapper) session
                .getAttribute( PluginManager.GOAL_MAPPER );
            PluginManager pluginManager = (PluginManager) session.getAttribute( PluginManager.PLUGIN_MANAGER );

            Set pluginSet;
            try
            {
                pluginSet = pluginManager.prepAttainGoal( getName(), baseContext, mapper );
            }
            catch ( Exception e )
            {
                throw new JellyTagException( e );
            }
            project.attainGoal( getName(), session );
            pluginManager.addDelayedPops( pluginSet );
        }
        catch ( UnattainableGoalException e )
        {
            Throwable root = e.getRootCause();
View Full Code Here

    public void doTag( XMLOutput output )
        throws MissingAttributeException, JellyTagException
    {
        checkAttribute( artifactId, "artifactId" );

        PluginManager manager = getMavenContext().getMavenSession().getPluginManager();
        try
        {
            manager.uninstallPlugin( artifactId );
        }
        catch ( IOException e )
        {
            throw new JellyTagException( "error uninstalling plugin", e );
        }
View Full Code Here

    public void doTag( XMLOutput output )
        throws MissingAttributeException, JellyTagException
    {
        checkAttribute( artifactId, "artifactId" );

        PluginManager manager = getMavenContext().getMavenSession().getPluginManager();
        try
        {
            manager.uninstallPlugin( artifactId );
        }
        catch ( IOException e )
        {
            throw new JellyTagException( "error uninstalling plugin", e );
        }
View Full Code Here

            // Lazy goal loading
            Session session = createSession();
            MavenJellyContext baseContext = (MavenJellyContext) session.getAttribute( PluginManager.BASE_CONTEXT );
            GoalToJellyScriptHousingMapper mapper = (GoalToJellyScriptHousingMapper) session
                .getAttribute( PluginManager.GOAL_MAPPER );
            PluginManager pluginManager = (PluginManager) session.getAttribute( PluginManager.PLUGIN_MANAGER );

            Set pluginSet;
            try
            {
                pluginSet = pluginManager.prepAttainGoal( getName(), baseContext, mapper );
            }
            catch ( Exception e )
            {
                throw new JellyTagException( e );
            }
            project.attainGoal( getName(), session );
            pluginManager.addDelayedPops( pluginSet );
        }
        catch ( UnattainableGoalException e )
        {
            Throwable root = e.getRootCause();
View Full Code Here

    public void doTag( XMLOutput output )
        throws MissingAttributeException, JellyTagException
    {
        checkAttribute( file, "file" );

        PluginManager manager = getMavenContext().getMavenSession().getPluginManager();
        try
        {
            manager.installPlugin( file, null, cache );
        }
        catch ( Exception e )
        {
            throw new JellyTagException( "error installing plugin", e );
        }
View Full Code Here

    private PluginManager pluginManager;

    /** Default Constructor. */
    public MavenSession()
    {
        pluginManager = new PluginManager( this );
        //goalNames.add( BUILD_START_GOAL );
    }
View Full Code Here

     * @deprecated use the tag instead
     */
    public MavenJellyContext getPluginContext( String pluginId )
        throws Exception
    {
        PluginManager pluginManager = context.getMavenSession().getPluginManager();
        return pluginManager.getPluginContext( pluginId );
    }
View Full Code Here

TOP

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

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.