On my PJ dump trailer it has fuses on both the positive and negative sides of the charging circuit for the trailer battery. If you have smoke its most definitely a short circuit somewhere, a bad ground prevents flow of electricity so that would be highly unlikely. Id trace out your harness from the 7 pin at your truck to the junction box then onto the trailer battery and finally to the pump. More than likely the short would be on the charging circuit based on your description so I'd primarily focus on that side of the wiring. Adding a fuse to the charging circuit would definitely help for future problems but ultimately, it's caused by a short circuit.