Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

java-openliberty stack - kafka template - use provided dependencies & library locations for layering #796

Open
scottkurz opened this issue May 1, 2020 · 0 comments
Labels
stack/java-openliberty Issues related to java-openliberty stack

Comments

@scottkurz
Copy link
Contributor

The kafka template in java-openliberty uses dependencies:

        <dependency>
            <groupId>org.apache.kafka</groupId>
            <artifactId>kafka-clients</artifactId>
            <version>2.3.0</version>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-log4j12</artifactId>
            <version>1.7.25</version>
        </dependency>

As compile dependencies, these will get packaged up into the app WAR. A better approach from a Docker layering perspective would be to change these to 'provided' dependencies and then reference these via a library in server config. This would require some work to copy the dependencies over into the appropriate target server dir during the maven build, e.g. as in the sample POM here.

@scottkurz scottkurz added the stack/java-openliberty Issues related to java-openliberty stack label May 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
stack/java-openliberty Issues related to java-openliberty stack
Projects
None yet
Development

No branches or pull requests

1 participant