-
1. Re: switchyard-maven-plugin questions
trohovsky Feb 13, 2014 9:35 AM (in response to bbuterbrott)Hi Denis,
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.
-
2. Re: switchyard-maven-plugin questions
bbuterbrott Feb 13, 2014 1:23 PM (in response to trohovsky)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.
-
3. Re: switchyard-maven-plugin questions
trohovsky Feb 17, 2014 4:09 AM (in response to bbuterbrott)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.
-
4. Re: switchyard-maven-plugin questions
bbuterbrott Feb 18, 2014 12:10 PM (in response to trohovsky)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.
-
5. Re: switchyard-maven-plugin questions
kcbabo Feb 18, 2014 1:46 PM (in response to bbuterbrott)1 of 1 people found this helpfulHave you unchecked the "Honour all schema locations" checkbox in your IDE? Details available on the top of the tooling install guide:
Installing Eclipse Tooling - SwitchYard - Project Documentation Editor
-
6. Re: switchyard-maven-plugin questions
bbuterbrott Feb 18, 2014 1:49 PM (in response to kcbabo)Ehm, nope.
Thanks for pointing this out, I will try this tomorrow!
-
7. Re: switchyard-maven-plugin questions
bbuterbrott Feb 19, 2014 6:49 AM (in response to bbuterbrott)Thanks, Keith, it really helped! I think when I was installing this tooling, there were no such details on validation.