Maven compilation

  1. Generality

    To do a compilation with maven we use a bridge with ant (That's why we need to install ant for the compilation with maven)

    As for an ant compilation, the build.xml file need the property SqualeClassesDir and the path SqualeClasspath. The build target should launch the compilation with maven.

    Example :

            <property name="SqualeClassesDir" location="${basedir}/../target/classes"/>
      
            <path id="SqualeClasspath"></path>
            
            <target name="build-all">
                    <exec executable="mvn" dir="..." failonerror="true">
                            <arg value="install"/>
                    </exec>
            </target>
    

    For more information on the build file for ant, please refer to the ant documentation

  2. Configure the java compilation

    You should :

    1. Click on Compile with ant.
    2. Set in the file path field the relative path where to found the 'build.xml' file.

      Example :

       
      This is the tree of the source : 
       
      MyAppliTest
         `--testProject
              |--src
              |   `-- ...
              |-- ...
              `--build_with_maven.xml
       
       
      So the path to set will be : MyAppliTest/testProject/build_with_maven.xml
       
    3. Set the target to launch, if you want launch another target than the default one.
    4. Click on : Add the configuration settings.
    5. If needed add other(s) compilation settings.
    6. Choose the java version.
    7. If needed add some exclusion(s).
    8. Click on : Confirm.

    The java compilation is configured.


Other java compilation :

Go to the project tool configuration page