Hi all, I am new in using maven and try to do a simple java compile of
an existing project.
 
The old ant build include classpath with the following code : 
------------------------------------------------------------------------
-----------------------------------------
    <javac destdir="${build}" verbose="false" deprecation="true"
debug="on">
        <src path="${src}" />
        <classpath>
            <pathelement path="${j2ee.lib};${dependencies}" />
            <fileset dir="../libs">
                <include name="*.jar" />
            </fileset>
        </classpath>
    </javac>
------------------------------------------------------------------------
-----------------------------------------
 
I create the folowing maven project : 
------------------------------------------------------------------------
-----------------------------------------
<?xml version="1.0"?>
 
<project>
    <pomVersion>3</pomVersion>
    <id>common</id>
 
    <build>    
        <sourceDirectory>src</sourceDirectory>
    </build>
    
    <dependencies>
        <dependency>
            <groupId>Prima Solutions</groupId>
            <artifactId>libs</artifactId>
            <jar>foo1.jar</jar>
            <jar>foo2.jar</jar>
            ...
            <jar>fooN.jar</jar>
            <url>../libs/</url>
        </dependency>
    </dependencies>
</project>
------------------------------------------------------------------------
-----------------------------------------
 
But i can't put a wild cards in the jar tag like <jar>*.jar</jar> to
avoid to list all the jars !
 
How can i do that.
 
Thanks for your respnses and sorry for my poor english !
 
Stephane

Reply via email to