Package org.apache.maven.project

Examples of org.apache.maven.project.ProjectBuildingResult


                ProjectBuildingRequest projectBuildingRequest =
                    new DefaultProjectBuildingRequest( session.getProjectBuildingRequest() );
                projectBuildingRequest.setLocalRepository( localRepository );
                projectBuildingRequest.setRemoteRepositories( remoteArtifactRepositories );

                ProjectBuildingResult result = projectBuilder.build( f, projectBuildingRequest );

                modified = updateExcludesInDeps( result.getProject(), dependencies, transitiveDeps );
            }

            project.setFile( dependencyReducedPomLocation );
        }
    }
View Full Code Here


   @Override
   public List<Dependency> getEffectiveDependencies()
   {
      MavenFacet maven = getFaceted().getFacet(MavenFacet.class);
      ProjectBuildingResult projectBuildingResult = ((MavenFacetImpl) maven).getProjectBuildingResult();
      DependencyResolutionResult dependencyResolutionResult = projectBuildingResult.getDependencyResolutionResult();
      List<Dependency> deps = MavenDependencyAdapter.fromAetherList(dependencyResolutionResult.getDependencies());

      List<Dependency> result = new ArrayList<Dependency>();
      for (Dependency dependency : deps)
      {
View Full Code Here

   @Override
   public List<Dependency> getEffectiveDependencies()
   {
      MavenFacet maven = getFaceted().getFacet(MavenFacet.class);
      ProjectBuildingResult projectBuildingResult = ((MavenFacetImpl) maven).getProjectBuildingResult();
      DependencyResolutionResult dependencyResolutionResult = projectBuildingResult.getDependencyResolutionResult();
      List<Dependency> deps = MavenDependencyAdapter.fromAetherList(dependencyResolutionResult.getDependencies());

      List<Dependency> result = new ArrayList<Dependency>();
      for (Dependency dependency : deps)
      {
View Full Code Here

   private ProjectBuilder builder;

   ProjectBuildingResult getProjectBuildingResult(MavenModelResource pomResource)
   {
      ProjectBuildingResult result = cache.get(pomResource);
      if (result == null)
      {
         ProjectBuildingRequest request = getProjectBuildingRequest();
         Assert.notNull(request, "Project building request was null");
         request.setResolveDependencies(true);
View Full Code Here

        DefaultProjectBuildingRequest req = new DefaultProjectBuildingRequest();
        req.setRepositorySession(session);
        req.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);

        try {
            ProjectBuildingResult res = projectBuilder.build(mavenArtifact, req);

            return res.getProject().getModel();
        } catch (ProjectBuildingException e) {
            getLog().warn("error building artifact model for artifact "+artifact,e);
            return null;
        }
View Full Code Here

        DefaultProjectBuildingRequest req = new DefaultProjectBuildingRequest();
        req.setRepositorySession(session);
        req.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);

        try {
            ProjectBuildingResult res = projectBuilder.build(mavenArtifact, req);

            return res.getProject().getModel();
        } catch (ProjectBuildingException e) {
            getLog().warn("error building artifact model for artifact "+artifact,e);
            return null;
        }
View Full Code Here

      List<Dependency> result = new ArrayList<>();

      MavenFacetImpl maven = getFaceted().getFacet(MavenFacetImpl.class);
      try
      {
         ProjectBuildingResult projectBuildingResult = maven.getProjectBuildingResult();
         DependencyResolutionResult dependencyResolutionResult = projectBuildingResult.getDependencyResolutionResult();
         List<Dependency> deps = MavenDependencyAdapter.fromAetherList(dependencyResolutionResult.getDependencies());

         for (Dependency dependency : deps)
         {
            result.add(resolveProperties(dependency));
View Full Code Here

   private ProjectBuilder builder;

   ProjectBuildingResult getProjectBuildingResult(MavenModelResource pomResource)
   {
      ProjectBuildingResult result = cache.get(pomResource);
      if (result == null)
      {
         ProjectBuildingRequest request = getProjectBuildingRequest();
         Assert.notNull(request, "Project building request was null");
         request.setResolveDependencies(true);
View Full Code Here

   @Override
   public List<Dependency> getEffectiveDependencies()
   {
      MavenFacet maven = getFaceted().getFacet(MavenFacet.class);
      ProjectBuildingResult projectBuildingResult = ((MavenFacetImpl) maven).getProjectBuildingResult();
      DependencyResolutionResult dependencyResolutionResult = projectBuildingResult.getDependencyResolutionResult();
      List<Dependency> deps = MavenDependencyAdapter.fromAetherList(dependencyResolutionResult.getDependencies());

      List<Dependency> result = new ArrayList<Dependency>();
      for (Dependency dependency : deps)
      {
View Full Code Here

                ProjectBuildingRequest projectBuildingRequest =
                    new DefaultProjectBuildingRequest( session.getProjectBuildingRequest() );
                projectBuildingRequest.setLocalRepository( localRepository );
                projectBuildingRequest.setRemoteRepositories( remoteArtifactRepositories );

                ProjectBuildingResult result = projectBuilder.build( f, projectBuildingRequest );

                modified = updateExcludesInDeps( result.getProject(), dependencies, transitiveDeps );
            }

            project.setFile( dependencyReducedPomLocation );
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.maven.project.ProjectBuildingResult

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.