EAP 6.4 deployment-overlay fs-path searches from current directory
I am trying to use a deployment-overlay and when I specify the --content argument the fs-path part searches from the current directory regardless of what I enter.
deployment-overlay add --name=ObsidianOverlay --content=WEB-INF/lib/batch-client-1.5.0.jar=/users/tmcginnis/.m2/repository/com/ajga/batch/batch-client/1.0.5.0/batch-client-1.0.5.0.jar --deployments=Obsidian
Here is the error.
Content file doesn't exist C:\Users\tmcginnis\EAP-6.4.0\bin\users\tmcginnis.m2\repository\com\ajga\batch\batch-client\1.0.5.0\batch-client-1.0.5.0
.jar
Responses
It looks like you're running on this on a Windows system but the path you're providing in your --content is a linux path. The content should be the file path [1] so try the full path to the file. Also, replace "--content=WEB-INF" with "--content=/WEB-INF"... notice the leading "/" From [1]
"--content: A comma-delimited list of files to overlay. Each item in the list is a key-value pair, where the key is the path in the deployment in which to place the overlaid file and the value is the filesystem path to be used as the content that will be overlaid in the deployment."
[1] https://access.redhat.com/solutions/383393
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
