[
http://jira.codehaus.org/browse/MECLIPSE-307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_102951
]
Denis Cabasson commented on MECLIPSE-307:
-----------------------------------------
The only valid path to deploy your compiled source in a web application is
"WEB-INF/classes", so this path should certainly be hardcoded.
The outputDirectory is a maven parameter telling maven where to put compiled
sources. Eclipse Java project is taking this path into account, but I don't
think it would be good for Eclipse WTP to have a custom folder other than
"WEB-INF/classes".
See [Java Servlet 2.2
Specifications|http://java.sun.com/products/servlet/2.2/], spécifications
paper, point 9.4
> "target" for deploy-path shouldnt be a constant
> -----------------------------------------------
>
> Key: MECLIPSE-307
> URL: http://jira.codehaus.org/browse/MECLIPSE-307
> Project: Maven 2.x Eclipse Plugin
> Issue Type: Bug
> Components: WTP support
> Affects Versions: 2.4, 2.5
> Environment: Windows 2003
> Reporter: Auston McReynolds
> Attachments: patch.txt
>
>
> If specified in the POM:
> <build>
> <sourceDirectory>JavaSource</sourceDirectory>
> <outputDirectory>AnotherFolder/WEB-INF/classes</outputDirectory>
> <plugins>
> <plugin>
> <artifactId>maven-eclipse-plugin</artifactId>
> ...
> .settings/org.eclipse.wst.common.component has
> <wb-resource deploy-path="WEB-INF/classes" source-path="JavaSource"/>
> Instead of
> <wb-resource deploy-path="AnotherFolder/WEB-INF/classes"
> source-path="JavaSource"/>
> This is due to String target being set to the literal "/WEB-INF/classes"
> under the block:
> if ( "war".equalsIgnoreCase( packaging ) )
> Instead it seems to me that it should be:
> target = IdeUtils.toRelativeAndFixSeparator(
> config.getProject().getBasedir(), buildOutputDirectory, false );
> Thanks to Dan and others for assistance received previously!
--
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