[ http://jira.codehaus.org/browse/MECLIPSE-312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_115010 ]
Richard van Nieuwenhoven commented on MECLIPSE-312: --------------------------------------------------- The "/WebContent " is not fixed anymore in WTP (in very early versions it was!). Best practice is to use the maven default (defined by the maven-war-plugin) which is ${basedir}/src/main/webapp The eclipse plugin will get the setting from the maven-war-plugin and configure it for eclipse wtp, so no need for the webcontent link! If you really!! want another web content directory you will have to configure the maven-war-plugin! > 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