bazelbuild / migration-tooling

Migration tools for Bazel
Apache License 2.0
44 stars 30 forks source link

Fails with standard spring boot app #79

Open chrste90 opened 6 years ago

chrste90 commented 6 years ago

Hey,

it seems that the migration tool doesn't work with a spring boot app.

Just generate a standard spring boot app at https://start.spring.io/ and run the migration tooling on it. I get the following error:

$ bazel run //generate_workspace -- --maven_project=/Users/chris/Desktop/demo/
INFO: Analysed target //generate_workspace:generate_workspace (0 packages loaded).
INFO: Found 1 target...
Target //generate_workspace:generate_workspace up-to-date:
  bazel-bin/generate_workspace/generate_workspace.jar
  bazel-bin/generate_workspace/generate_workspace
INFO: Elapsed time: 0.311s, Critical Path: 0.01s
INFO: Build completed successfully, 1 total action

INFO: Running command line: bazel-bin/generate_workspace/generate_workspace '--maven_project=/Users/chris/Desktop/demo/'
Jan 24, 2018 8:01:30 AM com.google.devtools.build.workspace.maven.DefaultModelResolver getRawModel
WARNUNG: Unable to resolve raw Maven model from /Users/chris/Desktop/demo/pom.xml: 1 problem was encountered while building the effective model for com.example:demo:0.0.1-SNAPSHOT
[FATAL] Non-resolvable parent POM: Could not find any repositories that knew how to resolve org.springframework.boot:spring-boot-starter-parent:1.5.9.RELEASE (checked ) @ 

Jan 24, 2018 8:01:30 AM com.google.devtools.build.workspace.maven.DefaultModelResolver getEffectiveModel
WARNUNG: Unable to resolve Maven model from /Users/chris/Desktop/demo/pom.xml: 1 problem was encountered while building the effective model for com.example:demo:0.0.1-SNAPSHOT
[FATAL] Non-resolvable parent POM: Could not find any repositories that knew how to resolve org.springframework.boot:spring-boot-starter-parent:1.5.9.RELEASE (checked ) @ 

Wrote /private/var/tmp/_bazel_chris/7cdadfef246225c2d3b62dd8a9e408e2/execroot/__main__/bazel-out/darwin-fastbuild/bin/generate_workspace/generate_workspace.runfiles/__main__/generate_workspace.bzl

Did i forgot any configuration or is it a bug?

May be related to: https://github.com/bazelbuild/migration-tooling/issues/61