Hi Jayaram,

when maven looks for the jar in the ibiblio central repository it means it
did not find it in you local repository.
So I think you just didn't put it in the right folder.
My Example:
   <dependency>
      <groupId>servletapi</groupId>
      <artifactId>servlet-api</artifactId>
      <version>2.4</version>
   </dependency>

It looks under this location:
{user.home}\.maven\repository\servletapi\jars\servletapi-2.4.jar

be careful with the directories you need the struture
.maven\repository\<groupId>\jars
Also when you have the version this is included automatically in the
filename.
When you want to select you own filename you have to use
<jar>myjar.jar</version> 

When you still have problems send your <dependency> entry + the exact
location of your file.

Good luck.

Bernhard

-----Urspr�ngliche Nachricht-----
Von: GOKULAM Jayaram [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 18. M�rz 2005 11:26
An: Maven Users List
Betreff: RE: how to add classpath in MAVEN


Thanks Bernhard,
 I placed the jar files as per your suggestion.I then added the dependency
in the Project.xml file. Now I executed maven, which attempts to download
the dependent file and build fails, as it is looking to download from the
ibiblio central repository.
Can u help me solving this please.
Thanks in advance,
Jayaram

-----Original Message-----
From: Bernhard Slominski [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 18, 2005 3:42 PM
To: 'Maven Users List'
Subject: AW: how to add classpath in MAVEN

Hi Jayaram,

I has a similar question yesterday,
Hamza posted the following answer, which solved my problem:

when you are asking maven to load the dependencies locally, you have
to place the jars in the {user.home}\.maven\repository\ location ...
under the appropriate subfolder
 
for eg:
{user.home}\.maven\repository\servletapi\jar\servletapi-2.4-20040521.jar

store all your dependencies this way in the repository folder.

cheers !

-----Urspr�ngliche Nachricht-----
Von: GOKULAM Jayaram [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 18. M�rz 2005 10:46
An: Maven Users List
Betreff: how to add classpath in MAVEN


Hi I want to add j2ee.jar file in the classpath of MAVEN , so that it
picks up my ejb files and compile.

Also I may want to add other library files to the classpath. Can anybody
help me in this regard please?

 

 

Thanks in advance

Jayaram

Confidentiality Statement:

This message is intended only for the individual or entity to which it is
addressed. It may contain privileged, confidential information which is
exempt from disclosure under applicable laws. If you are not the intended
recipient, please note that you are strictly prohibited from disseminating
or distributing this information (other than to the intended recipient) or
copying this information. If you have received this communication in error,
please notify us immediately by return email.


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

Confidentiality Statement:

This message is intended only for the individual or entity to which it is
addressed. It may contain privileged, confidential information which is
exempt from disclosure under applicable laws. If you are not the intended
recipient, please note that you are strictly prohibited from disseminating
or distributing this information (other than to the intended recipient) or
copying this information. If you have received this communication in error,
please notify us immediately by return email.


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