protoc-jar-maven-plugin icon indicating copy to clipboard operation
protoc-jar-maven-plugin copied to clipboard

Favor repositorySystemSession

Open labianchin opened this issue 2 years ago • 0 comments
trafficstars

I have observed the following warning:

[INFO] --- protoc-jar:3.11.4:run (default) @ project-foo --- [WARNING] Parameter ‘localRepository’ is deprecated core expression; Avoid use of ArtifactRepository type. If you need access to local repository, switch to ‘${repositorySystemSession}’ expression and get LRM from it instead.

When using maven version:

❯ mvn --version Apache Maven 3.9.1 (2e178502fcdbffc201671fb2537d0cb4b4cc58f8) Java version: 17.0.7, vendor: Amazon.com Inc., runtime: /Library/Java/JavaVirtualMachines/amazon-corretto-17.jdk/Contents/Home OS name: "mac os x", version: "13.3.1", arch: "x86_64", family: "mac"

--

I wonder if this change would address the above warning. I am not sure yet, still I leave a draft PR here open for comments and thoughts..

labianchin avatar Apr 27 '23 14:04 labianchin