MVN GAS generator - No classes to generate.

48 views
Skip to first unread message

Gavin Donald

unread,
May 17, 2015, 5:38:42 AM5/17/15
to gran...@googlegroups.com
I am converting a project from Ant to Maven and have everything working except the GAS3 generator. I have been using this guide:

http://www.granitedataservices.com/public/docs/3.1.0/docs/reference/flex/graniteds-refguide-flex.html#gas3.maven

Maven builds successfully but I do not get any classes outputted to target/flex-test. The includeJavaClasses exist in the target/classes directory.

The Maven output is:

--- flexmojos-maven-plugin:3.8:generate (default) @ core ---
Flexmojos 3.8
     Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT file
flexmojos 3.8 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
No classes to generate.


This is the relevant part of the POM:

<project>
    <pluginRepositories>
        <pluginRepository>
            <id>flex-mojos-repository</id>
            <url>http://repository.sonatype.org/content/groups/flexgroup</url>
        </pluginRepository>
    </pluginRepositories>
    <properties>
        <graniteds.version>3.0.3.GA</graniteds.version>
        <flexmojos.version>3.8</flexmojos.version>
    </properties>

    ...

    <build>
        <finalName>ROOT</finalName>
       
        ...

        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.sonatype.flexmojos</groupId>
                    <artifactId>flexmojos-maven-plugin</artifactId>
                    <version>${flexmojos.version}</version>
                </plugin>
            </plugins>
        </pluginManagement>
        <plugin>
                <groupId>org.sonatype.flexmojos</groupId>
                <artifactId>flexmojos-maven-plugin</artifactId>
                <extensions>true</extensions>
                <executions>
                    <execution>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                        <configuration>
                            <generatorToUse>graniteds21</generatorToUse>
                            <baseOutputDirectory>target/flex-test</baseOutputDirectory>
                            <outputDirectory>target/flex-test</outputDirectory>
                            <extraOptions>
                                <tide>true</tide>
                                <uid>uid</uid>
                                <entityFactory>org.granite.generator.as3.BVEntityFactory</entityFactory>
                                <outputEnumToBaseOutputDirectory>false</outputEnumToBaseOutputDirectory>
                            </extraOptions>
                            <includeJavaClasses>
                                <include>uk.co.prodia.talkingcouch.persistence.entity.**</include>
                                <include>uk.co.prodia.talkingcouch.service.**</include>
                                <include>uk.co.prodia.talkingcouch.persistence.entity.iface.**</include>
                                <include>uk.co.prodia.talkingcouch.service.impl.**</include>
                            </includeJavaClasses>
                        </configuration>
                    </execution>
                </executions>
                <dependencies>
                    <dependency>
                        <groupId>javax.persistence</groupId>
                        <artifactId>persistence-api</artifactId>
                        <version>1.0</version>
                    </dependency>
                    <dependency>
                        <groupId>javax.validation</groupId>
                        <artifactId>validation-api</artifactId>
                        <version>1.0.0.GA</version>
                    </dependency>
                    <dependency>
                        <groupId>com.adobe.flex</groupId>
                        <artifactId>compiler</artifactId>
                        <version>4.5.1.21328</version>
                        <type>pom</type>
                    </dependency>
                    <dependency>
                        <groupId>javax.jdo</groupId>
                        <artifactId>jdo2-api</artifactId>
                        <version>2.3-eb</version>
                    </dependency>
                    <dependency>
                        <groupId>org.codehaus.groovy</groupId>
                        <artifactId>groovy</artifactId>
                        <version>1.6.0</version>
                    </dependency>
                    <dependency>
                        <groupId>antlr</groupId>
                        <artifactId>antlr</artifactId>
                        <version>2.7.7</version>
                    </dependency>
                    <dependency>
                        <groupId>asm</groupId>
                        <artifactId>asm</artifactId>
                        <version>2.2.3</version>
                    </dependency>
                    <dependency>
                        <groupId>com.thoughtworks.xstream</groupId>
                        <artifactId>xstream</artifactId>
                        <version>1.2.2</version>
                    </dependency>
                    <dependency>
                        <groupId>org.graniteds</groupId>
                        <artifactId>granite-server-core</artifactId>
                        <version>${graniteds.version}</version>
                    </dependency>
                    <dependency>
                        <groupId>org.graniteds</groupId>
                        <artifactId>granite-generator-share</artifactId>
                        <version>${graniteds.version}</version>
                    </dependency>
                    <dependency>
                        <groupId>org.graniteds</groupId>
                        <artifactId>granite-generator</artifactId>
                        <version>${graniteds.version}</version>
                    </dependency>
                </dependencies>
            </plugin>
        </plugins>
    <build>
</project>

Gavin Donald

unread,
May 17, 2015, 6:38:08 AM5/17/15
to gran...@googlegroups.com
I have a custom jar that contains the package uk.co.prodia.talkingcouch.webservice and GAS3 will happily attempt to generate the AS classes for that. It therefore looks like it does not find my non-jarred classes (uk.co.prodia.talkingcouch.service) on the classpath and so cannot generate from them. They are in target/classes/ and then target/ROOT/WEB-INF/classes after the build. I tried to alter the execution.phase but it didn't help.
Reply all
Reply to author
Forward
0 new messages