In your local maven repository create a directory, call it example for this example. That's $MAVEN_HOME/repository/example
create a subdirectory called jars, just like all the other directories and stash example.jar in it
$MAVEN_HOME/repository/example/jars/example.jar
In your project.xml:
<dependencies>
...
<dependency>
<groupId>example</groupId>
<artifactId>example</artifactId>
<jar>example.jar</jar>
</dependency>
....
</dependencies>


Maven will grab it from that.  If you use versions, say example-1.0.jar, use
<version>1.0</version>
instead of
<jar>example.jar</jar>


If you have a project called example which produces example.jar, in your maven.xml


 <goal name="install" prereqs="prepare">
   <attainGoal name="jar:install"/>
 </goal>



Gregory Joseph wrote:

If you want to give it one more try, maybe we can help and eventually that
would also help improve the docs?

g

-----Original Message-----
From: Dave Raymer [mailto:[EMAIL PROTECTED]
Sent: lundi 23 fÃvrier 2004 23:22
To: Maven Users List
Subject: RE: external jar files ...


Greg,


I went through this and could not get it working ... I seem to have a mindset
different than the folks that wrote the online manual   I see your other
response, and tried it, that works ...

thanks muchly

-- dave

On Mon, 2004-02-23 at 11:16, Gregory Joseph wrote: Hi,

This might help:
http://maven.apache.org/reference/user-guide.html#Overriding_Stated_Dependenc
ies

greg

-----Original Message-----
From: Dave Raymer [mailto:[EMAIL PROTECTED]
Sent: lundi 23 fÃvrier 2004 18:55
To: [EMAIL PROTECTED]
Subject: external jar files ...



Gentlebeings,

This is probably a very easy thing to do, but I can't figure it out for
the life of me ...

I have an external jar file, call it external.jar, that I need to be
used during compilation of all my java entities in a maven build.  What
is the correct way to do this, vis a vis, the project.xml file.

your help, and patience with a stupid question, is greatly appreciated.

br,
   dave

A man's greatest treasure is his wife, she is a gift from the Lord
- Proverbs 18:22



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
A man's greatest treasure is his wife, she is a gift from the Lord- Proverbs
18:22



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



Reply via email to