Starting from Xray version 3.66.x and above, you can run contextual analysis on an existing artifact. Do the following:
From the Scans List page, Repositories tab, select the repository.
Navigate to the artifact you want.
Click the Actions Menu next to the artifact, and select Run Contextual Analysis.
The results appear under Security Issues > Vulnerabilities.