I'm running the tomcat plugin configured as follows:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tomcat-maven-plugin</artifactId>
<configuration>
<warSourceDirectory>${basedir}/src/main/webapp</warSourceDirectory>
</configuration>
</plugin>
If I run the following line from a servlet the application is running:
logger.trace("The current root directory is: {} ", new
File("").getAbsolutePath());
I would expect to see "The current root directory is:
${basedir}/src/main/webapp". However the result is:
"The current root directory is: ${basedir}". In other words it seems the
<warSourceDirectory> configuration has not taken effect.
Thoughts? TIA,
- Ole
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]