Hi,

I am working on a maven extension and want to access metadata of artifacts. But 
in AbstractMavenLifecycleParticipant.afterProjectReads () no HttpWagon object 
can be reached via container.lookup (org.apache.maven.wagon.Wagon.class, 
"https"), exception NoSuchElementException is thrown. In other lifecycle phases 
the call delivers an HttpWagon object.

Does anyone here know why that is?

I get the metadata via

metadataResolver.resolveMetadata (mavenSession.getRepositorySession (), 
metadataRequests)

but the problem outlined above is the reason why the maven function within 
AbstractMavenLifecycleParticipant.afterProjectReads () does not work.

For the manipulation of the dependencies I chose afterProjectReads because all 
project models were created at this point in time. Perhaps there is a better 
time to change the dependencies after ModelProcessor.read ().

Thanks
Torsten

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

Reply via email to