jfrog / artifactory-maven-plugin

A Maven plugin to resolve artifacts from Artifactory, deploy artifacts to Artifactory, capture and publish build info.
https://www.jfrog.com/confluence/display/JFROG/Maven+Artifactory+Plugin
Apache License 2.0
24 stars 26 forks source link

Add requestBy info to dependency node #53

Open Ciioer opened 1 year ago

Ciioer commented 1 year ago

I have read the CLA Document and I hereby sign the CLA

Ciioer commented 1 year ago

This PR is the successor of PR#35.Thanks for your reply.According to your request, I modified the code. 1.Modify the import method of ProjectDependenciesResolver,adjusted from @inject to @Component(role=ProjectDependenciesResolver.class).The reason for using inject before is that when I use idea2022.1 and maven is 3.2.1, using @ Component will report an error No implementation for xxx was bound. Now I've changed it 2.I simplified the code of getDependencyNode and remove negate 3.Add javadoc for my code 4.I adjusted the unit test code,and I test my code by remote debugging project artifactory-maven-plugin-example.The buildinfo.txt is the json of buildinfo.I get it from BuildInfoRecorder#sessionEnded buildInfo.txt