-
Notifications
You must be signed in to change notification settings - Fork 47
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
some improvements... optional 😉 #55
Conversation
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.
Hi and thank you for your suggestions. At the moment I only have a few notes and one change request, but more may follow:
not everyone has Maven installed on the local machine
@Estrayl and I haven't decided whether to add the Maven wrapper yet. Personally, I think it's unnecessary, since all the major Java IDEs ship with Maven and I see no reason to support more exotic development environments.
that makes it possible to conquer all builds simultaneously
Do you mean the servers will build concurrently? Because the parent pom.xml already allows to build everything in one go as it is. Although this is not a feature we use. During development, the IDE takes care of tracking and updating changed classes, and for deployment we do individual builds, as you rarely need to update more than one server.
I'll test and see what practical benefits your changes bring when I find the time, as I haven't really done much with Maven modules yet.
I also have yet to test nightly.yml. Hopefully it has some kind of notification mechanism. If the reports have to be opened manually it is something that can go unnoticed for quite a while. We already have CodeQL, which notifies about vulnerabilities in dependencies, but it doesn't seem to be smart enough to detect them from transitive dependencies.
more to come. if you wish so 😉
Thanks again. We're always happy when someone decides to contribute instead of keeping improvements and fixes to themselves (which is very common in the Aion community 😄).
If you are unsure about future contributions, you can always discuss them beforehand on our Discord.
thanks for the remarks @neon-dev. I've regarding the nightly job; no, there is no notification in place. an alternative for that would be adding an OSSHR upload & report action. those exist. I preferred the manual check up until now. edit: oh, sorry. you spoke about IDE's, not distributions. lol |
ok, I do see that, "one command to rule them all" is not really an addon. but, using the individual builds are still possible. let me know what you think of it, once you tried it. I've now created my "personal cherries" branch, so the PR is more focused on single changes. |
b3a91b5
to
7f7f63e
Compare
this should do |
Hi, may I ask if this can solve the issue of inconsistent versions of "slf4j - API" in dependencies? |
Yes, I saw the PR regarding this issue and would like to ask by the way. |
Hey, sorry for the delay. @Estrayl and I have decided against the Maven wrapper, but the changes to the dependency management and global compiler parameters seem useful. Just a few last things before I can finally merge your pull request:
Thanks again! |
resolves [`CVE-2024-7254`](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-7254) being present in `com.mysql:mysql-connector-j:8.3.0`.
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.
@neon-dev I've taken your remarks into consideration. please note that I've moved the management of the plugins into the parent pom.xml
. I hope this is to your liking.
one thing regarding
- Feel free to remove the
showWarngings
anddebug
compiler configs from allpom.xml
's, as they are already true by default.
please note my comments.
and regarding
I have noticed that
mysql-connector-j:8.4.0
still depends on the vulnerableprotobuf
version, but9.2.0
fixes this problem and looks like a safe upgrade after initial testing and checking the changelog.
didn't notice it, and so didn't mvnrepository.com. but nice catch ❤️ I did the upgrade, sounds save based on the changelog.
During final testing I ran into one problem with this configuration.
Do you know how to solve this without installing the parent pom.xml (+servers) into the local Maven repo? If there is no other solution, adding this to each server's pom.xmls would at least stop them from being copied into the local Maven repo: <properties>
<maven.install.skip>true</maven.install.skip>
</properties> |
can you post the command you're using, please? or do you mean "in IDE" by clicking some "build Maven project" button? what works is (without previous I could commit this as a run configuration, if wished? for any IDE integration to work, you'd have to enable resolving of workspace artefacts. I don't not how to do that in other editors, tho. but that requires a previous |
Classic
Yes, because it is run with the parent pom.xml. The module syntax is fine for scripts, but I'd still like to retain the ability to run simple maven phases or goals on the individual module's pom.xmls without too many preconditions.
Thanks, but I don't think this should be necessary. If this can't be solved inside the pom.xmls in a better way, we should just add the skip property I mentioned earlier to the servers. That way |
sure thing; I can do that. |
Thanks a lot! |
hi there! huge thank you for open sourcing all your code. I've recently installed my own server on a raspberry pi for private usage. it works like a charm 💌
being a developer myself, I've some remarks on the project. mostly convenience things. I leave it up to you if you merge it all, cherry-pick single commits or don't care at all. this PR just is my way to say "thank you".
./mvnw package
. if you still want to build single packages, execute./mvnw package -pl :your-package
(as beforehand). note that this might need adaptions to thedeploy.yml
job, I am not entirely sure.CVE-2024-7254
being present incom.mysql:mysql-connector-j:8.3.0
. I preferrably don't want vulnerabilities in production code.more to come. if you wish so 😉