Package org.apache.maven.project

Examples of org.apache.maven.project.DefaultProjectBuilderConfiguration


    MavenEnvironment result = new MavenEnvironment();
    result.setArtifactFactory(artifactFactory);
    result.setArtifactHandlerManager(artifactHandlerManager);
    result.setMavenTools(mavenTools);
    result.setMavenProjectBuilder(mavenProjectBuilder);
    result.setProjectBuilderConfiguration(new DefaultProjectBuilderConfiguration());

    File settingsFile = new File(System.getProperty("user.home")
        + "/.m2/settings.xml");
    result.settings = new SettingsXpp3Reader().read(new FileInputStream(
        settingsFile));
View Full Code Here


        Properties props = new Properties();
        props.putAll( context );

        return interpolate( model,
                            null,
                            new DefaultProjectBuilderConfiguration().setExecutionProperties( props ),
                            true );
    }
View Full Code Here

    {
        if ( superProject == null )
        {
            try
            {
                superProject = mavenProjectBuilder.buildStandaloneSuperProject( new DefaultProjectBuilderConfiguration() );
            }
            catch ( ProjectBuildingException e )
            {
                throw new ArtifactMetadataRetrievalException(
                    "Unable to parse the Maven built-in model: " + e.getMessage(), e );
View Full Code Here

                throw new ProjectBuildingException( "unknown", "The file " + pom.getAbsolutePath() +
                    " you specified has zero length." );
            }
        }

        ProjectBuilderConfiguration config = new DefaultProjectBuilderConfiguration();
        config.setLocalRepository( request.getLocalRepository() )
              .setGlobalProfileManager( request.getGlobalProfileManager() )
              .setUserProperties( request.getUserProperties() );

        return projectBuilder.build( pom, config );
    }
View Full Code Here

    {
        if ( superProject == null )
        {
            try
            {
                superProject = mavenProjectBuilder.buildStandaloneSuperProject( new DefaultProjectBuilderConfiguration() );
            }
            catch ( ProjectBuildingException e )
            {
                throw new ArtifactMetadataRetrievalException(
                    "Unable to parse the Maven built-in model: " + e.getMessage(), e );
View Full Code Here

        Properties props = new Properties();
        props.putAll( context );

        return interpolate( model,
                            null,
                            new DefaultProjectBuilderConfiguration().setExecutionProperties( props ),
                            true );
    }
View Full Code Here

        String[] values = { "${key}", "${key2}" };

        StringSearchModelInterpolator interpolator = (StringSearchModelInterpolator) createInterpolator();

        ProjectBuilderConfiguration config = new DefaultProjectBuilderConfiguration().setExecutionProperties( p );

        interpolator.interpolateObject( values, model, new File( "." ), config, true );

        assertEquals( "value", values[0] );
        assertEquals( "value2", values[1] );
View Full Code Here

        ObjectWithStringArrayField obj = new ObjectWithStringArrayField( values );

        StringSearchModelInterpolator interpolator = (StringSearchModelInterpolator) createInterpolator();

        ProjectBuilderConfiguration config = new DefaultProjectBuilderConfiguration().setExecutionProperties( p );

        interpolator.interpolateObject( obj, model, new File( "." ), config, true );

        assertEquals( "value", obj.values[0] );
        assertEquals( "value2", obj.values[1] );
View Full Code Here

        ObjectWithListField obj = new ObjectWithListField( values );

        StringSearchModelInterpolator interpolator = (StringSearchModelInterpolator) createInterpolator();

        ProjectBuilderConfiguration config = new DefaultProjectBuilderConfiguration().setExecutionProperties( p );

        interpolator.interpolateObject( obj, model, new File( "." ), config, true );

        assertEquals( "value", obj.values.get( 0 ) );
        assertEquals( "value2", obj.values.get( 1 ) );
View Full Code Here

        ObjectWithListField obj = new ObjectWithListField( values );

        StringSearchModelInterpolator interpolator = (StringSearchModelInterpolator) createInterpolator();

        ProjectBuilderConfiguration config = new DefaultProjectBuilderConfiguration().setExecutionProperties( p );

        interpolator.interpolateObject( obj, model, new File( "." ), config, true );

        assertEquals( "key", obj.values.get( 0 ) );
        assertEquals( "value2", obj.values.get( 1 ) );
View Full Code Here

TOP

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

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.