Wiki

Clone wiki

Cubeia Styx / Styx and Maven

Styx and Maven

Example Maven Styx dependency

        <dependency>
            <groupId>com.cubeia</groupId>
            <artifactId>styx-core</artifactId>
            <version>1.12</version>
        </dependency>

Example Maven Styx Plugin

            <plugin>
                <groupId>com.cubeia</groupId>
                <artifactId>protocol-generator-plugin</artifactId>
                <version>1.12</version>
                <configuration>
                    <protocol_file>src/main/xml/protocol.xml</protocol_file>
                    <language>all</language>
                    <package_name>com.cubeia.games.poker.io.protocol</package_name>
                    <generate_visitors>true</generate_visitors>
                    <fail_on_bad_packet_order>false</fail_on_bad_packet_order>
                </configuration>
                <executions>
                    <execution>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

Executing

Withe example plugin above Styx will generate sources when you execute mvn package for instance.

Updated