413925 : regen. application.xml after clean build

The fix allows the application.xml to be regen'd after a Maven 'Project
Update...' with the clean flag enabled (Using the Alt-F5 shortcut).

However, for some reason, the ear-resources folder is not refreshed properly,
i.e. disappears from the 'Deployed Resources' node. It's sometimes correctly
refreshed, but it's rare. A simple refresh (F5) on the project root is
enough to refresh the 'Deployed Resources' node with the gen'd resources.

Removing the ProjectUtils.hideM2eclipseWtpFolder(mavenProject, project)
call from EarProjectConfiguratorDelegate.configure() doesn't change
anything. Web projects don't suffer from the same issue.

Signed-off-by: Fred Bricon <fbricon@gmail.com>
5 files changed
tree: 1cc7db663202abb64c37326596a0771cd33c8bf8
  1. .settings/
  2. org.eclipse.m2e.wtp/
  3. org.eclipse.m2e.wtp.feature/
  4. org.eclipse.m2e.wtp.jaxrs/
  5. org.eclipse.m2e.wtp.jaxrs.feature/
  6. org.eclipse.m2e.wtp.jsf/
  7. org.eclipse.m2e.wtp.jsf.feature/
  8. org.eclipse.m2e.wtp.overlay/
  9. org.eclipse.m2e.wtp.overlay.ui/
  10. org.eclipse.m2e.wtp.sdk.feature/
  11. org.eclipse.m2e.wtp.site/
  12. org.eclipse.m2e.wtp.target-platform/
  13. .gitignore
  14. catalog.xml
  15. description
  16. pom.xml
  17. README.md
README.md

Maven Integration for Eclipse WTP

Maven Integration for Eclipse WTP, a.k.a m2e-wtp, aims at providing a tight integration between Maven Integration for Eclipse (a.k.a m2e) and the Eclipse Web Tools Project (WTP) .

m2eclipse-wtp provides a set of m2e connectors used for the configuration of Java EE projects in WTP. It features :

  • Support for war projects : adds the Java and Dynamic Web Facets. Support war overlays and on-the-fly resource filtering
  • Support for ejb projects : adds the Java and EJB Facets. Supports deployment descriptor filtering.
  • Support for ear projects : adds the EAR Facet. Supports application.xml and jboss.xml file generation, resource filtering
  • Support for rar projects : adds the Java and Connector Facets.
  • Support for app-client projects : adds the Java and Application Client Facets. Supports deployment descriptor filtering.
  • Support for jar dependency projects : adds the Java and Utility Facets.
  • Support for web-fragment projects : adds the Java and Web Fragment Facets if a web-fragment.xml file is detected in the resource folders.

Note that m2e-wtp requires m2e > 1.0. You must make sure m2e's update site (http://download.eclipse.org/technology/m2e/releases/) is defined in : Window > Preferences > Install / Update > Available Software Sites Since m2e 1.0 is incompatible with previous versions, you may have to uninstall old m2e and m2e-wtp versions before proceeding with the installation.

Public source repository

Issue tracking

Public wiki