Maven
  1. Maven
  2. MNG-4838

Permament move (error 301) not handled properly by Maven

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.0.11, 2.2.1, 3.0-beta-3
    • Fix Version/s: None
    • Labels:
      None
    • Flags:
      Patch

      Description

      Artifact cannot be downloaded by http-lightweight-wagon used (as default) in all Maven versions except 2.2.0, which uses http-wagon by default.
      Instead of pom and jar files html files appear in the local repo with content like:

      <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
      <html><head>
      <title>301 Moved Permanently</title>
      </head><body>
      <h1>Moved Permanently</h1>
      <p>The document has moved <a href="http://download.java.net/maven/2/org/codehaus/castor/castor-xml-schema/1.2/castor-xml-schema-1.2.pom">here</a>.</p>
      <hr>
      <address>Apache Server at maven2-repository.dev.java.net Port 443</address>
      </body></html>

      Only Maven 2.2.0 handles 301 properly.

      By the way, I haven't expected such Apache configuration (permament move) in central Maven repo.
      As you can see this is not handled properly by almost all versions of Maven.

        Issue Links

          Activity

          Grzegorz Slowikowski created issue -
          Brett Porter made changes -
          Field Original Value New Value
          Link This issue depends upon WAGON-314 [ WAGON-314 ]
          Brett Porter made changes -
          Affects Version/s 3.0-beta-3 [ 16681 ]
          Project Maven Wagon [ 10335 ] Maven 2 & 3 [ 10500 ]
          Affects Version/s 1.0-beta-6 [ 15403 ]
          Fix Version/s 3.0.1 [ 16331 ]
          Fix Version/s 1.0-beta-7 [ 15972 ]
          Complexity Intermediate
          Key WAGON-315 MNG-4838
          Component/s wagon-http-lightweight [ 12152 ]
          Component/s Artifacts and Repositories [ 11338 ]
          Affects Version/s 2.2.1 [ 15328 ]
          Affects Version/s 2.0.11 [ 14118 ]
          Hide
          Brett Porter added a comment -

          requires a Wagon release to fix, see linked issue

          Show
          Brett Porter added a comment - requires a Wagon release to fix, see linked issue
          Benjamin Bentmann made changes -
          Fix Version/s 3.x / Backlog [ 16138 ]
          Fix Version/s 3.0.1 [ 16331 ]
          Benjamin Bentmann made changes -
          Link This issue is depended upon by MNG-5154 [ MNG-5154 ]
          Hide
          Andrea Aime added a comment -

          The wagon issue has been fixed. What about this one?

          Show
          Andrea Aime added a comment - The wagon issue has been fixed. What about this one?
          Hide
          Jesse Glick added a comment -

          Seems like Wagon 2.0 with this fix was first introduced in Maven 3.1.0, meaning this should now be considered fixed (and ought to have been included in the 3.1.0 release notes); am I wrong?

          Show
          Jesse Glick added a comment - Seems like Wagon 2.0 with this fix was first introduced in Maven 3.1.0, meaning this should now be considered fixed (and ought to have been included in the 3.1.0 release notes); am I wrong?
          Hide
          Brett Porter added a comment -

          Yes, fixed since Maven 3.0.4 - but due to MNG-5175 rather than WAGON-314.

          Show
          Brett Porter added a comment - Yes, fixed since Maven 3.0.4 - but due to MNG-5175 rather than WAGON-314 .
          Brett Porter made changes -
          Fix Version/s 3.x / Backlog [ 16138 ]
          Resolution Duplicate [ 3 ]
          Assignee Brett Porter [ brettporter ]
          Status Open [ 1 ] Closed [ 6 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 08:49:45 UTC 2015 [ 1428223785911 ]
          Mark Thomas made changes -
          Link This issue depends upon WAGON-314 [ WAGON-314 ]
          Mark Thomas made changes -
          Workflow jira [ 12715107 ] Default workflow, editable Closed status [ 12755812 ]
          Mark Thomas made changes -
          Flags Patch [ 10430 ]
          Patch Submitted Yes [ 10763 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 21:45:26 UTC 2015 [ 1428270326204 ]
          Mark Thomas made changes -
          Link This issue depends upon WAGON-314 [ WAGON-314 ]
          Mark Thomas made changes -
          Workflow jira [ 12952099 ] Default workflow, editable Closed status [ 12989451 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Closed Closed
          1060d 18h 6m 1 Brett Porter 20/Aug/13 06:02

            People

            • Assignee:
              Brett Porter
              Reporter:
              Grzegorz Slowikowski
            • Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development