[
http://jira.codehaus.org/browse/MECLIPSE-312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_104044
]
Dan Tran commented on MECLIPSE-312:
-----------------------------------
It seems you want your web source directory in ${basedir}/WebContent.
If so you must configure Eclipse plugin to do so. The current default
web location is ${basedir}/src/main/webapp.
You also need to use 2.5-SNAPSHOT inorder to get this working as well.
> WebContent folder linked to webapp folder is not generated
> ----------------------------------------------------------
>
> Key: MECLIPSE-312
> URL: http://jira.codehaus.org/browse/MECLIPSE-312
> Project: Maven 2.x Eclipse Plugin
> Issue Type: Bug
> Components: WTP support
> Environment: Maven 2, Linux & Windows
> Reporter: Cyril JOUI
> Attachments: EclipseProjectWriter.java, EclipseWtpComponentWriter.java
>
>
> When I generate a eclipse project with wtpsupport, maven plugin doesn't
> create a WebContent folder in web project.
> Configuration part in eclipse is:
> in org.eclipse.wst.common.component:
> <wb-resource deploy-path="/" source-path="/WebContent"/>
> and /WebContent is refered by:
> <link>
> <name>WebContent</name>
> <type>2</type>
>
> <location>/..../rpf/dev/modules/rpf-gateway/src/main/webapp</location>
> </link>
> in .project file
> I made modification on EclipseProjectWriter:
> // if war project (add WebContent => webapp)
> if ("war".equals(config.getProject().getPackaging())) {
> addLink (writer, "WebContent",
> config.getProject().getBasedir() +
> "/src/main/webapp", LINK_TYPE_DIRECTORY);
> }
> And
> writer.startElement( ELT_WB_RESOURCE );
> writer.addAttribute( ATTR_DEPLOY_PATH, "/" ); //$NON-NLS-1$
> writer.addAttribute( ATTR_SOURCE_PATH, "/WebContent");
> /*
> writer.addAttribute( ATTR_SOURCE_PATH, IdeUtils
> .toRelativeAndFixSeparator(
> config.getEclipseProjectDirectory(), warSourceDirectory, false ) );
> */
> writer.endElement();
> in EclipseWtpComponentWriter
--
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