Closed petroseskinder closed 7 years ago
I think you need maven-settings-builder (https://mvnrepository.com/artifact/org.apache.maven/maven-settings-builder/3.5.0), not maven-settings.
I think you need maven-settings-builder, not maven-settings.
😞
Context
Building off of the stable changes made in #29, I tried adding a dependency on maven-settings:3.5.0, so that I could use a org.apache.maven.settings.building.SettingsBuilder within one of my classes. However, I was unsuccessful in building the target with the new dependencies. I am unsure what I am doing incorrectly or forgetting to do.
Here is the error reported when I ran
bazel build generate_workspace/src/main/java/com/google/devtools/build/workspace/maven:all
Reproducing
I went the route of running the
generate_workspace
command to modifying theworkspace.bzl
file, and then depending directly on the new artifacts maven jar.To modify the workspace.bzl file, I ran the following command:
I used the stable version of generate_workspace from #29 to construct the deploy jar. This resulted in the following changes to the
generate_workspace.bzl
fileThen, I added deps on
"@org_apache_maven_maven_settings//jar",
in the"//generate_workspace/src/main/java/com/google/devtools/build/workspace/maven:maven
target [diff].After which point, I simply imported
org.apache.maven.settings.building.DefaultSettingsBuildingRequest
in the DefaultModelResolver [diff].@kchodorow