You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Arrowx7 <al...@yahoo.com> on 2007/08/26 16:23:41 UTC

Newbie question: including a jar in maven

Hello, I'm new to maven
I wanted to include the hibernate jar so I can import classes like:
import org.springframework.orm.hibernate3.HibernateCallback;

I know I have to add something to the pom.xml files, but I'm not sure what. 
Is it the hibernate plugin for maven?
Can someone point me in the right direction?
-- 
View this message in context: http://www.nabble.com/Newbie-question%3A-including-a-jar-in-maven-tf4331215s177.html#a12335154
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Newbie question: including a jar in maven

Posted by Dennis Lundberg <de...@apache.org>.
Arrowx7 wrote:
> Hello, I'm new to maven
> I wanted to include the hibernate jar so I can import classes like:
> import org.springframework.orm.hibernate3.HibernateCallback;
> 
> I know I have to add something to the pom.xml files, but I'm not sure what. 
> Is it the hibernate plugin for maven?
> Can someone point me in the right direction?

You need to add a dependency on hibernate in your pom.xml.

More info available here:
 
http://maven.apache.org/guides/getting-started/index.html#How_do_I_use_external_dependencies

-- 
Dennis Lundberg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org