testcontainers / testcontainers/testcontainers-java

org.testcontainers:postgresql artifact name clashes with org.postgresql:postgresql

Open
#1,917 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

resolution/acknowledged
Dominant language
Java
Stars
8.7k
Forks
1.9k
Avg merge
2d 17h
Merged PRs (30d)
9

Description

The artifact (and jar names) of the testcontainers postgres module and the postgres driver are the same. This prevents using these two together in a Java 9 project using the module system. Java infers the module name automatically from the name of the Jar file.

There is a fix for this described here: http://branchandbound.net/blog/java/2017/12/automatic-module-name/
Java allows setting an automatic module name in the Manifest.mf file of a library without modularizing the library itself.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Inspect the PostgreSQL module's artifact and JAR packaging configuration, then compare it with the automatic-module-name approach described in the linked article. Done means the Testcontainers PostgreSQL artifact can coexist with org.postgresql:postgresql in a Java 9 module-system project without a derived module-name clash.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.