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

Maven Central Artifacts #9

Open
dpishchukhin opened this issue Nov 16, 2016 · 8 comments
Open

Maven Central Artifacts #9

dpishchukhin opened this issue Nov 16, 2016 · 8 comments

Comments

@dpishchukhin
Copy link

dpishchukhin commented Nov 16, 2016

I'd be great to see KF artifacts in Maven Central Repo. Discussion started in #6

@dpishchukhin
Copy link
Author

So for a bundle that hasn't changed between KF4, KF5 and KF6 the bundle version is the same, but potentially compiled for different JDK versions.

@chlarsson But they have different osgi.ee requirements and have to have different versions.

@chlarsson
Copy link
Contributor

We have regarded this as compiling a C/C++ program for 32 or 64 bit, or ARM vs X86. The version is the same though.

@dpishchukhin
Copy link
Author

Cannot you use fragment bundles for native libs?

@chlarsson
Copy link
Contributor

I think you misunderstood. There's no native code / native libs, it was only a comparison. I.e. you normally don't change the version of a C-lib when you recompile it for X86_64. We have used the same philosophy in KF. I.e. we haven't changed the version of the bundle when changing JDK, it's just a recompilation. The distribution has then traditionally been as one complete versioned SDK with all bundles together. We have used this approach since 2003 (I don't think maven was around at that time). Anyway, this makes us not the ideal maven citizen and we are now looking at how to improve that.

@dpishchukhin
Copy link
Author

let me try to understand: you have bundles, for example, useradmin implementation that is compiled with JDK from 4 to 8 and all these artifacts have the same BSN and version, don't they? Only one difference from OSGi side - different osgi.ee requirement.

@chlarsson
Copy link
Contributor

Yes, that's correct.

@dpishchukhin
Copy link
Author

In this case, Maven classifier suits very well.

e.g.

  • org.knopflerfish/useradmin/1.0/jdk1.4
  • org.knopflerfish/useradmin/1.0/jdk1.5
  • etc.

@laeubi
Copy link

laeubi commented Jan 12, 2023

I would like to see the KF artifacts at maven central as well, and like to add the following aspect to the discussion:

Even though it is often the case, there is no requirement for a maven artifact to match its bundle versions, so it would be perfectly fine to deploy the KF5 artifacts under the maven version 5.0.0 and the KF6 ones as maven version 6.0.0 even if their bundle versions are the same!

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

3 participants