-
Notifications
You must be signed in to change notification settings - Fork 10
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
Adding module-descriptors again. #42
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #42 +/- ##
=========================================
Coverage 89.34% 89.34%
Complexity 314 314
=========================================
Files 27 27
Lines 732 732
Branches 125 125
=========================================
Hits 654 654
Misses 47 47
Partials 31 31 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you.
@lscoughlin Is this acceptable now? |
The maven plugin you're using to generate the the module-info.java just doesn't work. |
Can you please point out what is the problem, as I need to keep this plugin to have the OSGi generated AFAIK. I decompiled the
Is this not correct? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't judge so much of this but I see it's bundle packaging and using maven-bundle-plugin so that looks good to me. If at some point there is a repo with the snapshot artifact I can have a look at that...
Snapshots are available here: https://oss.sonatype.org/content/repositories/snapshots |
@lscoughlin It does indeed seem to work. I took the time to create a super-simple sample project, and this seems to work just fine. I just added this to the sample project: module com.example.modularproject {
requires com.ethlo.time.itu;
} |
java -p [simpelproject.jar] --list-modules and see if your module is declared. |
When I go there, it just shows: I do have an account there and tried it when being logged in as well. Maybe the staging repo isn't visible or I need a longer URL for it? |
Sorry, i just gave you the base-path of the repo: https://oss.sonatype.org/content/repositories/snapshots/com/ethlo/time/itu/1.12.0-SNAPSHOT/ |
Thanks for bearing with me! I created https://github.com/ethlo/simple-modular-demo so we can compare notes and I have something reproducible. I tested with Output:
I do not try to make this difficult, but I would like to have something to evaluate and test this going forward. |
Something must of been wrong with my build then. :/ |
Could you pull the simple project and have a look that I have not done anything wrong? Could perhaps serve as a clean slate for evaluating this? Thank you. |
That should do it. If you have sample service have a static void main method so it's launch-able you can launch it after build with ( you'll have to copy the lib into ./target too, but you can do that with the mvn-dependencies:copy plugin ) From the sample project your specify the module name as different than you have in the past ( com.ethlo.time vs com.ethlo.time.itu ) and so you should see the issue depending ( required module missing ). networknt binds against the com.ethlo.time module name. |
The |
I added a main method if you want to run it, btw. I see it already builds fine on the the GitHub action (https://github.com/ethlo/simple-modular-demo/actions/runs/13291400617/job/37112862158) |
@lscoughlin I updated the sample project and made sure it works fine. Are these changes acceptable for a 1.12.0 release, from your perspective? |
Yup -- that's perfect. I just want to note that your previous module name was |
No description provided.