Easier:
<dependency>
<groupId>jta</groupId>
<artifactId>jta</artifactId>
<jar>jta.jar</jar>
<type>jar</type>
</dependency>Just specify the name of the jar as being static and leave the version off.
On Feb 17, 2005, at 12:43 PM, Helck, Christopher wrote:
Spring is on ibilio at http://www.ibiblio.org/maven/springframework/jars/. Other ones you need may be there too.
I would recommend moving the JAR files that are not on ibiblio (or some
other repository) to a local repository. If you place them in src/lib
you'll have to check them into your source control system. I suppose its
really a matter of preference and expediency.
I'm guessing you have some JAR files that don't follow the naming
conventions. If you have "spring-core.jar" instead of
"spring-core-1.0.jar" then you have a problem. It is a common problem.
In my case I inherited JAR files who's very names don't correspond to
anything in ibiblio, e.g. "spring-stuff.jar". What I've done is created
a groupId called cruft and stored these jars under it in my local
repository. So I'd put the spring-stuff.jar underneath maven/cruft/jars.
In my project.xml I'd create the dependency like this:
<dependency> <groupId>cruft</groupId> <attributeId>spring</attributeId> <version>stuff</version> </dependency>
Then I'd try to upgrade the system to a versioned JAR from a trusted repository and change the <dependency> accordingly.
Obviously there are lots of variations. -c. helck
-----Original Message----- From: Randolph Kahle [mailto:[EMAIL PROTECTED] Sent: Thursday, February 17, 2005 12:06 PM To: Maven Users List Subject: Project configuration with 3rd party package dependencies
I am converting a project to Maven. This project has dependencies on many external libraries (JAR files).
Which is the preferred way to handle these:
* Create a /src/lib area for run-time dependencies
* Move the JAR files into the local repository
Examples of dependencies include Spring, aspectjrt.jar, imap.jar, etc.
I do not that some (most?) of these JAR files does not follow the naming convention that allows for automatic version management.
Regards,
Randy
-- Randolph S. Kahle, 6161 N Canon del Pajaro, Tucson, AZ 85750 Phone: +1 520 577 7680 [EMAIL PROTECTED] http://www.variantia.net Variantia
The information contained in this e-mail is confidential. This e-mail is intended only for the stated addressee. If you are not an addressee, you must not disclose, copy, circulate or in any other way use or rely on the information contained in this e-mail. if you have received this e-mail in error, please inform us immediately and delete it and all copies from your system.
EBS Dealing Resources International Limited. Registered address: 10 Paternoster Square, London EC4M 7DY, United Kingdom. Registered number 2669861.
EBS Dealing Resources, Inc, registered in Delaware. Address: 535 Madison Avenue, 24th Floor, New York, NY 10022, USA, and One upper Pond road, Building F - Floor 3, Parsippany, NJ 07054, USA.
EBS Dealing Resources Japan Limited, a Japanese Corporation. Address: Asteer Kayabacho Bldg, 6th Floor, 1-6-1, Shinkawa, Chuo-Ku, Tokyo 104-0033, Japan.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
