Examples of IdeDependency


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

                        File projectLocation =
                            getProjectLocation( workspaceConfiguration.getWorkspaceDirectory(), project );
                        if ( projectLocation != null )
                        {
                logger.debug( "read workpsace project " + projectLocation );
                            IdeDependency ideDependency = readArtefact( projectLocation, logger );
                            if ( ideDependency != null )
                            {
                                dependencies.add( ideDependency );
                            }
                        }
View Full Code Here

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

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

    }

    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

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

        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
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.