Then, generate eclipse project files.
$ mvn eclipse:eclipse -DskipTests
At last, import to eclipse by specifying the root directory of the project via
[File] > [Import] > [Existing Projects into Workspace].
Documentation is unclear on which directory to run mvn eclipse:eclipse at. I tried running at hadoop root directory, it resulted in Eclipse import failures, using either Java or M2E project importers. However, the project builds successfully in the docker environment supplied.