You should use dependencies. The resources are not meant for jars you want in the classpath. It's all in the user guide ...
-----Original Message----- From: Bahaa Nasrallah [mailto:[EMAIL PROTECTED] Sent: Friday, February 25, 2005 7:27 PM To: [email protected] Subject: compiling my project with resource files Hi, I am trying to migrate the build process for my project from Ant to Maven. The problem is that i dont know how exactly to migrate the compiling. in Ant i have: <!--Compile Java source files debug="on" --> <javac srcdir="${src}" destdir="${compile.outdir}"> <classpath> <pathelement path="${classpath}"/> <fileset dir="lib"> <include name="*.jar"/> <include name="nls_charset12.zip"/> </fileset> </classpath> </javac> where <property name="src" value="src"/> <property name="classpath" value="lib"/> <property name="compile.outdir" value="classes"/> In Maven in my project.xml i have: <build> <sourceDirectory>src</sourceDirectory> <resources> <resource> <directory>${basedir}</directory> <includes> <include>lib/*.jar</include> <include>lib/nls_charset12.zip</include> </includes> </resource> </resources> </build> in ${basedir} there is src directory and lib directory. when i run maven java:compile i get BUILD FAILD becouse of compilation errors (seems like doesn't recognize the files found in lib directory) I will be thankful if anoybody has a suggestion to solve this problem. Thanks in advance. --------------------------------------------------------------------- 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]
