You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@codehaus.org> on 2014/11/25 21:49:03 UTC
[jira] (MECLIPSE-689) The WTP configuration does not work for
weblogic
[ https://jira.codehaus.org/browse/MECLIPSE-689?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov closed MECLIPSE-689.
-----------------------------------
Resolution: Won't Fix
Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014 if you're wondering why this issue was closed out.
> The WTP configuration does not work for weblogic
> ------------------------------------------------
>
> Key: MECLIPSE-689
> URL: https://jira.codehaus.org/browse/MECLIPSE-689
> Project: Maven 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 was sent by Atlassian JIRA
(v6.1.6#6162)