when i deploy an artifact (Liferay Portal theme) to Tomcat, it is stored in directory webapps/artifactId-version/
. However, I do need for directory to be named without the version suffix. How can I accomplish that?
Thanks.
when i deploy an artifact (Liferay Portal theme) to Tomcat, it is stored in directory webapps/artifactId-version/
. However, I do need for directory to be named without the version suffix. How can I accomplish that?
Thanks.
You don't describe how you deploy, but I assume that this should do the trick: http://maven.apache.org/pom.html#Build change the project.build.finalName to
<finalName>${project.artifactId}</finalName>
Okay, it was Liferay Portal specific issue. What worked for me was adding liferay-plugin-package.properties
file. Although there isn't anything close to name-like info in it (maybe it is because of <module-incremental-version>
), if this file is present, it names the deployed folder without the version suffix.
Use recommended-deployment-context
configuration. That will make Liferay's deployer rename your artifact before deploying it into Tomcat.