In POM.xml, how do I set up dependancies for the already exisitng libraries (.jar) withoout 'maven's dependancy structure' ?
For example I am using Jdom. jar and I have this jar file in my local repostitory, but maven looks for it in its m2/repository location with groupId and artifactId structure (Which I am unaware of). Simply pointing to the jar doesnt work. Hope I explained it right.
Short answer is you shouldn't. Maven expects your dependencies to be in your local repository. Is there a reason why your dependency can't go into the repository? It should automatically download it from central...
Thanks guys for the reply.
I did install it using maven's file-install command and its working now.
I have one more problem though (apologies for stretching it but trust me I am asking questions after searching the answers by myself), How do I compile jsps through maven? (I tried compile option in build and plugins. didnt work)
Moreover, I get this strange message 'sun.net.smtp.SmtpClient is Sun proprietary API and may be removed in a future release' for one of the java class.
Help will be much appreciated.
My understanding is that there is a Maven2 JSPC plugin you can use to precompile JSPs. As for the warning, it's basically saying that you are directly (or perhaps indirectly) using a class within the JDK that is likely to be ripped out entirely in a future version. I would try to find an alternative if possible.
Thanks folks again for the help. Apreciated. Thanks Edwin for examples.
I have got it working. Have explored a lot (Maven) these couple of weeks and learnt much and will try to share amongst ranchers if required.
Thanks again. No place like ranch to get help.
A tool that's lost its purpose makes a great toy.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop