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

Error found in code: wrong order of parameters in createRepository for repo in a profile in settings.xml

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0-alpha-2
    • 3.0-alpha-3
    • Embedding
    • None
    • n/a, I've found the bug inside the maven source code

    Description

      I've spotted an error at line 245in the following method invocation:

      class DefaultMavenExecutionRequestPopulator

      private void processSettings( MavenExecutionRequest request, Configuration configuration )
      ...
      ArtifactRepository ar = mavenTools.createRepository( r.getId(), r.getUrl(), snapshots, releases );

      The order of id and url should be reversed:

      interface MavenTools
      ArtifactRepository createRepository( String url, String repositoryId, ArtifactRepositoryPolicy snapshotsPolicy, ArtifactRepositoryPolicy releasesPolicy );

      Attachments

        Activity

          People

            bentmann Benjamin Bentmann
            mschutte Marcel Schutte
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: