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 Christofer Dutz
Hi Vaibhav, every plugin that is executed during the build is performed in an "execution" and every execution has an "id". If a plugin is added via "packaging" or binds to default phases, this execution is defined by the plugin developer. So YES the Id is defined by the flexmojos developer,

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

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

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

2018-02-08 Thread Maxim Solodovnik
I was able to implement this by creating multiple blocks like [compile, rename] mapped to the different Maven phases On Thu, Feb 8, 2018 at 8:42 PM, Christofer Dutz wrote: > Hi Vaibhav, > > your first compilation (the one you are defining in the first plugin >

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

2018-02-08 Thread Christofer Dutz
Hi Vaibhav, your first compilation (the one you are defining in the first plugin definition) also has an implicit execution id. You should be able to see it in the console when the first compilation is done. So you should be able to use just one plugin definition with 4 executions as long as

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

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

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

2018-02-07 Thread Christofer Dutz
Hi Vaibhav, If you are building an swf there can only be one source mxml as this is what's used when you execute the application. In SWF you have a single source file and the flex compiler adds all mxml and as classes that are directly and indirectly referenced from that. You could add an