The key is proper maintenance. When starting up a farm, be it a hobby or working farm, you will need to decide what you want to do with your manure and then how you plan on managing it and eventually disposing of it. The first thing you will look at is the proper location for it. You will need to take into consideration the distance from the closest water source either above or below surface as well as any drains that empty into those water sources. Check your government regulations in your area for exact distance requirements. It's imperative that you follow these rules as the bacteria contained in the runoff in the feces and urine matter are toxic and can be very harmful if entered into the human digestive system.
Next, make sure the ground beneath your manure pile is clay soil or even better, a concrete slab, and is easily accessible for any vehicles needing excess to it.
Since I have no covering for my manure pile, I ensure a dry pile by drying out my manure before it is piled. After I drag out my wheelbarrow of wet manure and straw, I lay the pile separately on the concrete to dry. You can see a ton of little piles scattered around the base of the manure pile in the photos above. After several days, it has dried out sufficiently and then can be added to the bigger pile. Then, just a few months later, you get this.