Package org.apache.maven.plugin.ide

Examples of org.apache.maven.plugin.ide.IdeDependency


            deployDir = "/WEB-INF/lib";
        }
        // dependencies
        for ( int j = 0; j < config.getDeps().length; j++ )
        {
            IdeDependency dep = config.getDeps()[j];
            String type = dep.getType();

            // NB war is needed for ear projects, we suppose nobody adds a war dependency to a war/jar project
            // exclude test and provided and system dependencies outside the project
            if ( ( !dep.isTestDependency() && !dep.isProvided() && !dep.isSystemScopedOutsideProject( project ) )
                && ( Constants.PROJECT_PACKAGING_JAR.equals( type ) || Constants.PROJECT_PACKAGING_EJB.equals( type )
                    || "ejb-client".equals( type ) || Constants.PROJECT_PACKAGING_WAR.equals( type ) ) ) //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
            {
                addDependency( writer, dep, localRepository, config.getProject().getBasedir(), deployDir );
            }
View Full Code Here


    }

    private IdeDependency createDep( String packagingType )
    {
        IdeDependency dependency = new IdeDependency();
        dependency.setGroupId( "g" );
        dependency.setArtifactId( packagingType + "Artifact" );
        dependency.setVersion( "v" );
        dependency.setReferencedProject( true );
        dependency.setAddedToClasspath( true );
        dependency.setEclipseProjectName( packagingType + "Project" );
        dependency.setType( packagingType );
        return dependency;
    }
View Full Code Here

        new File( basedir, maskedOutputDir ).mkdirs();

        config.setEclipseProjectName( "test-project" );

        IdeDependency dependency = new IdeDependency();
        dependency.setFile( new File( repoDir, "g/a/v/a-v.jar" ) );
        dependency.setGroupId( "g" );
        dependency.setArtifactId( "a" );
        dependency.setVersion( "v" );
        dependency.setAddedToClasspath( true );
        dependency.setJavadocAttachment( new File( System.getProperty( "user.home" ), ".m2/some.jar" ) );

        config.setDeps( new IdeDependency[] { dependency } );

        TestLog log = new TestLog();
View Full Code Here

TOP

Related Classes of org.apache.maven.plugin.ide.IdeDependency

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.