enter in your project.properties
maven.jar.artifactId=folder_with_the_archive/archive
You can choose the artifactId as you want. This artifactId must be used in
project.xml
If you really want to use this solution, it would be a good idea to have a
folder like ${basedir}/lib.
A better solution is to group it in your own way and put a versioned archive
into the maven repository hierachy. So there is no need to use this solution.
I think this can only be a temporary solution for porting ant-projects!!!
Mark
You have to have a pom file in the repository.
For example:
4.0.0
weblogic
weblogic
9.0
The best place to put it is the remote repository, but you can also put it in
your local repository.
Also, you should rename the weblogic.jar file to weblogic-9.0.jar, or it will
fail later on.
-Original Message-
From: Chris Wall [mailto:[EMAIL PROTECTED]
Sent: Friday, August 05, 2005 5:35 PM
To: users@maven.apache.org
Subject: Adding a local jar to a module's classpath?
Hey there.
Using Maven2, how do you add a local jar to a module's build classpath?
For instance, a module is dependent upon weblogic.jar. In the module's
pom.xml, I added the following:
weblogic
weblogic
9.0
provided
And I've added weblogic.jar to the following structure:
C:\Documents and
Settings\Chris\.m2\repository\weblogic\weblogic\9.0\weblogic.jar
Unfortunately m2 install produces the following:
Downloading:
a
href=http://repo1.maven.org/maven2/weblogic/weblogic/9.0/weblogic-9.0.pom;htt
p://repo1.maven.org/maven2/weblogic/weblogic/9.0/weblogic-9.0.pom/a
[WARNING] Unable to get resource from repository
a href=http://repo1.maven.org/maven2;http://repo1.maven.org/maven2/a
[INFO] BUILD FAILURE
Appreciate your help. Thanks.
-Chris
--
The information contained in this transmission is intended only for
the personal and confidential use of the designated recipients named
herein. If the reader of this transmission is not the intended
recipient or an agent responsible for delivering it to the intended
recipient, you are hereby notified that you have received this
transmission in error, and that any review, dissemination,
distribution, or copying of this transmission is strictly prohibited.
If you have received this communication in error, please notify the
sender and return and delete the original transmission immediately.
Thank you.
-
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]