Maven 2 & 3
  1. Maven 2 & 3
  2. MNG-4838

Permament move (error 301) not handled properly by Maven

    Details

    • Type: Bug Bug
    • Status: Closed 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
    • Complexity:
      Intermediate
    • Patch Submitted:
      Yes
    • Number of attachments :
      0

      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

          Brett Porter made changes -
          Field Original Value New Value
          Link This issue depends upon WAGON-314 [ WAGON-314 ]
          Brett Porter made changes -
          Project Maven Wagon [ 10335 ] Maven 2 & 3 [ 10500 ]
          Key WAGON-315 MNG-4838
          Affects Version/s 3.0-beta-3 [ 16681 ]
          Affects Version/s 2.2.1 [ 15328 ]
          Affects Version/s 2.0.11 [ 14118 ]
          Affects Version/s 1.0-beta-6 [ 15403 ]
          Component/s Artifacts and Repositories [ 11338 ]
          Component/s wagon-http-lightweight [ 12152 ]
          Fix Version/s 3.0.1 [ 16331 ]
          Fix Version/s 1.0-beta-7 [ 15972 ]
          Complexity Intermediate
          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 -
          Status Open [ 1 ] Closed [ 6 ]
          Assignee Brett Porter [ brettporter ]
          Fix Version/s 3.x / Backlog [ 16138 ]
          Resolution Duplicate [ 3 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved: