Skip to content
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

Integrate with Capsule packaging tool #38

Open
shamoh opened this issue Oct 7, 2016 · 10 comments
Open

Integrate with Capsule packaging tool #38

shamoh opened this issue Oct 7, 2016 · 10 comments
Assignees
Labels

Comments

@shamoh
Copy link
Collaborator

shamoh commented Oct 7, 2016

Parallel Universe' Capsule (http://www.capsule.io/) is an open-source packaging and deployment tool for JVM applications.

IMO Capsule packaging is better than common fat jar created by Maven Shade plugin. Capsule provides nested jar, there are no file name conflicts, no need to merge same files into single one.

@johnament
Copy link
Member

@shamoh did you mean to include this in examples? Or documentation perhaps? The only shaded output is

  • dist-micrprofile
  • util-cxf

the CXF one is because of an issue specifically with running CXF in uber-jars. microprofile is specifically to simplify the coordinates.

@shamoh
Copy link
Collaborator Author

shamoh commented Oct 16, 2016

@johnament Yes, example should work. And I believe it could fix CXF uber-jar issue.

@shamoh shamoh self-assigned this Dec 25, 2016
@johnament
Copy link
Member

BTW, I've since dropped util-cxf since the packaging is on the user. It also turns out you can run hammock using spring boot maven plugin. I'm planning to put together documentation around that.

@shamoh
Copy link
Collaborator Author

shamoh commented Dec 30, 2016

OK, I'm now working on an example and a blog post about Hammock and Capsule using together. If possible it would be great to be moved to hammock-examples repo.

@johnament
Copy link
Member

Ok, I've sent you a contributor link. There's also this wiki page: https://github.com/hammock-project/hammock/wiki/PackagingUsingCapsule

@shamoh
Copy link
Collaborator Author

shamoh commented Dec 30, 2016

Maybe you could also mention executions part of plugin configuration, e.g.:

<executions>
    <execution>
        <goals>
            <goal>build</goal>
        </goals>
    </execution>
</executions>

And my must say I have different experience with capsule size. For me capsule jar is little bit smaller than shaded one. I don't know reason, maybe version of JDK.

@shamoh
Copy link
Collaborator Author

shamoh commented Dec 30, 2016

Example app is prepared (https://github.com/shamoh/hammock-capsule) but blog post will be done next year. :(
Let me know if you see there any mistakes. Thanks.

@johnament
Copy link
Member

Looks good. Would it make sense to be able to execute the example as a test? That's my aim for the next round of updates to the examples. Also, I'd be happy to include it in the examples repo if you want to commit there. But up to you. Thanks for picking this up!

@johnament
Copy link
Member

oh and RE the build size, are you using normal packaging? or their delayed auto install feature?

@shamoh
Copy link
Collaborator Author

shamoh commented Jan 2, 2017

Sure, I'll provide test.

What do you mean by "normal packaging" or "auto install feature"? I don't see context. Please, try to build my example and compare size. For me the hammock-capsule-0.1-SNAPSHOT-capsule.jar has 10MB. (Maven 3.3.9, Java 1.8.0_112)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants