Local build installTargetPlatform error

I have cloned the buildship repo and I’m trying to run the build locally I get the following error:

[ant:deploy] Uploading: eclipse/org.eclipse.sdk/4.5.0/org.eclipse.sdk-4.5.0.jar to repository nexus at http://localhost:8081/nexus/content/groups/public/
[ant:deploy] Transferring 195K from nexus
:installTargetPlatform FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':installTargetPlatform'.
> Error deploying artifact 'eclipse:org.eclipse.sdk:jar': Error deploying artifact: Failed to transfer file: http://localhost:8081/nexus/content/groups/public/eclipse/org.eclipse.sdk/4.5.0/org.eclipse.sdk-4.5.0.jar. Return code is: 400

How can I specify the local username/password of my nexus server?

The build scripts of Buildship use a local Maven repository to build and resolve dependencies for a target Eclipse version. Since it’s a local repository and purely directory-based it shouldn’t require any credentials to work.
I’m assuming you receive this exception because of your local Maven setup. Can you please try to disable all configuration in your ~/.m2 folder and in the Maven settings.xml file and see if the build passes the installTargetPlatform task?

Thanks that was exactly it, I removed my local * in my
settings.xml and then the build worked.