Can you post the dependency declaration from your maven project.xml
file?

Steve.



> -----Original Message-----
> From: Harvinder Singh [mailto:[EMAIL PROTECTED]
> Sent: 20 August 2004 21:19
> To: Avalon framework users
> Subject: RE: How to use external jars in Merlin components?
> 
> Stephen,
> 
> Thanks a lot for the info !!!
> Actually I had specified my dependent jar file in the project.xml and
the
> error occured
> while resolving build time dependencies itself.(hadn't reached
runtime)
> Another doubt which I have is that whether Maven also looks for the
files
> whose names are of the type
> <name>-<version>.<type>.
> My jar file did not follow the particular naming standard so I changed
it
> to
> the above standard, but still the error persists.
> And regarding the repository, I had specified the particular cache
folder
> where my jar file is kept (in the cache directive in kernel.xml)
> But still it does not seem to pick the file up.
> Any thoughts ?
> 
> Regards,
> Harvinder
> 
> -----Original Message-----
> From: Stephen McConnell [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 20, 2004 12:09 PM
> To: 'Avalon framework users'; [EMAIL PROTECTED]
> Subject: RE: How to use external jars in Merlin components?
> 
> 
> 
> Harvinder:
> 
> Both maven and merlin use a repository of jar resources.  In you case
> you have both build and runtime dependencies to take of.  Build time
> dependencies are declared in a project.xml and are managed by maven.
I'm
> guessing that you have that one sorted out.  Once maven has produced
the
> build artifact (a.k.a jar file) you need to include this in the
> repository used by the merlin runtime.
> 
> If you you execute the following command you will see a bunch of
> properties listed that provide information about your runtime
> environment:
> 
>  $ merlin -info
> 
> The listing should include the value of 'merlin.repository'.  This
value
> is the directory that corresponds to the root of the repository cache
> directory within which merlin is looking for resources at runtime.
> Merlin (and maven) look for resources based on the following pattern:
> 
>   [cache]/[group]/[type]s/[name]-[version].[type]
> 
> 
> If merlin does not locate the jar file in the repository it will look
> for the jar in the remote repositories associated with your
> configuration (see merlin.hosts value).  If the jar file cannot be
> located at any of the remote repositories you will get the error you
> have mentioned below.  If the resource is not available on a remote
> repository you either add it to your local cache, or, setup your own
> local repository (accessible using file or http protocol) and include
> this in the set of remote repositories declared under the
'merlin.hosts'
> property.
> 
> Cheers, Steve.
> 
> 
> > -----Original Message-----
> > From: Harvinder Singh [mailto:[EMAIL PROTECTED]
> > Sent: 20 August 2004 18:46
> > To: Avalon framework users
> > Subject: How to use external jars in Merlin components?
> >
> > All,
> >
> > I am able to build and run the tutorials in Merlin using Maven.
> > I even built a small component of my own and tested it.  It works
> fine.
> > But now when I try to include some external jar files(on my local
> machine)
> > for that component, the build fails.
> > After some googling I found out that I need to have an entry for the
> > external jar file in
> > the project.xml file used by Maven.
> > Also the path for that external jar file should be mentioned in
> kernel.xml
> > under repository directive.
> > I did all that but the build fails and gives the following error :
> >
> > Attempting to download <jar file name>.
> > WARNING: Failed to download <jar file name>.
> > The build cannot continue because of the following unsatisfied
> dependency:
> > <jar file name>
> >
> > Can some one please help me out on this issue ? Has someone faced
the
> > similar kind os issue?
> > Please revert back soon.
> >
> > Regards,
> > Harvinder
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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

Reply via email to