Mainly straight from their site, with some tweaking for our projects.
https://docs.sonatype.org/display/FLEXMOJOS/Generator+Mojo
<dependency>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<type>maven-plugin</type>
<version>${flexmojos.version}</version>
<exclusions>
<exclusion>
<artifactId>granite-generator</artifactId>
<groupId>org.graniteds</groupId>
</exclusion>
</exclusions>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.graniteds</groupId>
<artifactId>granite-generator</artifactId>
<version>2.0.0.RC1</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.graniteds</groupId>
<artifactId>granite-essentials-swc</artifactId>
<version>2.1.0.RC2</version>
<type>swc</type>
<scope>compile</scope>
</dependency>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>%{flexmojos.version}</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
I'm excluding the generator from the flexmojos-maven-plugin because
some features were left out in generator 2.1.0, I think it had
something to do with if you wanted to use a translator or something.
Then added dependency for the correct version of the generator, then
the dependency of essentials-swc to fix the namespace meta errors that
I would get on some of the generated classes.
Let me know if I can help with more info.
On May 12, 3:51 am, Durairaj <[email protected]> wrote:
> Hi Ken,
>
> Could you please send me the configuration and dependencies that you
> used for generating
> as3 classes using graniteds?
>
> I am getting error on Failed to execute goal generate.. If you could
> help me on this by sending the pom, it would be great
> Thanks
>
> On May 11, 10:24 pm, Ken <[email protected]> wrote:
>
>
>
>
>
>
>
> > I managed to get a build by adding the imported classes jar file and
> > compiling as3 files for those as well. Then excluding them in the swc
> > packaging.
>
> > As a note, granite-swc-essentials is needed for namespace meta errors.
>
> > This feels like a workaround though...
>
> > On May 11, 1:24 pm, velo <[email protected]> wrote:
>
> > > Seems something is wrong on your code generation. But I'm no expert
> > > on granite GAS3
>
> > > On May 11, 2:25 pm, Ken <[email protected]> wrote:
>
> > > > Sorry for the ambiguity, I meant that I have compared both the compile
> > > > output of FB and FM, and have not found anything different.
>
> > > > On May 11, 12:18 pm, Marvin Froeder <[email protected]> wrote:
>
> > > > > On Wed, May 11, 2011 at 2:10 PM, Ken <[email protected]> wrote:
>
> > > > > > When I compile in FlexBuilder 4, there are no issues. I've traced
> > > > > > the
> > > > > > compile outputs of both and find no marked differences...
>
> > > > > Look at flexmojos faq.
--
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos
http://flexmojos.sonatype.org/