Re: How to pass additional compiler arguments in flexmojos-maven-plugin 3.8?

2018-04-30 Thread Vaibhav Shah
The flexmojos-maven-plugin provides option to define the services via the configuration node as follows: org.sonatype.flexmojos flexmojos-maven-plugin 3.8 true Abc.mxml

How to pass additional compiler arguments in flexmojos-maven-plugin 3.8?

2018-04-05 Thread Vaibhav Shah
Hello Fellow Coders, I am having a maven-flex project, which compiles successfully with flexmojos-maven-plugin 3.8. (I can't use any latest versions, long story.) When I build the flex project with the Flex Builder, I can use the 'Project Properties > Flex Compiler > Additional Compiler Arguments

Re: Configure multiple source mxml files to generate multiple swf files

2018-02-12 Thread Vaibhav Shah
Hello Christofer,Thanks for your response.Yes, I am using IntelliJ, how you guessed it? :) Default bundled maven is 3.3.9 in it.The reason why I am using older version 3.8 of flexmojos is because there are few issues noticed while I was using the version 7.1.0. I tried addressing most of them, but

Re: Configure multiple source mxml files to generate multiple swf files

2018-02-09 Thread Vaibhav Shah
One more observation and its solution: Default behaviour: the flexmojos-maven-plugin tries to generate the flex compiler configuration file via the plugin goal generate-config-swf whenever the pom.xml changes. Problematic scenario: if your pom.xml has only the plugin declarations with 'executions

Re: Configure multiple source mxml files to generate multiple swf files

2018-02-08 Thread Vaibhav Shah
Hello Christopher, Thanks a lot for response and the valuable information about 'default-compile-swf' ID. I have tried the same, and it works like a charm! As long as any one of the executions have the ID as 'default-compile-swf', all the executions are processed correctly (without the dummy plug

Re: Configure multiple source mxml files to generate multiple swf files

2018-02-08 Thread Vaibhav Shah
Hello Christopher, I have found a solution, rather a hack, to the problem mentioned in last post. Solution: you need to specify the flexmojos-maven-plugin twice in the pom.xml. In first instance, you specify any of the main application mxml as sourceFile. In the second instance, you specify all t

Re: Configure multiple source mxml files to generate multiple swf files

2018-02-08 Thread Vaibhav Shah
Hello Christopher, I realized that I need to use the in order to specify multiple executions of the same plugin. So I have updated the flexmojos-maven-plugin this way now, where each execution should compile a different sourceFile (so I can compile 3 sourceFiles with 3 executions):

Re: Configure multiple source mxml files to generate multiple swf files

2018-02-08 Thread Vaibhav Shah
Hello Christopher, Thanks for prompt and detailed response. Actually I am given some existing legacy Flex project to migrate it to Maven. So I have just completed that migration using the pom.xml mentioned in my original post. However, I see in the code that there are total 3 mxml files under 'sr

Configure multiple source mxml files to generate multiple swf files

2018-02-07 Thread Vaibhav Shah
Hello, *Currently working code:* I am able to build a flex project using flexmojos-maven-plugin successfully. However, I can only provide one 'sourceFile' under my plugin configuration. Refer below my working pom.xml, which builds Main.mxml file correctly from 'src' directory. It generates the 's