Hello. I am new to flex-mojos, so any help would be appreciated. I have a problem where I want to use dependencyManagement in a multi-module project. By using this maven feature I do not have to specify versions, scope, etc. when "applying" the dependencies in the different modules. My problem seems to be that this does not work. It seems that pluginManagement works in the desired way, but not dependencyManagement. Is this intended?
Here is a simple example of what I want to do. Parent pom.xml (removed some config for readability): --------------------------------------------------------------------------- <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance " xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd "> <modelVersion>4.0.0</modelVersion> <groupId>com.test</groupId> <artifactId>parent</artifactId> <version>1.0.0-SNAPSHOT</version> <packaging>pom</packaging> <name>parent</name> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Dependency management is used to control dependencies so that all sub-modules use the same version and type of dependencies. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <dependencyManagement> <dependencies> <!-- Flex SDK dependencies --> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>flex-framework</artifactId> <version>3.2.0.3958</version> <type>pom</type> </dependency> <!-- Flex-Mojos Unit testing support --> <dependency> <groupId>info.flex-mojos</groupId> <artifactId>testing-support</artifactId> <version>2.0.3</version> <type>swc</type> <scope>test</scope> </dependency> </dependencies> </dependencyManagement> <modules> <module>child</module> </modules> <build> <pluginManagement> <plugins> <plugin> <groupId>info.flex-mojos</groupId> <artifactId>flex-compiler-mojo</artifactId> <version>2.0.3</version> </plugin> <!-- .... --> </plugins> </pluginManagement> </build> </project> --------------------------------------------------------------------------- Child pom.xml (removed some config for readability): --------------------------------------------------------------------------- <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance " xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd "> <modelVersion>4.0.0</modelVersion> <parent> <groupId>com.test</groupId> <artifactId>parent</artifactId> <version>1.0.0-SNAPSHOT</version> </parent> <groupId>com.test</groupId> <artifactId>child</artifactId> <version>1.0.0-SNAPSHOT</version> <name>child</name> <packaging>swf</packaging> <build> <plugins> <plugin> <groupId>info.flex-mojos</groupId> <artifactId>flex-compiler-mojo</artifactId> <extensions>true</extensions> </plugin> <plugin> <groupId>info.flex-mojos</groupId> <artifactId>asdoc-mojo</artifactId> </plugin> <plugin> <groupId>info.flex-mojos</groupId> <artifactId>flexbuilder-mojo</artifactId> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>air-framework</artifactId> </dependency> <dependency> <groupId>info.flex-mojos</groupId> <artifactId>testing-support</artifactId> </dependency> </dependencies> </project> --------------------------------------------------------------------------- Regards, Morten Tuft Vareberg. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex Mojos" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex-mojos?hl=en?hl=en http://blog.flex-mojos.info/ -~----------~----~----~----~------~----~------~--~---
