maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bahaa Nasrallah <bahaa.nasral...@gmail.com>
Subject compiling my project with resource files
Date Fri, 25 Feb 2005 17:27:06 GMT
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message