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

generating an archive containing dependencies #3

Open
psagne opened this issue Aug 21, 2018 · 1 comment
Open

generating an archive containing dependencies #3

psagne opened this issue Aug 21, 2018 · 1 comment

Comments

@psagne
Copy link

psagne commented Aug 21, 2018

Hi,

an improvement of your maven script could be to use a custom assembly to generate an archive containing idp-authn-jwt jar and its dependencies, with an assembly.xml file like this :

<id>assembly</id>
<formats>
    <format>tar.gz</format>
</formats>

<dependencySets>
    <dependencySet>
        <outputDirectory>/</outputDirectory>
        <useProjectArtifact>true</useProjectArtifact>
        <scope>runtime</scope>
        <includes>
            <include>*:nimbus-jose-jwt:*</include>
            <include>*:json-smart:*</include>
            <include>*:jcip-annotations:*</include>
            <include>*:bcpkix-jdk15on:*</include>
        </includes>
    </dependencySet>
</dependencySets>

<files>
    <file>
        <source>${project.build.directory}/${project.artifactId}-${project.version}.jar</source>
    </file>
</files>
@gueuselambix
Copy link
Contributor

Thanks for your input. I am not familiar with maven assembly plugin, but I will take a look at it.

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

No branches or pull requests

2 participants