The WTP configuration does not work for weblogic
------------------------------------------------
Key: MECLIPSE-689
URL: http://jira.codehaus.org/browse/MECLIPSE-689
Project: Maven 2.x Eclipse Plugin
Issue Type: Bug
Affects Versions: 2.6
Environment: windows, maven 2.2.1
Reporter: ol
A problem occurs when doing the eclipse goal on a project, trying to transform
it into a WTP Project.
The maven-eclipse-plugin is configure like this in the EJB:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.8</version>
<configuration>
<additionalProjectnatures>
<projectnature>org.eclipse.jdt.core.javanature</projectnature>
<projectnature>net.sf.eclipsecs.core.CheckstyleNature</projectnature>
</additionalProjectnatures>
<additionalBuildcommands>
<buildcommand>org.eclipse.jdt.core.javabuilder</buildcommand>
<buildcommand>net.sf.eclipsecs.core.CheckstyleBuilder</buildcommand>
</additionalBuildcommands>
<downloadSources>true</downloadSources>
<wtpversion>2.0</wtpversion>
</configuration>
</plugin>
And in the ear:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.8</version>
<configuration>
<wtpapplicationxml>true</wtpapplicationxml>
</configuration>
</plugin>
I found an issue in the class
http://www.jarvana.com/jarvana/view/org/apache/maven/plugins/maven-eclipse-plugin/2.8/maven-eclipse-plugin-2.8-sources.jar!/org/apache/maven/plugin/eclipse/writers/wtp/EclipseWtpApplicationXMLWriter.java?format=ok
The method createNewApplicationXml() contains this code:
if ( this.config.getWorkspaceConfiguration().getWebsphereVersion() !=
null )
{
locationAttribute =
EclipseWtpApplicationXMLWriter.XSI_SCHEMA_LOCATION;
}
else
{
locationAttribute =
EclipseWtpApplicationXMLWriter.XMLNS_SCHEMA_LOCATION;
}
It's done for wepsphere ... but it should also be done for Weblogic (the
weblogic version 10.3 that we use also needs this namespace). Without this, WTP
can not deploy the ear.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira