If the post has broken away from the wiring inside the battery...pooched!
However, if that connection is still good and the post has broken away from the battery housing, use epoxy.
If the post itself is cracked or broken, try soldering but you would need quite a bit of heat and that could melt the battery housing.
Having connected and disconnected many batteries, I'm trying to understand how the post broke.
Was the nut cross threaded or corroded or something?