[EMAIL PROTECTED] wrote:
Igor Fedorenko <[EMAIL PROTECTED]> wrote on 16/06/2008 11:43:31:
Maven projects with packaging=war will be automatically configured as
Dynamic Web WTP project during project import or update configuration
action. All relevant project dependencies will be added to WTP J2EE
Module Dependencies (and removed from Maven Dependencies) and J2EE
Module Dependencies and Maven Dependencies will be automatically updated
as projects dependencies change.
There is still some bugs/limitations in this area, but this mostly works
;-) You may want to try to create/import WAR project in WTP 2.0.x and
see how changes to dependencies in POM get reflected in J2EE Module
Dependencies.
Ok, so in essence you are doing the same job as the maven-eclipse-plugin,
in that you read the pom, and generate the .project, .classpath, .settings
folder and any other eclipse related meta data.
Is that essentially correct?
Yes, this is correct, except m2eclipse uses public APIs to manipulate
eclipse metadata and provides real-time synchronization of Eclipse
metadata where feasible/practical.
So where do you/can you set the facets for a project?
In some instances, this is mandatory meta data that needs to be there for
certain features that I use, to work.
The maven-eclipse-plugin covers this via:
<build>
<plugins>
<plugin>
<artifactId>maven-eclipse-plugin</artifactId>
<configuration>
<additionalProjectFacets>
<com.ibm.websphere.extended.web>6.1</
com.ibm.websphere.extended.web>
<com.ibm.websphere.coexistence.web>6.1</
com.ibm.websphere.coexistence.web>
<web.jstl>1.1</web.jstl>
<jsf.base>7.0</jsf.base>
<jsf.ibm>7.0</jsf.ibm>
</additionalProjectFacets>
</configuration>
</plugin>
</plugins>
</build>
How can I accomplish this using m2eclipse?
m2eclipse WTP integration does not currently allow configuration of
arbitrary project facets.
WTP faceted project manipulation APIs take facet id, version and
optional configuration object, so I suppose it is theoretically possible
to use maven-eclipse-plugin or similar configuration to create facets
that do not require explicit configuration object. Unfortunately, I
can't tell if this will work for Rational project facets.
--
Regards,
Igor
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email