DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
  1. DZone
  2. Coding
  3. Java
  4. Flex & Maven in IntelliJ IDEA

Flex & Maven in IntelliJ IDEA

Maria Khalusova user avatar by
Maria Khalusova
·
Jul. 20, 09 · Interview
Like (0)
Save
Tweet
Share
8.43K Views

Join the DZone community and get the full member experience.

Join For Free

While importing Maven modules with swf or swc packaging type, IntelliJ IDEA creates IntelliJ IDEA module with Flex facet, and attaches Maven dependencies as project libraries. The parameters of Flex facet are taken from pom.xml, where possible.

There is a number of Maven plugins that allow to compile flex applications. They are supported by IntelliJ IDEA in a varying degree. Among them we recommend to take note of the org.sonatype.flexmojos:flexmojos-maven-plugin that is supported at the maximum level since version 3.2. With this plugin you can be sure that all the plugin configuration parameters you specified in the pom.xml, like locales, paths, etc., will be taken into account in the flex facet.

There is only one tiny thing you need to bother about. Do not forget to specify <configurationReport> true </configurationReport> parameter in the flexmojos-Maven-plugin configuration in your pom. This option makes plugin generate the flex compiler configuration file during the 'compile' phase. This file can be used as custom compiler configuration file by Flex facet.

Now, suppose we import such Maven project into IntelliJ IDEA. Let’s take a look on the project structure.

IntelliJ IDEA automatically detects Flex facets, and if there are runtimeLocales, additional Flex facets are configured for each locale. Moreover, when such project is compiled by IntelliJ IDEA, supplementary swc/swf files (depending on the flex project type) are created for each locale.

By default, as we use Maven to create flex config, IntelliJ IDEA uses custom compiler configuration file. The path to this file is also generated automatically based on our pom.xml, and the config itself is generated when you first run Maven “compile” goal.

intellij FLEX (protocol) Apache Maven

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Steel Threads Are a Technique That Will Make You a Better Engineer
  • The Power of Zero-Knowledge Proofs: Exploring the New ConsenSys zkEVM
  • Building a RESTful API With AWS Lambda and Express
  • Tracking Software Architecture Decisions

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: