Add facet version configuration parameters ------------------------------------------
Key: MECLIPSE-339 URL: http://jira.codehaus.org/browse/MECLIPSE-339 Project: Maven 2.x Eclipse Plugin Issue Type: Bug Components: WTP support Affects Versions: 2.4 Reporter: Shelley B The maven-eclipse-plugin uses the declared dependencies within the POM to determine the facet versions in an EAR project, however, there may be a better approach. The JEE jar is rarely, if ever, actually required by the EAR since it is provided by the container. Requiring an unnecessary dependency to be configured for the project, only to satisfy the maven-eclipse-plugin's configuration seems to violate Maven's principle of separation of concerns. (Further, due to licensing, the j2ee jars are not available in the central repository, so an install of this jar may be required just to allow for successful execution of the maven-eclipse-plugin.) If these jars are already declared in the POM, it makes sense to take advantage of them (to minimize configuration), however, in most cases, when the JEE jar is not a true dependency, it seems like an invalid workaround for determining the project facets in an EAR. Adding an "earVersion" configuration parameter, or simply allowing project facets to be configured (overridden) in configuration might be a better approach. (Currently, the maven-eclipse-plugin allows "additionalProjectFacets" but does not allow the versions to be overridden.) -- 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