Missing version numbers in app/pom.xml

Description

When running the last snapshot of Maven Idea plugin on the root on a AndroMDApp 3.2-SNAPSHOT-generated project produces an error, saying that 2 dependencies are missing version numbers in App module. And that's true: in dependencyManagement section, both timetracker-common and commons-digester don't have a version specified.

One may think that it's OK because those versions are specified in the root POM and they should be inherited but it's not the case because we're in a dependencyManagement section, not a dependencies one. And I think that in dependencyManagement, there should always be a version number specified.

Strangely, it doesn't make install fail, only idea project file generation.

Hence I think that in the generated app/pom.xml, the dependencyManagement should be generated like this for idea:idea to succeed:

<dependencyManagement>
<dependencies>
<dependency>
<groupId>${pom.groupId}</groupId>
<artifactId>timetracker-common</artifactId>
<exclusions>
<exclusion>
<groupId>${pom.groupId}</groupId>
<artifactId>timetracker-mda</artifactId>
</exclusion>
<exclusion>
<groupId>org.andromda.profiles.uml14</groupId>
<artifactId>andromda-profile</artifactId>
</exclusion>
<exclusion>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</exclusion>
</exclusions>
<version>${pom.version}</version>
</dependency>
<dependency>
<groupId>commons-digester</groupId>
<artifactId>commons-digester</artifactId>
<exclusions>
<exclusion>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
</exclusion>
</exclusions>
<version>1.7</version>
</dependency>
</dependencies>
</dependencyManagement>

Environment

None

Assignee

Former user

Reporter

SebastienS

Labels

None

Components

Affects versions

Priority

Major
Configure