Re: API for resolving Maven artifacts to be used from Mojos

2022-08-20 Thread Tamás Cservenák
Howdy, In maven 3 the only way to do this is using Resolver API directly (your 3. bullet). Now, as there was a mess between 3.0 and 3.1 (resolver package change), MAT (maven-artifact-transfer) was introduced to fix the gap (using reflection), but I hope Maven 3.0 can be really considered as

Re: API for resolving Maven artifacts to be used from Mojos

2022-08-19 Thread Slawomir Jaranowski
Hi, 1, contains methods like createArtifact, I use it for replacement for deprecated https://maven.apache.org/ref/3.8.6/apidocs/org/apache/maven/artifact/factory/ArtifactFactory.html it is correct way? We should point the correct way in code by deprecating some of classes/interfaces with

Re: API for resolving Maven artifacts to be used from Mojos

2022-08-18 Thread Konrad Windszus
For the record: After talking to Michael it seems that 3. is currently the recommended way. For Maven 4 a new API is in the works, with a dedicated service for artifact resolving:

API for resolving Maven artifacts to be used from Mojos

2022-08-15 Thread Konrad Windszus
Hi, I found the following APIs dealing with resolving of Maven artifacts: 1. https://maven.apache.org/ref/3.8.6/apidocs/org/apache/maven/repository/RepositorySystem.html 2. https://maven.apache.org/ref/3.8.6/apidocs/org/apache/maven/bridge/MavenRepositorySystem.html 3.