You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example:
Structure project is:
C:/project/demo/base - its maven module
C:/project/demo/feature1 - its maven module
C:/project/demo/feature2 - its maven module
C:/project/demo/server1 - its war - use base and feature1 module
C:/project/demo/server2 - its war - use base and feature2 module
So i make two deployments path, because i want to run both war at same time, they communicate:
C:/project/demo/server1
C:/project/demo/server2
I want to use rsp.assembly.json which files to deploy. But i cannot copy files, for example from C:/project/demo/base module
I try use syntax ../base/files but it throws exception:
ERROR o.j.t.r.s.s.p.AbstractFilesystemPublishController:289 - Error publishing module C:\project\demo\server1 to server Tomcat 7.0: error copying mapping C:\project\demo\server1..\base\files to c:\tomcat\webapps\server1\files
I just tested this on windows using both a wildfly server and a tomcat server, and it seems like it works? I was admittedly testing using a CLI version of the tool, but it really shouldn't make much of a difference because I tested various different scenarios.
It's clear by your error message that a trailing slash is missing before the "../" (not in your assembly file, but in the file it's attempting to copy). But I can't get the code to make such a mistake, and I've tried many times already.
Example:
Structure project is:
C:/project/demo/base - its maven module
C:/project/demo/feature1 - its maven module
C:/project/demo/feature2 - its maven module
C:/project/demo/server1 - its war - use base and feature1 module
C:/project/demo/server2 - its war - use base and feature2 module
So i make two deployments path, because i want to run both war at same time, they communicate:
C:/project/demo/server1
C:/project/demo/server2
I want to use rsp.assembly.json which files to deploy. But i cannot copy files, for example from C:/project/demo/base module
I try use syntax ../base/files but it throws exception:
ERROR o.j.t.r.s.s.p.AbstractFilesystemPublishController:289 - Error publishing module C:\project\demo\server1 to server Tomcat 7.0: error copying mapping C:\project\demo\server1..\base\files to c:\tomcat\webapps\server1\files
Content of rsp.assembly.json:
{
"mappings": [
{
"source-path": "../base/files/",
"deploy-path": "/files/"
}
]
}
Is this possible, to copy files from other modules outside of deployment path?
Thank you
The text was updated successfully, but these errors were encountered: