cloudevents / sdk-java

Java SDK for CloudEvents
https://cloudevents.github.io/sdk-java/
Apache License 2.0
400 stars 160 forks source link

Error assembling JAR: Invalid automatic module name: '' #638

Closed Jummartinezro closed 4 months ago

Jummartinezro commented 5 months ago

Im' running with the following setup:

PS sdk-java> java -version
openjdk version "11.0.23" 2024-04-16 LTS
OpenJDK Runtime Environment Microsoft-9394293 (build 11.0.23+9-LTS)
OpenJDK 64-Bit Server VM Microsoft-9394293 (build 11.0.23+9-LTS, mixed mode, sharing)
PS sdk-java> mvn --version
Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)
Maven home: C:\Program Files\apache-maven-3.9.6
Java version: 11.0.23, vendor: Microsoft, runtime: C:\Program Files\Microsoft\jdk-11.0.23.9-hotspot
Default locale: fr_FR, platform encoding: Cp1252
OS name: "windows 11", version: "10.0", arch: "amd64", family: "windows"
PS sdk-java>

While doing a mvn package, I have the following error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:3.3.0:jar (default-jar) on project cloudevents-http-restful-ws-integration-tests-common: Error assembling JAR: Invalid automatic module name: '' -> [Help 1]

The same happens when I'm trying to package other modules (Like cloudevents-kafka-example)

pierDipi commented 4 months ago

Fixed by https://github.com/cloudevents/sdk-java/pull/639