I am in no way an expert. In fact, I asked basically this same question
yesterday. (RE: "Dependencies and the local Repository" in the archive) I'm
going to try an answer and let folks correct me.
There are some ways to get around the dependency thing. For example, Henry
Isidro offered:
"Hi. I don't know if this will help but if you already have a copy of the
jar dependency that you need, you can override Maven trying to download
it from the central repository by setting the property
maven.jar.override to "on". Then you can set explicit paths of the
dependency by setting the property maven.jar.{artifactID} to the path of
the jar. You can place this in a project.properties file or a
build.properties file."
There were other great tips as well. My understanding, though, is that you
can also set up your own site remote repository (another idea offered by
Lester Ward) and let Maven download it from there. For one project, this is
probably of no benefit, but for one project neither is Maven (IMHO). The
real benefit is that all your Java efforts can access that resource from the
site repository and then there is a big benefit.
Just some thoughts,
Maury
> -----Original Message-----
> From: gabor [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 06, 2004 7:33 AM
> To: [EMAIL PROTECTED]
> Subject: easy way to 'add' my own jars?
>
> hi,
>
> for now, i have been using ant to build my java program.
>
> now i am trying to build it with maven.
>
> i simply have a directory, witha a 'src' and a 'lib' subdirectory.
> the source code is in 'src', the needed jar files are in 'lib'.
>
> i understand that maven likes to do it the other way, so that i specify
> the probablyopensource jars i want to use (xerces-4 or whatever), and he
> will fetch them for me, but in my case, most of the jars can't be found
> on the net (either in-house created jar libraries, or modified
> opensource jars and so on).
>
> i understand, that i could probably do the following:
> create a subdirectory in my homedir/.maven, like 'fake/jars', put all
> the jars here, and add a lot of these depencendy stuff into the project
> xml.
>
> but is this the only way???
>
> i mean, for every jar file i have to add
>
> <dependency>
> <groupId>xyz</groupId>
> <artifactId>klm</artifactId>
> <version>1</version>
> <url>http://www.qwerty.com</url>
> </dependency>
> ?
>
> or is it at least enough to say:
> <dependency><jar>mycustom.jar</jar></dependency>
>
> ?
>
> or what should i do?
>
> thanks,
> gabor
>
>
> ---------------------------------------------------------------------
> 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]