You essentially have two options:

1. Install the jar in your repo using "mvn install:install-file ...".
This is the suggested route to take.
2. Declare the dependency using <scope>system</scope> and provide the
path to the dependency in your project (ie /lib/my.jar). For various
reasons, this is not suggested.

Wayne

On 3/28/07, Eric Daigneault <[EMAIL PROTECTED]> wrote:
Hi,

I just started out with Maven, tho I am fairly famliar with ant and I
have been looking at Maven for a while now I never had time to really
get my hands dirty.

Anyhow the problem I have is as follows.

I have a project that uses a jar (for which I do not have source code,
just jar, docs and some other support files) that is not published in
any Maven repository.  In the good ol days of Ant I would have put the
whole thing either in a folder on server or better yet in SVN so I can
tag it along the rest of the resources for building the whole app.

Now with maven I am at a loss on how to get my application (a new one,
not ant scripts or anything, just maven) to link with this rebel jar.
All the dependencies rely on the jar to be present in a repository,
either local or remote.  Did I miss some plugin that would allow me to
deal with what would seem to be an exception to the normal Maven way.

Thanks,

Éric Daigneaut

---------------------------------------------------------------------
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