On Wednesday 28 June 2006 15:41, Tomasz Pik wrote:
> On 6/28/06, Graham Leggett <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> > I am trying to use maven2 to build an existing ant based project, and am
> > trying to get the dependancies right.
> >
> > Some of the jars we need are not published on ibilio, and so we have
> > installed them locally using mvn install:install-file.
> >
> > The trouble is, our build still fails like so:
> >
> > 6/28/06 3:21:49 PM SAST: Reading /alchemy-trader/pom.xml
> > 6/28/06 3:23:04 PM SAST: Unable to get dependency information: Unable to
> > read the metadata file for artifact 'eclipse:eclipse-swt:jar': Error
> > getting POM for 'eclipse:eclipse-swt' from the repository: Error
> > transferring file
> >   eclipse:eclipse-swt:pom:3.1.0
> >
> > from the specified remote repositories:
> >   central (http://repo1.maven.org/maven2)
> >  eclipse:eclipse-swt-3.1.0.jar
> >
> > Why is maven2 trying to read the metadata file, when the jar file is
> > already present?
>
> To find out, if there are also dependencies, that needs to be downloaded
> and so on.
>
> > Is there some way to tell maven2 "this is a local file in the local
> > repository, do not try and download this file remotely"?
>
> Install them in local repository with generic POM, see
> http://maven.apache.org/guides/mini/guide-3rd-party-jars-remote.html

If you do not need this dependency to be transient, you could use the 
<system>-scope and set the
<systemPath> to point to the JAR.

>
> Regards,
> Tomek
>
> ---------------------------------------------------------------------
> 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