Can you use a SWF as a dependency for a Flex Mojos Maven build

585 Views Asked by At

I have a maven project with flex-mojos 3.1.0. Can I have a module with swf packaging and configure a dependency on it in another module? When I do, I get a compilation error.

project    
| - module1:swf  
| - module2:swf

module2/pom.xml:

<parent>
    <groupId>com.mygroup</groupId>
    <artifactId>project</artifactId>
    <version>1.0-SNAPSHOT</version>
</parent>

<dependencies>
    <dependency>
        <groupId>com.mygroup</groupId>
        <artifactId>module1</artifactId>
        <version>1.0-SNAPSHOT</version>
        <type>swf</type>
    </dependency>
</dependencies>
2

There are 2 best solutions below

1
On BEST ANSWER

Seems to be impossible

0
On

If you need module-to-module dependency to ensure correct build order for your modules then you can simply create a parent pom for both modules and arange build order in it.