websocket-spec
  1. websocket-spec
  2. WEBSOCKET_SPEC-180

Maven artifact javax.websocket-api erroneously lists javax.websocket-client-api as dependency

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: None
    • Labels:
      None

      Description

      When I include javax.websocket-api as a dependency in my Maven POM, javax.websocket-client-api is indicated is a transient dependency and is automatically downloaded and added to my project. This is incorrect, because all classes in the javax.websocket-client-api artifact are also in the javax.websocket-api artifact. Either javax.websocket-api should not list javax.websocket-client-api as a dependency, or the javax.websocket-client-api classes should not be included in the javax.websocket-api artifact.

      Personally, I would argue that there should be a javax.websocket-client-api artifact and a javax.websocket-server-api artifact that depends on it.

        Activity

        Hide
        jitu added a comment -

        I will mark the javax.websocket-client-api dependency optional in javax.websocket-api. So when you use that in your maven project, it won't pull the client dependency to the classpath.

        Show
        jitu added a comment - I will mark the javax.websocket-client-api dependency optional in javax.websocket-api. So when you use that in your maven project, it won't pull the client dependency to the classpath.
        Hide
        jitu added a comment -

        Made that the javax.websocket-client-api as optional dependency.

        Show
        jitu added a comment - Made that the javax.websocket-client-api as optional dependency.

          People

          • Assignee:
            jitu
            Reporter:
            Nick Williams
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: