Constantino Cronemberger created MTOMCAT-293:
------------------------------------------------
Summary: create configuration to specify the name of the deployed
directory
Key: MTOMCAT-293
URL: https://issues.apache.org/jira/browse/MTOMCAT-293
Project: Apache Tomcat Maven Plugin
Issue Type: Improvement
Components: commons-lib
Affects Versions: 2.2
Reporter: Constantino Cronemberger
Assignee: Olivier Lamy (*$^¨%`£)
Priority: Minor
I am working in a system that has an Ajax application that can be deployed to
multiple environments (dev, uat and prod), and we have the requirement that the
same war is deployed to all environments.
We also have few configuration parameters we are packaging with
maven-assembly-plugin, so when we build the project it generates a main war
plus a few zip files, one for each environment.
I am configuring the backend project to run with tomcat7-maven-plugin, and have
configured it to run the frontend module by adding it to the <webapps> section.
This is where the problem starts: both the main war and the zip file with the
configuration have the same artifact id, and what happens at the end is that
only the first one gets deployed.
I have already tried to specify a different contextPath but it still creates
the directories based on the artifact id.
I foresee few possible solutions:
1 - add a new parameter to specify the directory name
2 - append the classifier to the artifactId to generate the directory name
3 - create the directory name based on the contextPath rather than on the
artifactId
Here is the configuration I am using:
<webapps>
<!-- dev configuration -->
<webapp>
<groupId>xxx.yyy</groupId>
<artifactId>my_module_ui</artifactId>
<version>1.0.0-SNAPSHOT</version>
<type>war</type>
<classifier>dev</classifier>
<asWebapp>true</asWebapp>
<contextPath>/config</contextPath>
</webapp>
<webapp>
<groupId>xxx.yyy</groupId>
<artifactId>my_module_ui</artifactId>
<version>1.0.0-SNAPSHOT</version>
<type>war</type>
<asWebapp>true</asWebapp>
</webapp>
</webapps>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]