use the new publish api to write the artifact to nexus