Wrong generated source-path when warSourceDirectory is changed
--------------------------------------------------------------
Key: MECLIPSE-296
URL: http://jira.codehaus.org/browse/MECLIPSE-296
Project: Maven 2.x Eclipse Plugin
Issue Type: Bug
Components: WTP support
Affects Versions: 2.4
Environment: xp
Reporter: Dan Tran
When warSourceDirectory of the war configuration is explicitly set relative to
project basedir, its source-path is incorrectly set in reactor mode.
The path is constructed using the reactor's basedir + warSourceDirectory. It
must be project's basedir + warSourceDirectory
The work around is to set warSourceDirectory using absolute path
here is the configuration to reproduce the issue
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<warSourceDirectory>webapp</warSourceDirectory>
</configuration>
</plugin>
the incorrected source-path is in ..settings\org.eclipse.wst.common.component
The work around is
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<warSourceDirectory>${basedir}/webapp</warSourceDirectory>
</configuration>
</plugin>
The main problem in code is in IdeUtils.getCanonicalPath() returns incorrect
path in reactor mode.
--
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