Modernization and repair of military machinery and arms