How does the process of indigenisation in the defence sector contribute to national security and self-reliance, and what are its main challenges?

The Army Chief emphasized the importance of indigenisation for preparing for future wars. I want to understand how making defence equipment domestically can boost security, and what obstacles India faces in this path.