[ http://jira.andromda.org/browse/ANDROMDAPP-28?page=comments#action_14571 
] 

Sebastien Arbogast commented on ANDROMDAPP-28:
----------------------------------------------

With Maven 2.0.6 it does fail. So it has become a bug in the project generator.

> Missing version numbers in app/pom.xml
> --------------------------------------
>
>          Key: ANDROMDAPP-28
>          URL: http://jira.andromda.org/browse/ANDROMDAPP-28
>      Project: AndroMDApp Project Generator
>         Type: Bug

>     Versions: 3.2-RC1
>     Reporter: Sebastien Arbogast
>     Assignee: Chad Brandon

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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.andromda.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

Reply via email to