Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.
This repository was 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

Description

@scottkurz

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions