Skip to content
Adrian Papari edited this page Jan 6, 2019 · 26 revisions

Basics

Optimization is automatically applied when running with the maven plugin.

<properties>
    <artemis.version>2.2.0</artemis.version>
</properties>

<plugin>
    <groupId>net.onedaybeard.artemis</groupId>
    <artifactId>artemis-odb-maven-plugin</artifactId>
    <version>${artemis.version}</version>
    <executions>
        <execution>
            <goals>
                <goal>artemis</goal>
            </goals>
            <configuration>
                <!-- configuration section can be omitted,  -->
                <!-- optimizeEntitySystems defaults to true -->
                <optimizeEntitySystems>true</optimizeEntitySystems>
            </configuration>
        </execution>
    </executions>
</plugin>

Advanced

Example profile to enable/disable optimizations for debugging.

<properties>
    <artemis.version>2.2.0</artemis.version>
    <artemis.optimizeSystems>false</artemis.optimizeSystems>
    <artemis.enableArtemisPlugin>false</artemis.enableArtemisPlugin>
</properties>

<profiles>
<profile>
    <id>fast</id>
    <properties>
        <artemis.optimizeSystems>true</artemis.optimizeSystems>
        <artemis.enableArtemisPlugin>true</artemis.enableArtemisPlugin>
    </properties>
</profile>
</profiles>

<build>
<plugins>
    <plugin>
        <groupId>net.onedaybeard.artemis</groupId>
        <artifactId>artemis-odb-maven-plugin</artifactId>
        <version>${artemis.version}</version>
        <executions>
            <execution>
                <goals>
                    <goal>artemis</goal>
                </goals>
                <configuration>
                    <optimizeEntitySystems>${artemis.optimizeSystems}</optimizeEntitySystems>
                    <enableArtemisPlugin>${artemis.enableArtemisPlugin}</enableArtemisPlugin>
                </configuration>
            </execution>
        </executions>
    </plugin>
</plugins>
</build>
Clone this wiki locally