1. the SwitchYard maven plugin is used for:
- validation of the switchyard.xml configuration
- generation of Transformers, it generates <transform.java> for every method annotated with "@Transformer" and adds the definition to the switchyard.xml
- generation of Validators, it generates <validate.java> for every method annotated with "@Validator" and adds the definition to the switchyard.xml
2., 3 I am not the right person to answer. But just try to use SwitcYard with jdk7, it should work.
4. I think the build can work without the plugin, but then you have to define all validators and transformers by your own in case that you are using them. Moreover the switchyard.xml would not be validated.
Thanks for your answers!
If I try to use jdk7 with swithchyard, setting compile level to 1.7 and jdk to 1.7 in classpath, it is getting reset to 1.6 once I refresh Maven project using (Alt+F5). If I remove the definition of switchyard plugin it works as it should (jdk7 is not being reset).
Concerning validation of switchyard.xml, it is not helpful at all for me, because switchyard.xml is full of validation errors, but it is still correct from the switchyard point of view. When I used older versions of switchyard designer (I update as soon as I see an update) I had errors only when I used custom bindings (written by myself). So lack of validation wouldn't be a problem at all.
The problem with validation errors can be caused by the bug: https://bugzilla.redhat.com/show_bug.cgi?id=1043425 Just make the switchyard namespace as default (remove "swyd" prefix) and everything should be fine.
Well, that's not the cause in our case. Validation errors are all pointing to sca:interface.java tags, saying that there is no such tag.
1 of 1 people found this helpful
Have you unchecked the "Honour all schema locations" checkbox in your IDE? Details available on the top of the tooling install guide:
Thanks for pointing this out, I will try this tomorrow!
Thanks, Keith, it really helped! I think when I was installing this tooling, there were no such details on validation.