Maven 1

https repositories are not supported

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.1-beta-2
  • Fix Version/s: 1.1-beta-3
  • Component/s: core
  • Labels:
    None
  • Environment:
    Windows XP
  • Number of attachments :
    0

Description

Maven 1.1 beta2 doesn't support the https repositories (it tries to handle it as file protocol)

In fact, org.apache.maven.verifier.DependencyVerifier line 374 reads:

if ( repository.getProtocol().equals( "http" ) )

{ wagon = new HttpWagon(); }

else

{ wagon = new FileWagon(); }

This used to work with Maven 1.0.2 (which apparently isn't using Wagon for downloading dependency jars.)

Activity

Hide
Kohsuke Kawaguchi added a comment -

Simply changing the problematic line to:

if ( repository.getProtocol().equals( "http" ) || repository.getProtocol().equals( "https" ) )

seems to make it work.

Show
Kohsuke Kawaguchi added a comment - Simply changing the problematic line to: if ( repository.getProtocol().equals( "http" ) || repository.getProtocol().equals( "https" ) ) seems to make it work.
Hide
Kohsuke Kawaguchi added a comment -

This currently prevents Maven 1.1 beta2 users from accessing the java.net maven repository.
See WAGONHTTP-5 for another blocker.

Show
Kohsuke Kawaguchi added a comment - This currently prevents Maven 1.1 beta2 users from accessing the java.net maven repository. See WAGONHTTP-5 for another blocker.
Hide
Lukas Theussl added a comment -

Fixed. Thanks!

Show
Lukas Theussl added a comment - Fixed. Thanks!

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: