I don't really know what are you trying to do with all those commits,
but think about this:

model -> just that model whatever it is
java -> depends on model, generates and compiles java
xsd ->  depends on model, generates xsd
wsdl ->  depends on model, generates wsdl
distribution -> packs everything together using assembly plugin

On 3/9/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Hi Caslos,
>
> Thanks for your feedback, my comments inline below:
>
> >-----Original Message-----
> >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> >Of ext Carlos Sanchez
>
> >When you say " a custom ant-based plugin " you mean an ant
> >script used from the antrun plugin?
>
> No, I created a real ant plugin, as described in this guide:
> http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html
>
> >Anyway if instead of generating them to target/generated,
> >which is usually used for generated java sources (not
> >resources), you generate them to target/classes, they will end
> >bundled in your jar.
>
> The problem is I cannot really control the generator. I can just invoke it, 
> and everything ends up in
>
> /xyz-spec-model/target/generated/xyz.xsd
> /xyz-spec-model/target/generated/xyz.wsdl
> /xyz-spec-model/target/generated/javax/.../*.java
>
> Besides, you have to license the tool, and not everybody who is interested in 
> the generated result, might want to license it, or set it up to run. So I 
> though about three projects, which can extract the generated files (java and 
> xml) and rebundle them:
>
> Project /some-tool-plugin
>   - the ant plugin
>
> Project /xyz-spec-model
>   - the model
>   - generates *.java, *.xsd, *.wsdl
>   - deploys the generated files to repository as xyz-spec-model.zip (HOWTO-1)
>
> Project /xyz-spec-java
>   - retrieves the java files from xyz-spec-model.zip (HOWTO-2)
>   - commits the changes to CVS repository (HOWTO-3)
>   - deploys xyz-spec-java-src.zip to repository (HOWTO-4)
>   - deploys xyz-spec-java-bin.jar to repository
>
> Project /xyz-spec-xsd
>   - extracts the XML Schema from xyz-spec-model.zip
>   - commits the changes to CVS repository
>   - deploys the schema to the repository on its own (feasible???, HOWTO-5)
>
> Project /xyz-spec-wsdl
>   - extracts the WSDL from xyz-spec-model.zip
>   - commits the changes to CVS repository
>   - add some BPL
>   - deplosy the WSDL/BPL to the repository on its own
>
> Instead of commiting the changes to CVS, also a remote deploy to a project on 
> www.java.net is ok. Whatever is easier.
>
> As you can see, there are a number of steps, which I don't know how to do 
> (HOWTO-1 to HOWTO-5), besides I'm even sure if I want it to be like that. 
> That's I was asking people who already have a lot of experience with maven, 
> how a project like this could be setup best. So all comments, also partial 
> solutions to one of the HOWTOs are very welcome!
>
> Kind Regards,
>  _         __                _  _
> //\ndreas.[|-bbert-[]/arroum(a)[|\|okia.com
>            `-        `
>    Andreas Ebbert-Karroum
>  Software Design Engineer - Nokia Networks Services / Middleware
>  phone: +49-211-94123928, fax: +49-211-9412-3838
>  Heltorfer Straße 1, 40472 Düsseldorf, Germany
>
> ----------------------------------------------------------------------
> This message is confidential. If you have received this message in error,
> please delete it from your system. You should not copy it for any purpose,
> or disclose its contents to any other person. Internet communications are
> not secure and therefore Nokia GmbH does not accept legal responsibility
> for the contents of this message as it has been transmitted over a public
> network. Thank you.
> Nokia GmbH, Nokia Networks is a German Company. Further information
> about the Company is available from its principal offices at
> Heltorferstrasse 1, D-40472, Düsseldorf, Germany and from the
> website at http://www.nokia.com/
> ----------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
                             -- The Princess Bride

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to