Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6653

DefaultProjectBuildingRequest copy constructor does not copy all fields

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.6.1
    • Fix Version/s: 3.6.2
    • Component/s: core
    • Labels:
      None

      Description

          public DefaultProjectBuildingRequest( ProjectBuildingRequest request )
          {
              this();
              setProcessPlugins( request.isProcessPlugins() );
              setProfiles( request.getProfiles() );
              setActiveProfileIds( request.getActiveProfileIds() );
              setInactiveProfileIds( request.getInactiveProfileIds() );
              setSystemProperties( request.getSystemProperties() );
              setUserProperties( request.getUserProperties() );
              setRemoteRepositories( request.getRemoteRepositories() );
              setPluginArtifactRepositories( request.getPluginArtifactRepositories() );
              setRepositorySession( request.getRepositorySession() );
              setLocalRepository( request.getLocalRepository() );
              setBuildStartTime( request.getBuildStartTime() );
              setProject( request.getProject() );
              setResolveDependencies( request.isResolveDependencies() );
              setValidationLevel( request.getValidationLevel() );
          }
      

      This is missing setRepositoryMerging( request.getRepositoryMerging() ); and setResolveVersionRanges( request.isResolveVersionRanges() );.

        Attachments

          Activity

            People

            • Assignee:
              michael-o Michael Osipov
              Reporter:
              famod Falko Modler
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: