Package org.apache.maven.model

Examples of org.apache.maven.model.License


     * @throws Exception if any
     */
    public void testInterpolate()
        throws Exception
    {
        License license = new License();
        license.setName( "licenseName" );
        license.setUrl( "licenseUrl" );

        List<Developer> developers = new ArrayList<Developer>();
        Developer developer1 = new Developer();
        developer1.setId( "id1" );
        developer1.setName( "developerName1" );
View Full Code Here


            // parent.setVersion( "1" );
            // model.setParent( parent );

            // infer license for know projects, everything at eclipse is licensed under EPL
            // maybe too simplicistic, but better than nothing
            License license = new License();
            license.setName( "Eclipse Public License - v 1.0" ); //$NON-NLS-1$
            license.setUrl( "http://www.eclipse.org/org/documents/epl-v10.html" ); //$NON-NLS-1$
            model.addLicense( license );
        }

        if ( deps.length > 0 )
        {
View Full Code Here

                elIt = null;
            }
            Counter innerCount = new Counter( counter.getDepth() + 1 );
            while ( it.hasNext() )
            {
                License value = (License) it.next();
                Element el;
                if ( elIt != null && elIt.hasNext() )
                {
                    el = (Element) elIt.next();
                    if ( !elIt.hasNext() )
View Full Code Here

        Build build = new Build();
        build.setFinalName( "no-scm" );
        build.setDirectory( getBasedir() + "/target/test/unit/no-scm/target" );
        setBuild( build );

        setLicenses( Collections.<License> singletonList( new License() ) );
    }
View Full Code Here

        Build build = new Build();
        build.setFinalName( "no-javadocjar" );
        build.setDirectory( getBasedir() + "/target/test/unit/no-javadocjar/target" );
        setBuild( build );

        setLicenses( Collections.<License> singletonList( new License() ) );
    }
View Full Code Here

        Build build = new Build();
        build.setFinalName( "no-project-name" );
        build.setDirectory( getBasedir() + "/target/test/unit/no-project-name/target" );
        setBuild( build );

        setLicenses( Collections.<License> singletonList( new License() ) );
    }
View Full Code Here

        Build build = new Build();
        build.setFinalName( "default-configuration" );
        build.setDirectory( getBasedir() + "/target/test/unit/default-configuration/target" );
        setBuild( build );

        setLicenses( Collections.<License> singletonList( new License() ) );
    }
View Full Code Here

        Build build = new Build();
        build.setFinalName( "pom-only" );
        build.setDirectory( getBasedir() + "/target/test/unit/pom-only/target" );
        setBuild( build );

        setLicenses( Collections.<License> singletonList( new License() ) );
    }
View Full Code Here

        Build build = new Build();
        build.setFinalName( "no-javadoc-sources" );
        build.setDirectory( getBasedir() + "/target/test/unit/no-javadoc-sources/target" );
        setBuild( build );

        setLicenses( Collections.<License> singletonList( new License() ) );
    }
View Full Code Here

        Build build = new Build();
        build.setFinalName( "no-sourcesjar" );
        build.setDirectory( getBasedir() + "/target/test/unit/no-sourcesjar/target" );
        setBuild( build );

        setLicenses( Collections.<License> singletonList( new License() ) );
    }
View Full Code Here

TOP

Related Classes of org.apache.maven.model.License

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.