This might be an easy task so I believe there should be something out there already. I'm trying to validate Maven related stuff like: artifact ID, group ID, Java package name, Version and a path.
Those are going to be provided from a NetBeans plug in in order to generate a maven project, thus need to be verified from the plugin before even attempting to create the project. (More friendly than letting the process blow up).
Right now I'm trying to verify with Java string checks but there should be something better like a regex.
Any ideas?
You can use maven's Model class and validate with their ModelValidator.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With