44from  aiohttp  import  ClientConnectorError , ClientSession 
55from  xmltodict  import  parse 
66
7+ from  app .logger  import  logger 
8+ 
79
810async  def  get_all_mvn_versions (
911    package_artifact_id : str , package_group_id : str 
@@ -12,6 +14,7 @@ async def get_all_mvn_versions(
1214    async  with  ClientSession () as  session :
1315        while  True :
1416            try :
17+                 logger .info (f"MAVEN - https://repo1.maven.org/maven2/{ package_group_id .replace ("." , "/" )} { package_artifact_id }  )
1518                async  with  session .get (f"https://repo1.maven.org/maven2/{ package_group_id .replace ("." , "/" )} { package_artifact_id }  ) as  response :
1619                    xml_string  =  await  response .text ()
1720                    break 
@@ -38,16 +41,12 @@ async def requires_mvn_packages(
3841    async  with  ClientSession () as  session :
3942        while  True :
4043            try :
44+                 logger .info (f"MAVEN - https://repo1.maven.org/maven2/{ group_id } { package_artifact_id } { version_dist } { package_artifact_id } { version_dist }  )
4145                async  with  session .get (f"https://repo1.maven.org/maven2/{ group_id } { package_artifact_id } { version_dist } { package_artifact_id } { version_dist }  ) as  response :
4246                    xml_string  =  await  response .text ()
4347                    break 
4448            except  (ClientConnectorError , TimeoutError ):
45-                 try :
46-                     async  with  session .get (f"https://search.maven.org/remotecontent?filepath={ group_id } { package_artifact_id } { version_dist } { package_artifact_id } { version_dist }  ) as  response :
47-                         xml_string  =  await  response .text ()
48-                         break 
49-                 except  (ClientConnectorError , TimeoutError ):
50-                     await  sleep (5 )
49+                 await  sleep (5 )
5150    try :
5251        pom_dict  =  parse (xml_string )
5352    except  Exception  as  _ :
0 commit comments