views:

159

answers:

2

Hi!

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>
A: 

Seems to be impossible

artemb
A: 

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.

MinimeDJ