Package org.apache.maven.artifact

Examples of org.apache.maven.artifact.DependencyResolutionRequiredException


        for ( Artifact a : artifacts )
        {
            File file = a.getFile();
            if ( file == null )
            {
                throw new DependencyResolutionRequiredException( a );
            }
            list.add( file.getPath() );
        }

        Path p = new Path( antProject );
View Full Code Here


{
    /** {@inheritDoc} */
    public List<String> getCompileClasspathElements()
        throws DependencyResolutionRequiredException
    {
        throw new DependencyResolutionRequiredException( new ArtifactStub() );
    }
View Full Code Here

                    else
                    {
                        File file = a.getFile();
                        if ( file == null )
                        {
                            throw new DependencyResolutionRequiredException( a );
                        }
                        list.add( file.getPath() );
                    }
                }
            }
View Full Code Here

                // {
                // }
                File file = a.getFile();
                if ( file == null )
                {
                    throw new DependencyResolutionRequiredException( a );
                }
                list.add( file.getPath() );
            }
        }
        return list;
View Full Code Here

                if ( Artifact.SCOPE_COMPILE.equals( a.getScope() ) || Artifact.SCOPE_RUNTIME.equals( a.getScope() ) )
                {
                    File file = a.getFile();
                    if ( file == null )
                    {
                        throw new DependencyResolutionRequiredException( a );
                    }
                    list.add( file.getPath() );
                }
            }
        }
View Full Code Here

                    else
                    {
                        File file = a.getFile();
                        if ( file == null )
                        {
                            throw new DependencyResolutionRequiredException( a );
                        }
                        list.add( file.getPath() );
                    }
                }
            }
View Full Code Here

        for (final Artifact artifact : artifacts) {
            final File localPath = getLocalProjectPath(artifact);
            final File repoPath = artifact.getFile();

            if (localPath == null && repoPath == null) {
                throw new DependencyResolutionRequiredException(artifact);
            }
            if (localPath != null) {
                artifactsByFile.put(localPath, artifact);
            }
            if (repoPath != null) {
View Full Code Here

            for (Iterator i = artifacts.iterator(); i.hasNext(); list.add(file
                    .getPath())) {
                Artifact a = (Artifact) i.next();
                file = a.getFile();
                if (file == null)
                    throw new DependencyResolutionRequiredException(a);
            }

            p = new Path(antProject);
            p.setPath(StringUtils.join(list.iterator(), File.pathSeparator));
            antProject.addReference("maven.plugin.classpath", p);
View Full Code Here

TOP

Related Classes of org.apache.maven.artifact.DependencyResolutionRequiredException

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.