Ok, thinking about this further, I have a couple of ideas ...

Have an abstract class AbstractMavenRepository with two specializations,

1. WarMavenRepository
2. StandaloneMavenRepository

Both will get injected an instance of RuntimeInfo that is specific to the runtime environment in which the repository is used. We could have WarRuntimeInfo that will give reference to artifacts like servlet context and StandaloneRuntimeInfo that will provide info on install dir etc. The host enviornment will inject the appropriate runtime info object to the repo.

Ta
Meeraj


From: "Meeraj Kunnumpurath" <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: <[email protected]>
Subject: Update on dependency work
Date: Tue, 19 Sep 2006 08:53:31 +0100

Jeremy,

I have checked in the first cut for the ArtifactRepository
implementation. It currently supports transitive dependency resolution
from the local maven repo and a set of configured remote repos. There is
a simple test case (which I will extend tonight).

Outstanding stuff,

1. Define the maven.scdl to enable artifact repository injection.
2. Support WEB-INF/tuscany/repository for webapp host.
3. Support installDir/repository for standalone hosts.

I have a couple of questions though,

1. For 2 above we need a reference to ServletContext and 3 we need
RuntimeInfo. However, neither is part of the artifact repository
abstraction (and it shouldn't be). I will have specializations for
webapp and standalone hosts. However, is there any way to inject the
info into the specializations (servlet context for
WarMavenArtifactRepository and runtime info for
StandloneMavenArtifactRepository)?

2. For both 2 and 3 above, I am assuming if the specified locations are
available (means the user decided to resolve the dependencies
transitively at build time), I won't resort to looking into the local
Maven repo. Is that ok?

Ta
Meeraj


*****************************************************

    You can find us at www.voca.com

*****************************************************
This communication is confidential and intended for
the exclusive use of the addressee only. You should
not disclose its contents to any other person.
If you are not the intended recipient please notify
the sender named above immediately.

Registered in England, No 1023742,
Registered Office: Voca Limited
Drake House, Three Rivers Court,
Homestead Road, Rickmansworth,
Hertfordshire, WD3 1FX


This message has been checked for all email viruses by MessageLabs.

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


_________________________________________________________________
The new Windows Live Toolbar helps you guard against viruses http://toolbar.live.com/?mkt=en-gb


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

Reply via email to