Examples of PluginDescriptorBuilder


Examples of org.apache.maven.plugin.descriptor.PluginDescriptorBuilder

        XmlStreamReader reader = new XmlStreamReader( is );

        InterpolationFilterReader interpolationFilterReader =
            new InterpolationFilterReader( new BufferedReader( reader ), container.getContext().getContextData() );

        PluginDescriptor pluginDescriptor = new PluginDescriptorBuilder().build( interpolationFilterReader );

        Artifact artifact =
            lookup( RepositorySystem.class ).createArtifact( pluginDescriptor.getGroupId(),
                                                             pluginDescriptor.getArtifactId(),
                                                             pluginDescriptor.getVersion(), ".jar" );
View Full Code Here

Examples of org.apache.maven.plugin.descriptor.PluginDescriptorBuilder

    // END component requirements

    public DefaultPluginManager()
    {
        pluginDescriptorBuilder = new PluginDescriptorBuilder();
    }
View Full Code Here

Examples of org.apache.maven.plugin.descriptor.PluginDescriptorBuilder

    extends AbstractGeneratorTestCase
{
    protected void validate( File destinationDirectory )
        throws Exception
    {
        PluginDescriptorBuilder pdb = new PluginDescriptorBuilder();

        File pluginDescriptorFile = new File( destinationDirectory, "plugin.xml" );

        String pd = readFile( pluginDescriptorFile );

        PluginDescriptor pluginDescriptor = pdb.build( new StringReader( pd ) );

        assertEquals( 1, pluginDescriptor.getMojos().size() );

        MojoDescriptor mojoDescriptor = (MojoDescriptor) pluginDescriptor.getMojos().get( 0 );
View Full Code Here

Examples of org.apache.maven.plugin.descriptor.PluginDescriptorBuilder

        XmlStreamReader reader = ReaderFactory.newXmlReader( is );

        InterpolationFilterReader interpolationFilterReader =
            new InterpolationFilterReader( new BufferedReader( reader ), container.getContext().getContextData() );

        PluginDescriptor pluginDescriptor = new PluginDescriptorBuilder().build( interpolationFilterReader );

        Artifact artifact =
            lookup( RepositorySystem.class ).createArtifact( pluginDescriptor.getGroupId(),
                                                             pluginDescriptor.getArtifactId(),
                                                             pluginDescriptor.getVersion(), ".jar" );
View Full Code Here

Examples of org.apache.maven.plugin.descriptor.PluginDescriptorBuilder

            modelReader = new MavenXpp3Reader();

            modelWriter = new MavenXpp3Writer();

            pluginDescriptorBuilder = new PluginDescriptorBuilder();

            profileManager = new DefaultProfileManager( embedder.getContainer() );

            mavenProjectBuilder = (MavenProjectBuilder) embedder.lookup( MavenProjectBuilder.ROLE );
View Full Code Here

Examples of org.apache.maven.plugin.descriptor.PluginDescriptorBuilder

          XmlStreamReader reader = ReaderFactory.newXmlReader(is);
          InterpolationFilterReader interpolationFilterReader = new InterpolationFilterReader(
            new BufferedReader(reader), container.getContext().getContextData());

          PlexusContainer pc = getContainer();
          pluginDescriptor = new PluginDescriptorBuilder().build(interpolationFilterReader);
          Artifact artifact = pc.lookup(RepositorySystem.class).createArtifact(
            pluginDescriptor.getGroupId(), pluginDescriptor.getArtifactId(), pluginDescriptor.getVersion(),
            ".jar");
          artifact.setFile(getBasedir());
          pluginDescriptor.setClassRealm(pc.getContainerRealm());
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.