Don,
It worked this time, thanks.
I do not understand why the binding-file-name would be relative to src. Is
it a bug?
Abhijit
On Thu, Aug 11, 2011 at 10:30 PM, Don Corley <d...@donandann.com> wrote:
> Abhijit,
>
> You're right, the binding option requires a path relative to the source
> directory.
>
> Just change your option as follows:
>
> <options>
> <b>../config/agreementservice-client-binding.xml</b>
> </options>
>
> I believe <b> and <binding-file-name> are the same option. You should use
> only one of them.
>
> Don
>
> Message: 3
>> Date: Thu, 11 Aug 2011 20:09:43 -0400
>> From: Abhijit Sarkar <forumsplusbl...@gmail.com>
>> Subject: Re: [jibx-users] [schema-codegen] Is it possible to generate
>> source and binding files in separate directories?
>> To: JiBX users <jibx-users@lists.sourceforge.net>
>> Message-ID:
>> <CAJOO2V9d1Dv-inWQ=VKZv0Ut6eak-ZfQaMQb26R=
>> vgmq0+a...@mail.gmail.com>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>> Don,
>> The only reason I am generating in src is because I am using these
>> generated
>> classes for marshaling/unmarshaling. The codegen is an one time process
>> and
>> I am keeping the classes.
>> That being said, it did not work as you suggested. It's trying to prepend
>> sourceDirectory before <b>.
>>
>> [ERROR] Failed to execute goal
>> org.jibx:jibx-maven-plugin:1.2.3:schema-codegen
>> (agreementservice-schema-codegen) on project webservices-client:
>> <removed>/src/main/java/src/main/config/ecif-agreementservice (No such
>> file
>> or directory) -> [Help 1]
>> [ERROR]
>>
>>
>> <configuration>
>> <verbose>true</verbose>
>>
>> <schemaLocation>src/main/config/ecif-agreementservice</schemaLocation>
>>
>> <schemaBindingDirectory>${build.sourceDirectory}</schemaBindingDirectory>
>> <includeSchemas>
>> <includeSchema>*.*</includeSchema>
>> </includeSchemas>
>> <excludeSchemas>
>> <excludeSchema>*.wsdl</excludeSchema>
>> </excludeSchemas>
>>
>> <defaultPackage>agreementservice.client.types</defaultPackage>
>> <options>
>>
>> <package>ecif.agreementservice.client.types</package>
>> <show-schema>false</show-schema>
>> <generate-all>true</generate-all>
>>
>> <b>src/main/config/ecif-agreementservice</b>
>>
>> <binding-file-name>agreementservice-client-binding.xml</binding-file-name>
>> </options>
>> </configuration>
>>
>> On Thu, Aug 11, 2011 at 7:16 PM, Don Corley <d...@donandann.com> wrote:
>>
>> > Abhijit,
>> >
>> > I assume from your directory names that you are using the maven plugin.
>> >
>> > It is considered bad practice in maven to generate files under the 'src'
>> > directory. Typically, since they are generated every time you build, you
>> > would want both the source and binding files generated somewhere under
>> the
>> > 'target' directory.
>> >
>> > Now that you have my recommendation, the answer to your question is:
>> Yes,
>> > you may generate the source and binding files in different directories.
>> >
>> > I did not include a parameter for a separate binding file directory in
>> the
>> > maven plugin, but I did include a way to add any of the raw code gen
>> > parameters. All you need to do is include the '-b' parameter to codegen
>> by
>> > adding the following to your maven configuration section:
>> >
>> > <configuration>
>> > <*schemaBindingDirectory*>src/main/java</*schemaBindingDirectory*>
>> > <options>
>> > <b>src/main/config</b>
>> > <options>
>> > </configuration>
>> >
>> > Again, I highly recommend against using this directory structure. You
>> might
>> > want to look at some of the examples (in our source control repository)
>> and
>> > read the maven plugin and source gen documentation.
>> >
>> > Cheers!
>> >
>> > Don
>> >
>> >
>> >> Message: 2
>> >> Date: Wed, 10 Aug 2011 20:14:07 -0400
>> >> From: "Abhijit Sarkar" <forumsplusbl...@gmail.com>
>> >> Subject: Re: [jibx-users] [schema-codegen] Is it possible to generate
>> >> source and binding files in separate directories?
>> >> To: "'JiBX users'" <jibx-users@lists.sourceforge.net>
>> >> Message-ID: <000001cc57bb$973cb220$c5b61660$@com>
>> >> Content-Type: text/plain; charset="us-ascii"
>> >>
>> >> Someone please advise.
>> >>
>> >>
>> >>
>> >> From: Abhijit Sarkar [mailto:forumsplusbl...@gmail.com]
>> >> Sent: Tuesday, August 09, 2011 5:40 PM
>> >> To: 'JiBX users'
>> >> Subject: [schema-codegen] Is it possible to generate source and binding
>> >> files in separate directories?
>> >>
>> >>
>> >>
>> >> Hi,
>> >>
>> >> I was wondering if it is possible to generate source and binding files
>> in
>> >> separate directories during codegen? I wanted the sources to be under
>> >> src/main/java and binding files under src/main/config.
>> >>
>> >>
>> >>
>> >> Regards,
>> >>
>> >> Abhijit
>> >>
>> >>
>> >
>> >
>> ------------------------------------------------------------------------------
>> > Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
>> > user administration capabilities and model configuration. Take
>> > the hassle out of deploying and managing Subversion and the
>> > tools developers use with it.
>> > http://p.sf.net/sfu/wandisco-dev2dev
>> > _______________________________________________
>> > jibx-users mailing list
>> > jibx-users@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/jibx-users
>> >
>> >
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>>
>> ------------------------------
>>
>>
>> ------------------------------------------------------------------------------
>> Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
>> user administration capabilities and model configuration. Take
>> the hassle out of deploying and managing Subversion and the
>> tools developers use with it.
>> http://p.sf.net/sfu/wandisco-dev2dev
>>
>> ------------------------------
>>
>> _______________________________________________
>> jibx-users mailing list
>> jibx-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jibx-users
>>
>>
>> End of jibx-users Digest, Vol 63, Issue 4
>> *****************************************
>>
>
>
>
> ------------------------------------------------------------------------------
> Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
> user administration capabilities and model configuration. Take
> the hassle out of deploying and managing Subversion and the
> tools developers use with it.
> http://p.sf.net/sfu/wandisco-dev2dev
> _______________________________________________
> jibx-users mailing list
> jibx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jibx-users
>
>
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
user administration capabilities and model configuration. Take
the hassle out of deploying and managing Subversion and the
tools developers use with it.
http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users