The best thing to konw is open a Pull Request I think :-)

Beside that you might be able to use:

AbstractForwardingRepositorySystemSession

and return a LocalRepository with a private path.

Am 27.09.22 um 10:33 schrieb Mathias de Riese:
Hi,

if it exists on the remote repo, I would like to retrieve the POM of the 
current project in order to compare it with a local version.

As answered yesterday to a question of Christoph Läubrich, the right entry 
point for this seems to be org.eclipse.aether.RepositorySystem. However, it 
only offers `resolveArtifact()` which does not let me specify the path and 
might return the POM from the local repository...

If I dig deeper I find org.eclipse.aether.spi.connector.RepositoryConnector 
which might do the job. However, it is part of the SPI and not the API.

What would be the correct way to retrieve a artifact (or specifically a POM) to 
a temporary file or into memory?

What am I trying to do? Implementing 
https://issues.apache.org/jira/browse/MDEPLOY-118. By the way: I am still 
patiently waiting for an answer to my previous question, whether you would be 
interested in a pull request for that issue.

Regards,
Mathias



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to