Astronauts on long voyages need to be able to make their own spare parts, tools and materials essentially on demand - both for routine needs and to adapt quickly to unforeseen ones. In-space manufacturing (ISM) using 3D printing technology could be an answer.

Source: Solving the Challenges of Long Duration Space Flight with 3D Printing