-
Notifications
You must be signed in to change notification settings - Fork 640
-
Notifications
You must be signed in to change notification settings - Fork 640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.metadata directory not copied into docker-build.tar and hence is missing from image #446
Comments
How does your configuration looks like ? You can use also an assembly descriptor for specifying the content of the docker.tar and you can set there also |
Followup: I've mvnDebug and found that when the DockerAssemblyManager builds the tar archive it uses DefaultFileSet to create the file set (see createBuildArchiver) and always sets useDefaultExcludes to true. So even though the assembly has useDefaultExcludes set to false, the archive will have it set it to true, and as far as I understand, the .metadata directory will be excluded. Please tell me I'm wrong and that this option can be set in the configuration! |
@hallvard your are right, thats a bug. I just fixed it by setting I just deployed a 0.15.2-SNAPSHOT to Maven central, so feel free to test it. Thanks for the report and finding the cause. |
Switching to 0.15.2-SNAPSHOT seemed to work. Thanks for the quick response and fix! |
Cool ;-). I close the issue, feel free to reopen in case. |
My application is a headless Eclipse installation with a pre-made workspace. When building with maven, the Eclipse configuration and workspace is set up in another module, and then an inline assembly copies everything needed into the target/..../build/maven subdirectory of the target. I can see that this works properly by inspecting the resulting structure. However, the generated docker-build.tar does not include a particular directory named .metadata which is a very important part the Eclipse workspace. I needed to set useDefaultExcludes to false in the assembly to get it copied in the first place, but for some reason docker-build.tar and hence the image does not include the .metadata directory. I've looked for a place to control this part of the process, but found nothing. What am I missing?
The text was updated successfully, but these errors were encountered: