Maven
  1. Maven
  2. MNG-2462

Using Maven 1.x Legacy Repository Layout in a Maven 2.0.4 Project, I can't depend on a "java-sources" jar

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.0.4
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Mac Os X

      Description

      Consider this dependency:

      <dependency>
      <groupId>javax.faces</groupId>
      <artifactId>jsf-api</artifactId>
      <version>1.2</version>
      <classifier>sources</classifier>
      </dependency>

      This yields depdency id: javax.faces:jsf-api:jar:sources:1.2

      This artifact is resolved from a 1.x Maven repository

      <repository>
      <snapshots />
      <id>java.net</id>
      <name>Java.net Maven 1.x Repository for external projects</name>
      <url>https://maven-repository.dev.java.net/nonav/repository/</url>
      <layout>legacy</layout>
      </repository>

      And the path to the actual jar is https://maven-repository.dev.java.net/nonav/repository/javax.faces/java-sources/jsf-api-1.2-sources.jar

      However, maven 2.0.4 is trying to fetch:

      https://maven-repository.dev.java.net/nonav/repository/javax.faces/jars/jsf-api-1.2-sources.jar

        Activity

        Ed Burns created issue -
        John Casey made changes -
        Field Original Value New Value
        Project Maven Repository Manager [ 10980 ] Maven 2 [ 10500 ]
        Key MRM-126 MNG-2462
        Component/s Artifacts and Repositories [ 11338 ]
        Component/s repository interface [ 12049 ]
        Complexity Intermediate
        John Casey made changes -
        Fix Version/s 2.0.5 [ 12294 ]
        Affects Version/s 2.0.4 [ 12527 ]
        Ed Burns made changes -
        Resolution Cannot Reproduce [ 5 ]
        Status Open [ 1 ] Closed [ 6 ]
        Michael Osipov made changes -
        Fix Version/s 2.0.5 [ 12294 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 08:49:45 UTC 2015 [ 1428223785911 ]
        Mark Thomas made changes -
        Workflow jira [ 12713061 ] Default workflow, editable Closed status [ 12752908 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 21:45:26 UTC 2015 [ 1428270326204 ]
        Mark Thomas made changes -
        Workflow jira [ 12952053 ] Default workflow, editable Closed status [ 12989398 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Ed Burns
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development