Flex Run configuration for Idea 11.1 with using maven

Hi everyone,
I have flex-application which uses maven for building.
In previous version (11.0 and older) it was possible just create Flex-RUN configuration. Now i do not see this.
I know that in new version it's needed create separate build configuration and then create run configuration with using created build configuration.
But how i can do it for my flex-maven-module?
Regards,
Artem Kravchenko

8 comments
Comment actions Permalink

Run configuration is now called 'Flash App'. Do you have any problems launching it?

0
Comment actions Permalink

Yes, there is needed to select build configuration. But i'm using maven for building. In project settings->Module list i can't create Flex/Flash facet for my flex-maven-module.

0
Comment actions Permalink

Do you use flexmojos maven plugin? Flash build configurations are created when you import your maven project in IntelliJ IDEA (if pom has 'swf' or 'swc' packaging). Don't you use IDEA maven integration?

0
Comment actions Permalink

I do not use flex-mojo for building. I'm call ant-task from maven which uses flex-compiler from flex sdk. I know that it's maybe not the best way but it's how it works in this project (it's old legacy code).

0
Comment actions Permalink

Then it's not a flex maven project. So you can configure it manually as all non-maven projects are configured: create Flash module with build configuration. Probably you should set ignored state to the corresponding pom (at Maven tool window) to make sure that it doesn't transform Flash module to Java module on reimport.

0
Comment actions Permalink

Sounds like it would be work, but it's not cool...Previously it was possible import this module as a maven project, then create flex-run configuration and just chose swf or HTML wrapper for running without any building. It was good, because previously i could use maven to create project structure fast(i could just import parent pom of multy-modules maven project with selected 'search for project recursively'), and after that create needed run-configurations.
Now what i understand from you response to do the same i should import multy-module maven project, remove each flex module and then for each flex-module create new Flash module. It's just to be able run and debug it.  I think it's not a good step to better usability.
Thx you for fast answer, and sorry if i wrote something unclear.

0
Comment actions Permalink

Truly speaking we haven't heard about such use case before and haven't took it into consideration when were designing new Flash project setup. For old legacy projects you can use old IntelliJ IDEA version if you got used to it. But if you need to maintain these projects it's not a big deal to configure them once.

0
Comment actions Permalink

Thx you for your help.

0

Please sign in to leave a comment.