[
http://jira.codehaus.org/browse/MECLIPSE-266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_102138
]
Thierry Levieux commented on MECLIPSE-266:
------------------------------------------
- Regarding the "strange dependency analysis", I am a little confused too.
One solution would consist in adding the ear version within the *eclipse
plugin* configuration.
In my opinion this is not a good solution because an ear version attribute
depends on the project context:
the ear version has no sense if you generate a war or an ejb wtp project.
On the other hand I don't agree to look at the *ear plugin* at all. Cross
plugin dependencies must be avoid
as much as possible. For instance, what's happen if you decide to use a
proprietary/commercial
*ear plugin* instead of the default one ? The *eclipse plugin* is broken !
So I think the dependency analysis is a not-so-bad solution.
However my favourite solution would be a dedicated plugin for each wtp artifact
(ear, war, ejb), with their dedicated
attributes (j2ee version, servlet version, ejb version). No more dependencies
analysis.
A last think, don't be afraid with duplicate attributes accross plugins (a
consequence of the separation of concerns).
I recommend you to use ant annotations (<version>${ear.version}<version> for
instance), with global properties located
in a "master" pom.
- Regarding the Java facet, I agree with you (a bug ?).
And what's about your project ? Have you succeed ?
Thierry
> plugin applies java facet to ear project
> ----------------------------------------
>
> Key: MECLIPSE-266
> URL: http://jira.codehaus.org/browse/MECLIPSE-266
> Project: Maven 2.x Eclipse Plugin
> Issue Type: Bug
> Components: WTP support
> Affects Versions: 2.3
> Environment: Windows XP
> Reporter: Srepfler Srgjan
>
> In .settings/org.eclipse.wst.common.project.facet.core.xml of the EAR module
> I'm getting this:
> <faceted-project>
> <fixed facet="jst.java"/>
> <fixed facet="jst.ear"/>
> <installed facet="jst.ear" version="1.3"/>
> <installed facet="jst.java" version="1.4"/>
> </faceted-project>
> This is a wrong facet on a EAR module and I can't compile if I don't edit
> this file manually (I can't do it from the project properties - facets dialog)
--
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