PEtALS

Since the compilation uses lots of memory, you must define specific system variables for maven.

On a Linux system :

MAVEN_OPTS=-Xmx512m

export MAVEN_OPTS

[Note]Note

You can define this variable in your .bashrc file.

In order to retrieve all the artifacts, you must add specific configuration to Maven. To do so, add a settings.xml file in your local Maven repository (~/.m2/ under Linux).

<settings>
  <profiles>
    <profile>
      <id>default-profile</id>
      <activation>
        <activeByDefault>TRUE</activeByDefault>
      </activation>
      <repositories>
        <repository>
          <id>objectweb-release</id>
          <name>Objectweb Repo</name>
          <url>http://maven.objectweb.org/maven2</url>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
          <releases>
            <enabled>true</enabled>
          </releases>
        </repository>
        <repository>
          <id>objectweb-snapshot</id>
          <name>Objectweb SNAPSHOT Repo</name>
          <url>http://maven.objectweb.org/maven2-snapshot</url>
          <snapshots>
            <enabled>true</enabled>
          </snapshots>
          <releases>
            <enabled>false</enabled>
          </releases>
        </repository>
      </repositories>

      <pluginRepositories>
        <pluginRepository>
          <id>objectweb-plugin</id>
          <name>Objectweb plugin Repo</name>
          <url>http://maven.objectweb.org/maven2</url>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
          <releases>
            <enabled>true</enabled>
          </releases>
        </pluginRepository>
      </pluginRepositories>
    </profile>
  </profiles>
</settings>

You can dowload the settings.xml file here.

Now that all is ready, you can compile the sources:

  1. Go into the sources directory

    cd petals

  2. Build the required dependencies first

    mvn -Denv=first

  3. Build petals

    mvn

    Note that you can skip all the unit tests like this (generation will be faster...)

    mvn -Dmaven.test.skip