Link to home
Start Free TrialLog in
Avatar of meow00
meow00

asked on

How to remove/add jar files in an Eclipse Maven project?

Hi experts,

I am using window XP, eclipse 3.3, java 1.5. How to remove/add jar files in an Eclipse Maven project?
(I am not where to change in the build path, please help.)

Thanks a lot!
Avatar of Mick Barry
Mick Barry
Flag of Australia image

right click on jar in Referenced Libraries
Select Buiuld path..>  Remove from Build Path'
Avatar of meow00
meow00

ASKER

What if the jar is under maven dependency, not the reference library? What do I do in this case? Thanks!
remove the dependency
Avatar of meow00

ASKER

It seems that I need to use some DOS command to add jar under maven dependency ... I can not add it to Maven from eclipse directly ... Does anyone know how to do that through command line? Thanks!
are you using the maven plugin?
If not you'll need to remove the dependency from your pom.xm, but that shouldn't really be affecting eclipse.

Avatar of meow00

ASKER

Actually I am using maven plugin ... is that a problem ? thanks!
no thts fine, you shpould be able to remove the depency using it then

Avatar of meow00

ASKER

Thanks ... so what exactly do I have to do in order to remove a jar file from the Maven dependency and then add another jar file to the Maven dependency? Thanks!
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial