Hi,
you should take a look at this page that explains on the maven repositrories:
http://maven.apache.org/using/repositories.html
Any way if you want to add log4j as a dependency of your project simply add those lines to your pom (project.xml):
<dependencies> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.8</version> <type>jar</type> </dependency> <!-- others dependencies go here --> </dependencies>
If you still need a local dependency take a look at this page : http://maven.apache.org/using/managing-dependencies.html
Hope it helps,
SaM
Muser007 wrote:
Hi,
A total newbie to Maven here. I am attempting to create a build environment for my project. I have tried customizing the project.xml as best as I can.
I am getting several compile errors that say: package org.apache.log4j does not exist import org.apache.log4j.LogManager and
package javax.mail does not exist import javax.mail.Message;
All the jar files are located in ${basedir}/lib. How do I get it to find the required jars?
This is how the dependency part of project.xml looks like:
<dependencies> <dependency> <jar> <includes> <include>lib/**/*.jar</include> </includes> </jar> </dependency> </dependencies>
Please help Thanks!
--------------------------------------------------------------------- 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]
