-
Notifications
You must be signed in to change notification settings - Fork 601
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
release bug - When packaging server with app into uber jar extensions folder is not included in the final deployment #5881
Comments
@doychin it looks like you are using the liberty-maven-plugin to package your app and server, and you are having a packaging issue. We use the WASdev/ci.maven repository to track issues with our maven plugin. You can open a new issue here. It would help to include a pom.xml sample (or snippet). Thank you. |
Looks like this might be in the server package command. Kernel team will investigate as soon as possible. |
@doychin Would you be able to give us an example of the problem? Maybe a snapshot of the directory structure, and a snapshot of what is missing from the package. |
Hi, You can check this repository There is an issue open for that problem in that repository. |
@doychin Do you know what package "include" options were used in your pom file? Assuming you might have used the default of 'all' but wanted to check before digging deeper into the issue. https://github.com/WASdev/ci.maven/blob/master/docs/package-server.md |
It is not my project. I think everything is by default. Problem is that
extensions are not included in the final fat jar. These are downloaded and
extracted before packaging. If application is started without trying to
build fat jar everything works properly. Liberty sees zipkin extension.
…On Wed, May 8, 2019, 16:51 Harry L. Hoots, III ***@***.***> wrote:
@doychin <https://github.com/doychin>
Thanks for that info!
Do you know what package "include" options were used in your pom file?
Assuming you might have used the default of 'all' but wanted to check
before digging deeper into the issue.
https://github.com/WASdev/ci.maven/blob/master/docs/package-server.md
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5881 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABWNBE2BNGV62NIKKVIJCPDPULLHNANCNFSM4GHEF2AQ>
.
|
Hi @doychin -- After some troubleshooting and talking with @scottkurz it looks like it is not the OL package command that is the causing the issue but a mismatch in the pom.xml between the userDirectory and the installDirectory. The user and install directories have to be aligned so that the extension you are installing is in the directory structure where the Liberty package command occurs. So what is happening is that the zipkin feature is being installed into the /liberty folder:
And the userDirectory and assemblyInstallDirectory (where the package happens) doesnt match:
The package command will only pickup things from the folder in which it is executed, thus with the extension in /liberty and the package happening on /wlp the /extensions folder is missing from the content.jar file. So the package seems to work as expected with these changes - please give them a try and see if they will work properly for your project (note the values all end in /liberty):
By the way, the copy-resources goal should also align with the user directory(which looks like it is correct in the /liberty folder):
|
Hi @doychin - any updates on that suggestions above for resolution? |
Hi Harry,
I've forwarded your comments to the author of the workshop project but
at the moment me and him we are busy with other things and can't look at
it right now.
I'll try to look at your suggestions next week.
…--
Doychin Bondzhev
|
Sounds good - Thanks! |
Hi Harry, |
We try to create uber jar for one war file and we use maven to do that
mvm package-server fails to include the additional extensions we add in the directory of the application where it is deployed before it is packaged into uber jar.
This is a behavior we see with open liberty 18.0.0.3
The text was updated successfully, but these errors were encountered: