[ http://jira.codehaus.org/browse/MNG-871?page=comments#action_46609 ]
Adam Hardy commented on MNG-871: -------------------------------- It just takes a while to work out what is going on, or rather, takes a while to get someone to tell you what you're doing wrong. The user is allowed to leave the type attribute on a dependency blank - presumably for ease-of-use reasons? - and is therefore lulled into declaring the dependency wrong by not declaring it at all. It's counter-intuitive, and I admit, it's not always possible to avoid. But I don't get your (1). Perhaps you mean coding it will introduce unnecessary complexity into the code base? From a user perspective, I think there was real lack of clarity about what I had done wrong. But I can see that your items (2) & (3) are potential show-stoppers. > propagate the type attribute of a pom up to the dependency when dependency > doesn't specify it > --------------------------------------------------------------------------------------------- > > Key: MNG-871 > URL: http://jira.codehaus.org/browse/MNG-871 > Project: Maven 2 > Type: Bug > Components: maven-core > Reporter: Adam Hardy > > > Using maven-ear-plugin, I have two dependencies in my project and I left out > the types when I declared the dependencies. > maven-ear-plugin generated an application.xml descriptor for the EAR file, > but left out the module declarations which it should have generated for the > EJB dependencies, because the dependency types defaulted to JAR. > The dependencies are not updated to reflect the type of the pom associated > with it, and hence type has to be specified, yet it is possible to leave it > out. > However, since the type information is available in the pom, it would be very > convenient if m2 just propagated that back to the dependency. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]