Hi Stephen

>> ... When running "maven -execute target\*.jar -repository 
>> %MAVEN_HOME%/repository" 

> Just a note - I'm assuming you meant to say "merlin" not "maven".  To 
> make things easier you can simply use "merlinx" instead of "merlin" 
> which will automatically switch to the maven repo.

Absolutely! It' just a typo in the mailing. I'll try merlinx.

>> * @avalon.dependency key="resource-manager" 
>>                      type="ch.xmatrix.resource.ResourceManager"

> And presumably your implementation is doing something like:
>    ResourceManager myManager =
>      (ResourceManager) manager.lookup( "resource-manager" );

Right. 

> This is the only usage of the key declared in the @avalon.dependency 
> key="resource-manager" declaration - its just saying to the container 
> that when the component does a lookup its going to use the key 
> "resource-manager".
> Actual service resolution has nothing to do with names - instead its 
> about resolving explicit, implicit and composite solutions in order to 
> locate and provide the solution to the lookup request.

I love magic that does the work for me! But I need to understand then: Where
do I indicate/configure the implementation to use for the service?

>> Exception:
>> org.apache.avalon.activation.appliance.NoProviderDefinitionException
>> Message: Unable to resolve dependency: [resource-manager]
>> ch.xmatrix.resource.ResourceManager:1.0.0

>This exception is occurring because Merlin cannot find a component that 
>exports the ch.xmatrix.resource.ResourceManager:1.0.0 service.  Does 
>your component that provides this service actually publish it using the 
>@avalon.service type="ch.xmatrix.resource.ResourceManager:1.0.0" tag?

Close. I added a javadoc tag in the HierarchialResourceManagerFacade that
implements the ResourceManager interface:

* @avalon.service type="ch.xmatrix.resource.ResourceManager"

I found also the javadoc tag documentation. The service tag accepts an
attribute "version" which defaults to "1.0". If the ":1.0.0" in the
exception indicates the version, then I assume merlin should find it. If it
is part of the type, I wonder, where it comes from.

Daniel

------------------------------------
xmatrix
Daniel Frey
http://www.xmatrix.ch
------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to