-
Notifications
You must be signed in to change notification settings - Fork 19
Fix ModelloCli broken after moving from Plexus to JSR330 #435
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
Conversation
This version is now working for me and from my side, it is ready to get integrated. I don't know which kind of test to write for a command-line tool so that it does not regress any more. Please, advise. |
The latest version actually restores the possibility to instantiate directly the Modello class, since I see now that some Fedora tools in javapackages-bootstrap do it. So this version partially reverts commit 8804652 concerning the two files and adds the configuration including the autowiring and index scanning. Like that, stuff out there that was using Modello() constructor directly, will be able to use it from this commit on again. |
It would be good to have some test for this. Minimum that it can generate simple java files from a model. But for that, one needs basically the whole classpath including the plugins. |
This is running in openSUSE since and generates on command-line the correct Java files. Any chance to have it reviewed? |
Where is this standing? |
ping? |
I would really love to have at least this in 90352d3 |
or if I missunderstood something, I am fine with whichever that makes this work. In SUSE we anyway use jpackage_script to create the classpath for the modello script. |
I am just wondering whether one cannot just simply apply that one commit and then maybe shade artifacts, which means that I can unshade it in the package without having to patch the logic that relied on shade plugin? |
Yes, will see about that. Am not at desk, so you can do it as well (pr against branchin this pr), will see tomorrow. Or just wait until tomorrow and i will sort it out. |
Here are fedora tools that call the Modello constructor: |
Closing in favour of #452 |
This is my attempt at least to make the ModelloCli.java at least start and run. It still throws an exception on simple models. But at least the guice bindings look correct and the thing is at least starting and running.