@@ -381,21 +381,21 @@ func TestSetupMavenCommand(t *testing.T) {
381381 client , err := httpclient .ClientBuilder ().Build ()
382382 assert .NoError (t , err )
383383
384- moduleCacheUrl := serverDetails .ArtifactoryUrl + tests .MvnRemoteRepo + "-cache/org/apache/ commons/ commons-lang3 "
384+ moduleCacheUrl := serverDetails .ArtifactoryUrl + tests .MvnRemoteRepo + "-cache/commons-collections/ commons-collections/3.2.1/ commons-collections-3.2.1.jar "
385385 _ , _ , err = client .GetRemoteFileDetails (moduleCacheUrl , artHttpDetails )
386386 assert .ErrorContains (t , err , "404" )
387387
388388 jfrogCli := coreTests .NewJfrogCli (execMain , "jfrog" , "" )
389389 assert .NoError (t , execGo (jfrogCli , "setup" , "maven" , "--repo=" + tests .MvnRemoteRepo ))
390390
391391 // Remove the artifact from the .m2 cache to force artifactory resolve.
392- assert .NoError (t , os .RemoveAll (filepath .Join (homeDir , ".m2" , "repository" , "org" , "apache" , " commons" , "commons-lang3 " )))
392+ assert .NoError (t , os .RemoveAll (filepath .Join (homeDir , ".m2" , "repository" , "commons-collections " , "commons-collections " )))
393393
394394 // Run `mvn install` to resolve the artifact from Artifactory and force it to be downloaded.
395- output , err := exec .Command ("mvn" , "dependency:resolve " ,
396- "-DgroupId=org.apache. commons" ,
397- "-DartifactId=commons-lang3 " ,
398- "-Dversion=3.8 .1" , "-X" ).Output ()
395+ output , err := exec .Command ("mvn" , "dependency:get " ,
396+ "-DgroupId=commons-collections " ,
397+ "-DartifactId=commons-collections " ,
398+ "-Dversion=3.2 .1" , "-X" ).Output ()
399399 log .Info (string (output ))
400400 assert .NoError (t , err , fmt .Sprintf ("%s\n %q" , string (output ), err ))
401401
0 commit comments