Maven Integration

Repository

The Flex Annotation artifacts are not yet synched with the Maven master repositories. For now, please add our primary maven repository available at http://maven.aixcept.net/repository.

    <repositories>
        <repository>
            <id>aixcept</id>
            <url>http://maven.aixcept.net/repository</url>
        </repository>
    </repositories>

Dependency

Add a dependency on the Flex Annotations project.

    <dependencies>
        <dependency>
            <groupId>de.aixcept</groupId>
            <artifactId>flex-annotations</artifactId>
            <version>1.1.0</version>
        </dependency>
    </dependencies>

Build Configuration

Within the build section of your pom.xml add the following configuration. Please adjust the source and target configuration for the maven-compiler-plugin as well.

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.5</source>
                    <target>1.5</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.myfaces.tobago</groupId>
                <artifactId>maven-apt-plugin</artifactId>
                <configuration>
                    <generated>src/main/flex</generated>
                    <A>
                        outputDir=${basedir}/src/main/flex, debug, loglevel=3
                    </A>
                    <resourceTargetPath>target</resourceTargetPath>
                    <fork>false</fork>
                    <force>true</force>
                    <nocompile>true</nocompile>
                    <showWarnings>true</showWarnings>
                    <factory>de.aixcept.flex2.annotations.apt.ActionScriptAnnotationProcessorFactory</factory>
                    <target>1.5</target>
                    <includes>
                        <include>**/*.java</include>
                    </includes>
                </configuration>
                <executions>
                    <execution>
                        <phase>compile</phase>
                        <goals>
                            <goal>execute</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>