|
Project
|
IntelliJ IDEA
|
|
Priority
|
Major |
|
Type
|
Feature |
|
Fix versions
|
No Fix versions |
|
State
|
Fixed |
|
Assignee
|
Anton Makeev |
|
Subsystem
|
Flash/Flex |
|
Affected versions
|
No Affected versions |
|
Fixed in build
|
do you still need a sample project? I'm using Flex Mojos for building and Maven IDEA Plugin (http://maven.apache.org/plugins/maven-idea-plugin/) for creating IDEA's project files and it would be nice if IDEA recognizes modules as of type flex when packaging in pom.xml is of type swf or swc.
1) создается не модуль, а facet
2) в настройках проекта в maven -> Runner указывается Flex SDK, хотя должно быть JRE (Internal JRE или Use JAVA_HOME) - иначе запустить maven goal не удается из-за ошибки.
3) зависимости - библиотеки swc не добавляются в Project Settings -> Libraries (по нормальному, должны добавляться не только они, но и их исходный код если он есть (sources))
4) не должен требоваться flex sdk - эта информация должна быть из maven проекта, а исходники SDK для inspection также браться из sources.jar (пока что flex-mojos install не создает sources.jar, но, разумеется, это патчиться легко).
Когда вы планируете реализовать это? Устоялся ли формат проектного файла XML для flex модуля? Насколько я понимаю, интеграция с maven opensource и кто торопится может без проблем прислать патч, так (там ведь ничего сложного то и нет - только построение XML файла проекта, верно?).
I'll appreciate any feedback.
Thanks,
Anton Makeev
I create separate issue for it: IDEA-21618
I'm using the servebox toolkit with build 9757 and I'm seeing lots of weirdness. Idea doesn't recognized any swc deps in the pom, forgets the flex SDK/library if I setup the facet manually, and then includes jars in the Flex configuration xml file, causing errors in the compiler. (These jars aren't listed in the flex pom, they are inherited from the super pom.) Even when I try to configure manually it doesn't setup the dependencies and mx.* classes don't resolve.
If I switch to flex-mojos will this work? Can I configure it manually somehow?
Your new support for flex looks really cool, I can't wait to use it, but I can't seem to make it work now.
Thanks a bunch.
In advance forgive for my Russian;) Already all basic is made. IntelliJ IDEA at present the best solution — IDE+maven= IntelliJ IDEA + flexmojos ;) At least the private (not public) build — I use my own maven plugin build (Maia) and my own flexmojos build (flexmojos 3.1-SNAPSHOT).
It works, and works perfectly. Here is my workflow
1) we write POM
2) IntelliJ IDEA import POM (all libraries are recognized up, dependences between modules are installed) and is automatically configurated IDE Builder — see and vote for https://issues.sonatype.org/browse/FLEXMOJOS-41 (not in flexmojos trunk — vote for it, currently only in my own flexmojos build)
3) we set FDK for facets (Maia) — see http://www.jetbrains.net/jira/browse/IDEADEV-35405, or we set 'Path to Flex SDK' and 'Flex library name' (IntelliJ IDEA public EAP, Diana).
4) generate flex-config for IDE Builder
4.1) go to project root — cd project_root
4.2) full build (you can skip it) — mvn clean install -Dmaven.test.skip=true -U -cpu
4.3) generate config (goal _must be_ compile) — mvn compile
you set <configurationReport>true</configurationReport> in your POMs
or add and activate profile (mvn compile -PIDEBuilder)
5) Build -> Make Project. Enjoy.
My project has 15 modules. flexmojos builder: 1 m 49 s. IDE Builder (second make): 3 s ;)
you can grab patch https://issues.sonatype.org/browse/FLEXMOJOS-41 and build your own flexmojos
or you can use my repository: http://astra.thewebproduction.com:8081/artifactory/repo/ (please, only for test, it is private repository :)) Warning: in my version of flexmojos also fix quick mode and listAllResources.