-
Notifications
You must be signed in to change notification settings - Fork 110
Weaving Maven
Adrian Papari edited this page Jan 6, 2019
·
26 revisions
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>
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>
- Overview
- Concepts
- Getting Started
- Using
- More guides
- Plugins
- Game Gallery
- Tools and Frameworks
- API reference