Skip to content

Fetching dependencies from private maven server causes classes to fail to load #270

Description

@t-rad679

When I fetch my maven dependencies from our corporate maven server (Artifactory) instead of maven central, Spring Boot fails to load the classes from those nested jars. Specifically, I get a ClassNotFoundException on SpringApplication. I confirmed the issue has something to do with the paths inside the jar where the nested dependency jars are located by modifying springboot_pkg.sh so that it just drops all the bazel-out and else case deps into the root of BOOT-INF/lib/...When I bazel run with this modification, I get past the error I was seeing.

My only guess as to why it's failing is the special characters in the credentials that rules_jvm_external adds to the Artifactory path are somehow throwing off the Spring class loader. Ultimately this is probably a bug in Spring, but I think it would be easier to find a fix here.

For more context see discussion #267

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions