HiveMQ

Maven dependencies not correctly pulled

I have added the jitpack repo as well as the dependency to my POM file. When looking at the transitive dependencies, there are none displayed for the embedded HiveMQ and when starting, there is a ClassNotFoundException for some OSHI class. Is this a known issue with runtime dependencies? Is there a fix?

Found something in the logs:

[WARNING] The POM for com.github.hivemq.hivemq-community-edition:hivemq-community-edition-embedded:jar:master-db9a2a417a-1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details

Same problem when I clear my .m2 folder, change the version to a specific commit hash and re-download all.

Hi @fbeister
master-SNAPSHOT currently only works with gradle, maven seems to be too strict with the pom.xml.
Please try out the version improvement~dependencies-SNAPSHOT. This will solve the issue with maven.
We will merge this soon into master.

<dependency>
    <groupId>com.github.hivemq.hivemq-community-edition</groupId>
    <artifactId>hivemq-community-edition-embedded</artifactId>
    <version>improvement~dependencies-SNAPSHOT</version>
</dependency>

Thanks, @SgtSilvio - I also just now found the additional log messages. Adding them for completeness:

[ERROR] 'dependencies.dependency.version' for net.java.dev.jna:jna:jar is missing. @ 
[ERROR] 'dependencies.dependency.version' for javax.inject:javax.inject:jar is missing. @ 
[ERROR] 'dependencies.dependency.version' for com.google.code.findbugs:jsr305:jar is missing. 

@fbeister
The PR has been merged into master:


You can now use master-SNAPSHOT again with maven.
2 Likes