public class JeeUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ARTIFACT_MAVEN_EAR_PLUGIN |
static String |
ARTIFACT_MAVEN_WAR_PLUGIN |
Constructor and Description |
---|
JeeUtils() |
Modifier and Type | Method and Description |
---|---|
static JeeDescriptor |
getJeeDescriptorFromEjbVersion(String ejbVersion)
Returns the JEEDescriptor associated to an EJB specifications version.
|
static JeeDescriptor |
getJeeDescriptorFromJeeVersion(String jeeVersion)
Returns the JEEDescriptor associated to a JEE specifications version.
|
static JeeDescriptor |
getJeeDescriptorFromJspVersion(String jspVersion)
Returns the JEEDescriptor associated to a JSP specifications version.
|
static JeeDescriptor |
getJeeDescriptorFromServletVersion(String servletVersion)
Returns the JEEDescriptor associated to a Servlet specifications version.
|
static String |
resolveEjbVersion(MavenProject project)
Search in dependencies a version of EJB APIs (or of JEE APIs).
|
static String |
resolveJeeVersion(MavenProject project)
Search in dependencies a version of JEE APIs.
|
static String |
resolveJspVersion(MavenProject project)
Search in dependencies a version of JSP APIs (or from JEE APIs, or from Servlet APIs).
|
static String |
resolveServletVersion(MavenProject project)
Search in dependencies a version of Servlet APIs (or of JEE APIs).
|
public static final String ARTIFACT_MAVEN_EAR_PLUGIN
public static final String ARTIFACT_MAVEN_WAR_PLUGIN
public static final JeeDescriptor getJeeDescriptorFromEjbVersion(String ejbVersion)
ejbVersion
- An EJB version as defined by constants JeeDescriptor.EJB_x_xpublic static final JeeDescriptor getJeeDescriptorFromJeeVersion(String jeeVersion)
jeeVersion
- A JEE version as defined by constants JeeDescriptor.JEE_x_xpublic static final JeeDescriptor getJeeDescriptorFromJspVersion(String jspVersion)
jspVersion
- A JSP version as defined by constants JeeDescriptor.JSP_x_xpublic static final JeeDescriptor getJeeDescriptorFromServletVersion(String servletVersion)
servletVersion
- A Servlet version as defined by constants JeeDescriptor.SERVLET_x_xpublic static String resolveEjbVersion(MavenProject project)
artifacts
- The list of dependencies where we search the informationpublic static String resolveJeeVersion(MavenProject project)
artifacts
- The list of dependencies where we search the informationpublic static String resolveJspVersion(MavenProject project)
artifacts
- The list of dependencies where we search the informationpublic static String resolveServletVersion(MavenProject project)
artifacts
- The list of dependencies where we search the informationCopyright © 2002–2015 The Apache Software Foundation. All rights reserved.