[jbosstools-dev] Maven WTP Integration
Rob Stryker
rstryker at redhat.com
Mon Jan 9 01:44:43 EST 2012
I remember that WTP was thinking of splitting the various parts of
adding facets into separate actions, with settings allowed to be set by
whoever was calling it, to enable or disable the various pieces. But
unfortunately, I remember this only being talked about in a vague idea
sense, and nobody was putting up the time to act on it because nobody
really had clear use cases that were pressing to push it.
Unfortunately I can't find a bugzilla entry on this at all :(
Sorry.
- Rob Stryker
On 01/08/2012 06:17 AM, Rob Cernich wrote:
> Hey all,
>
> I just finished adding some basic WTP support for SwitchYard and had a couple of questions regarding WTP and Maven integration. The SwitchYard facet can be added to any JEE type (although it is not currently constrained in this fashion). If the project is not already a JEE type project, the Utility Module facet is added. This effectively allows SY applications to be deployed to any JEE server.
>
> Some of the issues:
> Adding the Utility Module facet causes the module nature to be added, which always creates a META-INF/MANIFEST.MF file within the project. Is there a way to disable this behavior for Maven projects (e.g. where Maven may be generating the manifest)?
>
> Maven project configurators run in the order they appear in the lifecycle processing. There is a Utility Module configurator that configures projects containing the Utility Module facet. However, this is executed during the compile phase and the SY configurator, which adds the Utility Module facet, runs during the process-classes phase. Because of this, the "deployables" are not configured correctly on the project (i.e. the test sources and resources are included). The current workaround is to run Maven->Update Project Configuration after the project is created or imported. Is there a way to fix this? (FYI, this is not a problem if the project is based on another JEE technology, e.g. WAR, EJB, etc.)
>
> When running the new faceted project wizard and including the Maven facet, it would be nice if the other facets' configurations were defaulted appropriately (e.g. Java source and output folders, web resources, etc.). Is there a way to provide more useful defaults?
>
> Sorry for the barrage of questions.
>
> Thanks in advance,
> Rob
> _______________________________________________
> jbosstools-dev mailing list
> jbosstools-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jbosstools-dev
More information about the jbosstools-dev
mailing list