Priority
Major
Type
Feature 
State
Fixed 
Assignee
Anton Makeev 
Subsystem
Flex Support 
Affected versions
Fixed in
Fixed in build
Next build 
Build
8445
Fixed in build
10201
Subsystems
0, 0
Severity
0
  • Submitted by   David Avenante
    19 months ago (12 Jun 2008 19:13)
  • Updated by   root
    3 weeks ago (17 Jan 2010 20:01)
  • Jira: IDEA-44303
    (history, comments)

IDEA-44303

Support for maven flex integration

11
Added by <no user>
15 Sep 2009
screenshot-1.jpg   (398 KB)

Hi, this maven flex plug (http://code.google.com/p/flex-mojos) work fine for me with idea 7 but fail with idea 8.

I like this plug in cause it's not necessary to have flex SDK installed: all is done with dependency (compilation also).

So I would see this plugin work well in IDEA 8 as i can use it in IDEA 7.

Thanks







Issue was resolved
Comments (12)
 
History (1)
 
Links
 
Anton Makeev
  Anton Makeev
16 Jun 2008 17:12
(19 months ago)
#permalink
How does it fail?
Anton Makeev
  Anton Makeev
25 Jun 2008 14:38
(19 months ago)
#permalink
Could you please provide a sample project so I could reproduce the problem?
Oliver Lietz
  Oliver Lietz
15 Oct 2008 13:03
(15 months ago)
#permalink
Anton,

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.
Vladimir Krivosheev
  Vladimir Krivosheev
04 Nov 2008 17:10
(15 months ago)
#permalink
В настоящий момент есть несколько проблем:
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 файла проекта, верно?).
Anton Makeev
  Anton Makeev
10 Dec 2008 22:15
(13 months ago)
#permalink
Basic flex-mojos support will be available in the next eap:

  • It will create a facet, not a module. Let me know If there is any problem with it.
  • swc and resource-bundle dependencies will be supported.
  • automatic flex path setup will be implemented later.

I'll appreciate any feedback.

Thanks,
Anton Makeev
Vladimir Krivosheev
  Vladimir Krivosheev
30 Dec 2008 12:51
(13 months ago)
#permalink
see flyml (svn://flyti.org/flyml/trunk) rev 103. Почему IDEA не отображает Document в редакторе красным, - как ошибку, если проект не содержит нужной зависимости?
Vladimir Krivosheev
  Vladimir Krivosheev
25 Jan 2009 03:21
(12 months ago)
#permalink
automatic flex path setup will be implemented later.

I create separate issue for it: IDEA-21618
Christopher Mason
  Christopher Mason
19 Mar 2009 08:46
(10 months ago)
#permalink
Has there been any action on this?

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.

  • c
Vladimir Krivosheev
  Vladimir Krivosheev
19 Mar 2009 10:38
(10 months ago)
#permalink
Has there been any action on this?

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).

If I switch to flex-mojos will this work?

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)

<profiles>
		<profile>
			<id>IDEBuilder</id>
			<build>
				<pluginManagement>
					<plugins>
						<plugin>
							<groupId>org.sonatype.flexmojos</groupId>
							<artifactId>flexmojos-maven-plugin</artifactId>
							<version>3.1-SNAPSHOT</version>
							<configuration>
								<configurationReport>true</configurationReport>
							</configuration>
						</plugin>
					</plugins>
				</pluginManagement>
			</build>
		</profile>
</profiles>


5) Build -> Make Project. Enjoy.

My project has 15 modules. flexmojos builder: 1 m 49 s. IDE Builder (second make): 3 s ;)
Vladimir Krivosheev
  Vladimir Krivosheev
19 Mar 2009 10:44
(10 months ago)
#permalink
to Christopher Mason: if you need, I can send you the address of my repo for patched flexmojos.
Jettro Coenradie
  Jettro Coenradie
19 Mar 2009 10:50
(10 months ago)
#permalink
Looks very promising, I am interested in the special prepared flex-mojo as well, any chance of posting it here?
Vladimir Krivosheev
  Vladimir Krivosheev
19 Mar 2009 11:04
(10 months ago)
#permalink
any chance of posting it here

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.