> -----Original Message-----
> From: Pilgrim, Peter
> Sent: 01 November 2006 17:46
> To: 'Maven Users List'
> Subject: [m2] XMLBeans Plugin
>
>
> Maven 2 XMLBean Plugin
> http://mojo.codehaus.org/xmlbeans-maven-plugin/index.html
>
> I am trying to get the plugin to generate the java classes
> from XSD files in the same way as the `scomp' program.
>
> I stored the schema in the `src/main/xsd' folder.
> Is the command `mvn xmlbeans:xmlbeans' suppose to execute the
> scomp program?
I think the plugin is doing the functional equivalent of the
schema compile (scomp) when I grokked the verbose flag.
>
> I want to configure the plugin to use the same directory for
> the xsd and xsdconfig.
>
> For example
>
> src/main/xsd/magic/numbers/ipod.xsd
> src/main/xsd/magic/numbers/ipod.xsdconfig
>
> We find it convenient to have the .xsd and .xsdconfig in the
> same folders.
> How do you configure this?
>
Don't worry it is easier to run with the flow. So I moved a few
the xsdconfigs to the src/main/xsdconfig directory instead.
I am trying to understand the outputJar parameter. I want
to generate an XmlBean JAR that I can stuff into the M2 Repository.
1) xmlbeans does not seem to generate the jar (e.b. mvn
xmlbeans:xmlbeans)
How do I product it?
2) If I can generate the XMLBean Jar, do I use the install plugin
to load into the repository or can the xmlbean-plugin do it all for me?
<build>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>xmlbeans-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>xmlbeans</goal>
</goals>
</execution>
</executions>
<inherited>true</inherited>
<configuration>
<memoryInitialSize>32m</memoryInitialSize>
<memoryMaximumSize>64m</memoryMaximumSize>
<outputJar>valuationSchema-0.4.jar</outputJar>
<schemaDirectory>src/main/xsd</schemaDirectory>
<verbose>true</verbose>
</configuration>
</plugin>
</plugins>
</build>
Getting there
--
Peter Pilgrim
UBS Investment Bank,
PTS Portal / IT FIRC OPS LDN,
100 Liverpool Street, London EC2M 2RH, United Kingdom
+44 (0) 20 75 75692
:: Java EE / E-Commerce / Enterprise Integration / Development ::
Visit our website at http://www.ubs.com
This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
should not disseminate, distribute or copy this e-mail. Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses. The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission. If
verification is required please request a hard-copy version. This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]