Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

current imq client maven coordinates #520

Closed
cachescrubber opened this issue May 27, 2020 · 19 comments
Closed

current imq client maven coordinates #520

cachescrubber opened this issue May 27, 2020 · 19 comments
Milestone

Comments

@cachescrubber
Copy link

Sorry If this is a duplicate or RTFM but I could not find a current maven release for the openmq jms client. I use the following maven coordinates to pull in the openmq imq client 5.1 which dates back to 2014. mq-distribution seems under active development with regular releases.

      <dependency>
        <groupId>org.glassfish.mq</groupId>
        <artifactId>imq</artifactId>
        <version>5.1</version>
      </dependency>

What are the current maven coordinates for the imq client?

@pdenis1
Copy link

pdenis1 commented Aug 24, 2021

bump

I can't seem to find version 6.0 in maven either. I've tried using org.glassfish.imq:imq:6.0 and also org.glassfish.mq:mq-distribution:6.0. I tried it like this also

implementation ("org.glassfish.mq:mq-distribution:6.0.0@pom") {
    transitive = true
}

but that only pulls down the pom file and no jar artifacts. Is it possible to include the mq client library in a gradle build or does it require some custom maven plugins? I'm using pure gradle and mavenCentral for dependencies .. not using maven plugins.

@pzygielo
Copy link
Contributor

Currently only org.glassfish.mq:mq-distribution:6.2.0@zip is published to Central.

@bvfalcon
Copy link

Please publish into Maven Central or Jakarta Sonatype other dependencies. Very useful are mq-broker, mqjmsra-ra and many others.

@pzygielo
Copy link
Contributor

SNAPSHOTs from current master (b7e2589) of mq-broker, mqjmsra-ra and many others are now available at https://jakarta.oss.sonatype.org/content/repositories/snapshots/org/glassfish/mq.
They are not deployed continuously as for now.
They are not deployed in release job as for now.

Please test.

@bvfalcon
Copy link

bvfalcon commented Sep 23, 2022

SNAPSHOTs ... are available at ...

Thanks a lot, this very helpful. I need release dependencies and have already found appropriated solution: Github Packages can be used as Maven repository.

But of course mq-distribution with zip-type artifact absolutely not enough. For example, I want to write test-module for Apache Camel using Open MQ instead of Active MQ. How can I do this with only zip-artifact?
This is only one case, where Open MQ subsystems as maven dependencies can be used. They can be dozen for 10 minutes invented.

@mheydem
Copy link
Contributor

mheydem commented Dec 16, 2022

My project depends on the imq.jar.
Currently I see the following ugly workarounds:

  • Extract the imq.jar from mq-distribution.zip
  • Copy the imq.jar from the corresponding glassfish distribution

and

  • put store the imq.jar directy in my project
  • deploy the imq.jar into local m2 repository (maven coordiantes as it was done for 5.1)

Nobody can use the mq-distribution zip artifact directly.
Please publish the release artifacts.

@pzygielo
Copy link
Contributor

@mheydem - can you help and confirm that currently published artifacts (as snapshots so far, #520 (comment)) are usable in your project?

@pzygielo
Copy link
Contributor

There is no plan to publish re-packaged lib/*.jars from distribution manually, so (most probably) there will be no org.glassfish.mq:imq anyway. Only existing maven modules.

@mheydem
Copy link
Contributor

mheydem commented Dec 16, 2022

Thank you for explaining how the OpenMQ artifacts should be used.
The mq-client artifact looks like it could be the right dependency.
I replaced the dependency on imq with mq-client for testing purpose.

Unfortunately this can not be tested with my project, because it is based on:

  • Glassfish 6.0.0 (OpenMQ 6.1)
  • Jakarta 9.0
  • Java SE 8

The OpenMQ 6.4.0-SNAPSHOT artifacts currently

  • don't fit together in minor version (6.4 <-> 6.1)
  • is incompatible in class file version (class file has wrong version 55.0, should be 52.0)

As soon as my project is sufficiently advanced in the migration with Jakarta and Java SE, this can be tested again.

@cachescrubber
Copy link
Author

cachescrubber commented Dec 16, 2022

I just migrated my custom openmq-spring-boot-starter using the mq-client dependency.

Repository Setup

<repository>
  <id>jakarta-snapshots</id>
  <name>jakarta-snapshots</name>
  <url>https://jakarta.oss.sonatype.org/content/repositories/snapshots</url>
  <snapshots>
    <enabled>true</enabled>
  </snapshots>
  <releases>
    <enabled>false</enabled>
  </releases>
</repository>

Dependency Management

<dependency>
    <groupId>org.glassfish.mq</groupId>
    <artifactId>mq-client</artifactId>
    <version>6.4.0-SNAPSHOT</version>
</dependency>

Code compiles against spring-boot-3.0.0 parent / jdk17. I have yet to test a real JMS connection.

@pzygielo pzygielo added this to the 6.4.0 milestone Dec 16, 2022
@cachescrubber
Copy link
Author

Code compiles against spring-boot-3.0.0 parent / jdk17. I have yet to test a real JMS connection.

I can connect against a server running mq-5.1.

@grmblfrz
Copy link

Is there any chance of putting the current releases (6.0.0, 6.1.0, ... 6.3.0) or at least the latest mq-client to maven central? Snapshots are working for development but not really acceptable for releases imho.

@cachescrubber
Copy link
Author

Hi @pzygielo.

Is there a release date planned for 6.4.0?

@arjantijms
Copy link
Contributor

It's probably a good time for us to release a new version. There's quite an amount of changes between 6.3.0 and master:

What's Changed

@pzygielo
Copy link
Contributor

pzygielo commented Feb 8, 2023

I do agree that this might be time for 6.4.0.

I'd like to have this very one (more components in central) delivered too, but it requires updates on the Jenkins side. I can look at it probably in next week.

@pzygielo
Copy link
Contributor

6.4.0-M1 is now staged for testing. This will not be pushed to central, but the final 6.4.0 will be very similar (if no issue is reported by the next Friday Feb 17th).

https://jakarta.oss.sonatype.org/content/repositories/staging/org/glassfish/mq/mq-client/6.4.0-M1/

@cachescrubber
Copy link
Author

Thanks @pzygielo - I'll give it a try early next week.

@pzygielo
Copy link
Contributor

Feel free to reply to https://www.eclipse.org/lists/openmq-dev/msg00240.html.

@cachescrubber
Copy link
Author

  • Access of the M1 via the Jakarta-staging repo is working for me.
  • Code compiles against spring-boot-3.0.2 parent / jdk17.
  • I can connect against a server running mq-5.1.
    LGTM

@pzygielo pzygielo closed this as completed Mar 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants