migrator-maven-plugin

Used to generate a Bazel-compatible listing of all dependencies transitively. Provides a listing of maven_jar() directives for the WORKSPACE file (optionally with SHA1 hashes and source servers), and on request, the relevant @references for the BUILD files. Can also export the servers used in the project, in case a dependency was not downloaded from Central (Bazel defaults to Central if no server is defined for an artifact).

Preparation

Clone the repo and run mvn install to install the plugin in your local repo before running.

If you’re looking to build a specific version, first you’ll need to check out the appropriate tag/commit, and change the version number in the POM plugin declaration!

Injecting

<plugin>
	<groupId>hu.skawa</groupId>
	<artifactId>migrator-maven-plugin</artifactId>
	<version>1.1.1</version>
</plugin>

Parameters

Goals

Use

Run the plugin by executing mvn hu.skawa:migrator-maven-plugin:${GOAL}, optionally adding the above parameters.

If you have a modular project, the build will invoke the reactor, and the plugin is executed for each project in turn. This will result in multiple output files, each prefixed by your chosen prefix and the project name.

Known issues