Hello.
I figured it out, sorry to bother you guys with this. The problem was
that I did not specify the type of the dependency. (I am used to
working with java so the dependency is usually the default jar). After
reading the fine print in the maven docs I came across this note,
inside an example page:
---------
NOTE: In two of these dependency references, we had to specify the
<type/> element. This is because the minimal set of information for
matching a dependency reference against a dependencyManagement section
is actually {groupId, artifactId, type, classifier}. In many cases,
these dependencies will refer to jar artifacts with no classifier.
This allows us to shorthand the identity set to {groupId, artifactId},
since the default for the type field is jar, and the default
classifier is null.
---------
Thanks for the quick responses!
/mtv
On 28.01.2009, at 13:31 , Marvin Froeder wrote:
> Can you run it with -e parameter and post the stack trace?
>
>
> VELO
>
> On Wed, Jan 28, 2009 at 10:02 AM, Morten Tuft Vareberg
> <[email protected]
> > wrote:
>
> Hey.
>
> This was just in my example to the mailing list, sorry for not being
> thorough enough when writing the mail. When I corrected the error you
> saw, I still get the same error though:
> ---------------------------------------------------------------------------
> Project ID: com.test:child
> POM Location: /check-deps/child/pom.xml
> Validation Messages:
>
> [0] 'dependencies.dependency.version' is missing for
> com.adobe.flex.framework:flex-framework
> [1] 'dependencies.dependency.version' is missing for info.flex-
> mojos:testing-support
>
>
> Reason: Failed to validate POM for project com.test:child at /check-
> deps/child/pom.xml
> ---------------------------------------------------------------------------
>
> /mtv
>
> On 28.01.2009, at 12:51 , Marvin Froeder wrote:
>
> > Well,
> >
> > You put flex-framework on dependency management, then consume air-
> > framework on your child module.
> >
> > I don't think that will work <35F.gif>
> >
> > VELO
> >
> > On Wed, Jan 28, 2009 at 9:47 AM, Morten Tuft Vareberg
> > <[email protected]
> > > wrote:
> >
> > 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/
-~----------~----~----~----~------~----~------~--~---