Alex:


There are two problems - (a) we need to add some code to resolve MERLIN_HOME relative to the runtime environment so that we can link to a Merlin system installation, and given that the embeddor was written in response to a test case requirement ina Maven context - well its not done yet - there is some code in the excalibur/event util package that does this sort of thing - and I figured an almost direct copy would resolve the problem - secondly, (b) the reason why jars are not being downloaded in the test case example is because I assumed that maven.repo.remote is not null - but it seems that it is null - which means that the url[] for the remote hosts is not being setup correctly (I just discovered this about 30 mins ago).

Bottom line - a common embeddor/controller whatever should locate the merlin system repository and boot from that - if it does not exist we should be creating it. This is needed in all of the embedded scenarios.

Steve.



[EMAIL PROTECTED] wrote:

Steve,

Why is the maven system repo in the $MAVEN_HOME/repository directory being used for the DefaultFileRepository in the DefaultEmbeddedKernel's createBootstrapRepository() static method? Namely here:

<snip/>
DefaultEmbeddedKernel:(417-430)
private Repository createBootstrapRepository() {
try
{
File repo = getSystemRepositoryDirectory();
ProxyContext proxy = createProxyContext();
URL[] hosts = createHostsSequence();
return new DefaultFileRepository( repo, proxy, hosts );
}
<snip/>


I would figure the ${user.home}/.maven/repository directory would be used instead. Am I totally off on this one? I'm asking this because I'm getting the following error in the StandardTestCase test run:

Cause: org.apache.avalon.merlin.unit.UnitRuntimeException
Message: Internal bootstrap error.  Unable to load item: avalon-framework:avalon
-framework-api;4.1.5

Cause: org.apache.avalon.repository.RepositoryException
Message: No resources of the type: 'jar' in the group: 'avalon-framework' with the name: 'avalon-framework-api' and version: '4.1.5.


File: 'C:\cygwin\opt\java\tools\maven-1.0-beta-10\repository\avalon-framework\jars\avalon-framework-api-4.1.5.jar'.

So it's trying to access the jar dependency in the maven system directory rather than hitting my user's temp repository here:

'C:\Documents and Settings\akarasulu\.maven\repository\avalon-framework\jars\avalon-framework-api-4.1.5.jar'

BTW I got the error by running the maven default goal within the merlin/kernel/unit directory using maven beta-10 as you can see above.

Thanks,
Alex


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





--


Stephen J. McConnell
mailto:[EMAIL PROTECTED]




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



Reply via email to