Package org.apache.maven.artifact

Examples of org.apache.maven.artifact.DependencyResolutionRequiredException


        {
            File file = a.getFile();

            if ( file == null )
            {
                throw new DependencyResolutionRequiredException( a );
            }

            list.add( file.getPath() );
        }
View Full Code Here


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

      File file;
      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

      File file;
      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

                // {
                // }
                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

            String path;
            if (elem instanceof Artifact) {
                Artifact a = (Artifact) elem;
                File file = a.getFile();
                if (file == null) {
                    throw new DependencyResolutionRequiredException(a);
                }
                path = file.getPath();
            } else {
                path = elem.toString();
            }
View Full Code Here

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

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

                    else
                    {
                        File file = a.getFile();
                        if ( file == null )
                        {
                            throw new DependencyResolutionRequiredException( a );
                        }
                        list.add( file.getPath() );
                    }
                }
            }
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.