Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "M2E-WTP/New and Noteworthy/1.0.0"

(Enable/Disable the JAXRS/JSF/JPA Configurators at the pom.xml level)
(Java EE 7 support)
Line 12: Line 12:
 
Restart your workspace after the installation.
 
Restart your workspace after the installation.
  
=== Java EE 7 support ===
+
=== Java EE 7 support ===
TODO
+
 
 +
m2e-wtp now supports the brand new Java EE 7 Facets introduced in WTP 3.5.0 (Kepler).
 +
 
 +
*Dynamic Web Facet 3.1
 +
*EJB Facet 3.2
 +
*Enterprise Application (EAR) Facet 7.0 - Please note maven-ear-plugin 2.8 doesn't support <version>7</version> yet
 +
*Application Client Facet 7.0
 +
*JCA (Connector) Facet 1.7
 +
 
 +
Also, when m2e-wtp is unable to determine the correct Facet from the maven plugin settings or deployment descriptors are missing, instead of setting a default version, the existing user-installed Facet will be kept.
 +
 
 +
Be aware the Java EE 7 specs require projects to build using Java 1.7. Don't forget to set the proper maven-compiler-plugin configuration :
 +
<pre>&lt;plugin&gt;
 +
&nbsp; &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
 +
&nbsp; &lt;version&gt;3.1&lt;/version&gt;
 +
&nbsp; &lt;configuration&gt;
 +
&nbsp; &lt;source&gt;1.7&lt; /source&gt;
 +
&nbsp; &lt;target&gt;1.7&lt;/target&gt;
 +
&nbsp; &lt;/configuration&gt;
 +
&lt;/plugin&gt;
 +
</pre>
 +
<br>
  
 
=== Enable/Disable the JAX-RS/JPA/JSF Configurators at the pom.xml level ===
 
=== Enable/Disable the JAX-RS/JPA/JSF Configurators at the pom.xml level ===

Revision as of 04:53, 13 May 2013

New and Noteworthy in m2e-wtp 1.0.0

List of all bug fixed for the current Milestone : changelog

Pre-Requisites

m2e-wtp requires an Eclipse JavaEE distribution, and can be installed from :

m2e 1.4 and the Maven Archiver 0.15.0+ feature from Sonatype are required. They will be automatically discovered and installed if necessary.

Restart your workspace after the installation.

Java EE 7 support

m2e-wtp now supports the brand new Java EE 7 Facets introduced in WTP 3.5.0 (Kepler).

  • Dynamic Web Facet 3.1
  • EJB Facet 3.2
  • Enterprise Application (EAR) Facet 7.0 - Please note maven-ear-plugin 2.8 doesn't support <version>7</version> yet
  • Application Client Facet 7.0
  • JCA (Connector) Facet 1.7

Also, when m2e-wtp is unable to determine the correct Facet from the maven plugin settings or deployment descriptors are missing, instead of setting a default version, the existing user-installed Facet will be kept.

Be aware the Java EE 7 specs require projects to build using Java 1.7. Don't forget to set the proper maven-compiler-plugin configuration :

<plugin>
  <artifactId>maven-compiler-plugin</artifactId>
  <version>3.1</version>
  <configuration>
  <source>1.7< /source>
  <target>1.7</target>
  </configuration>
</plugin>


Enable/Disable the JAX-RS/JPA/JSF Configurators at the pom.xml level

The optional JAX-RS, JPA and JSF configurators can be enabled or disabled at a workspace level from Window > Preferences > Maven > Java EE Integration. Now, you can have a finer grain control on these configurators directly from your pom.xml properties :

  • Adding <m2e.jaxrs.activation>false</m2e.jaxrs.activation> in your pom properties section will disable the JAX-RS configurator
  • Adding <m2e.jpa.activation>false</m2e.jpa.activation> in your pom properties section will disable the JPA configurator
  • Adding <m2e.jsf.activation>false</m2e.jsf.activation> in your pom properties section will disable the JSF configurator

The pom settings always override the workspace preferences. So if you have, for instance the JPA configurator disabled at the workspace level, using <m2e.jpa.activation>true</m2e.jpa.activation> will enable it on your project anyway.

New API for Facet Detection for JAXRS/JSF/JPA

TODO

Project conversion enhancements

TODO Conversion use latest maven plugin versions

Disabled validation of build output folder

TODO

Eliminated unnecessary file copies

TODO

Back to the top