-
Notifications
You must be signed in to change notification settings - Fork 300

Description
Hi,
I was working with the CXF tutorials and noticed a few strange things: I'm reporting them below.
1) maven clean install only builds the SOAP one
corrado@powerdesk2:~/karaf/SRC/Karaf-Tutorial/cxf$ mj8 clean install [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] personservice-parent [INFO] personservice-model [INFO] personservice-server [INFO] personservice-proxy [INFO] personservice-webui [INFO] karaf-tutorial-cxf [INFO] ...
that's because only that module is listed in the CXF pom:
<modules> <module>personservice</module> </modules>
it should be like this, right?
<modules> <module>personservice</module> <module>personservice-rest</module> </modules>
2) there is a "proxy-rest" module in both the SOAP and the REST projects:
also notice:
- the contents (pom and blueprint) are the same
- neither of the two "proxy-rest" modules is used:
this is the SOAP pom:
<modules> <module>model</module> <module>server</module> <module>proxy</module> <module>webui</module> </modules>
this is the REST POM:
<modules> <module>model</module> <module>server</module> <module>webui</module> </modules>
the latter should be like this, right?
<modules> <module>model</module> <module>server</module> <module>proxy-rest</module> <module>webui</module> </modules>
I mean, at least for getting the REST one building correctly.
Indeed I could run the SOAP one OK, while the REST one failed:
personservice-rest - deploy-failure.txt
3) the CXF tutorial should be refactored
why having two different models, one for SOAP, one for REST?
it is ok to have two services, but they shall use same "Person" model, right?
the solution for this should be having a single "model" module at the "main CXF" level, right?
Let me know and I'll try to fix/refactor this
Thx
Corrado