Did you take a look at http://maven.apache.org/start/ten-minute-test.html and
http://maven.apache.org/using/managing-dependencies.html
You must use either the real mechanism of dependencies :
<dependencies>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.8</version>
</dependency>
</dependencies>
or use overriding stated dependencies
Arnaud
> -----Message d'origine-----
> De : Muser007 [mailto:[EMAIL PROTECTED]
> Envoy� : lundi 2 mai 2005 20:33
> � : [email protected]
> Objet : package org.apache.log4j does not exist
>
> 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]