Hi, When I run this command “mvn -Pseparate-dist”, it is trying to create cms war file under platform module which I created newly to separate cms and delivery app. Any Sugggestions?
I see it is trying to copy /platform/cms/target/cms.war into the regular distribution. That should be just /cms/target/cms.war.
Are you executing from root folder? Does
mvn -Pdist work? Do you have
source>cms/target/cms.war</source> in the webapps-component.xml?
Yes, I am executing it from root folder. mvn -Pdist also didn’t worked.
You want me to add ?
You can compare that XML with this (which is one from a generated archetype project). Please try to understand what it is doing and change what is not working for you. E.g. is cms/target/cms.war actually built?
<component xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/component/1.1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/component/1.1.2 http://maven.apache.org/xsd/component-1.1.2.xsd"> <files> <file> <source>cms/target/cms.war</source> <outputDirectory>webapps</outputDirectory> <destName>cms.war</destName> </file> <file> <source>site/webapp/target/site.war</source> <outputDirectory>webapps</outputDirectory> <destName>site.war</destName> </file> </files> </component>