On 10/16/2017 12:39 PM, Paul Hammant wrote:
>>
>> This should be possible by providing WorkspaceReader implementation -
>> @Component( role = WorkspaceReader.class, hint = "ide" )
>>
>> Note that Maven tries resolution from workspace *before* repositories -
>> workspace reader has priority lower than reactor, but higher than remote
>> repos known to Maven.
> 
> WorkspaceReader functionality is or is not a thing that can be set in
> pom.xml files?

When POM is parsed, workspace reader is already loaded, so it would be
too late. So it needs to be loaded by an extension.

> Are there any examples in public that use WorkspaceReader in use to
> source a dep from outside of maven central (or the projects sibling
> modules)?

Eclipse M2E is one example. Another one is XMvn, which uses workspace
reader to resolve dependencies from system repository (not in Maven format):

https://github.com/fedora-java/xmvn/blob/master/xmvn-connector-aether/src/main/java/org/fedoraproject/xmvn/connector/aether/XMvnWorkspaceReader.java

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

-- 
Mikolaj Izdebski
Software Engineer, Red Hat
IRC: mizdebsk

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

Reply via email to