[ http://issues.apache.org/jira/browse/XMLBEANS-124?page=all ]
Tsolak Petrosian updated XMLBEANS-124: -------------------------------------- Attachment: maven-xmlbeans-plugin-1.0.4.jar Hey Guys, I took your XMLBeans plugin and updated it to work with version 1.0.4 (aslo added some support to use project.properties). Attached is plugin and coverage on its usage below. XmlBeans Maven Plugin This plugin will automatically generate XMLBean schema mapping files. Get the plugin from PVCS maven\plugins. To fully automate XMLBeans generation and bundling add the following preGoal to your maven.xml: <preGoal name="java:compile"> <attainGoal name="xbean"/> </preGoal> Goals: 1. xbean - generates XML bean related java, xsb and xsd files into maven.xmlbeans.targetdir directory. Properties: 1. maven.xmlbeans.sourcedir - XML schema (.xsd) source directory. Example ${basedir}/src/xsd. (REQUIRED) 2. maven.xmlbeans.targetdir - Target directory to put generated files. Example ${basedir}/target/classes. (REQUIRED) 3. maven.xmlbeans.sourceschema - Comma separated (no space allowed between commas) list of schema file names to process. * If omitted all files with .xsd extension will be proicessed. Example StbRequest.xsd,StbResponse.xsd (OPTIONAL) 4. maven.xmlbeans.xmlconfigs - Path to SchemCompiler configuration file. Example ${basedir}/vm_xsdconfig.xml (REQUIRED) Sample xmlconfigs file: <xb:config xmlns:xb="[WWW] http://www.bea.com/2002/09/xbean/config"> <xb:namespace uri="[WWW] http://www.echostar.com/vm/schema/StbRequest"> <xb:package>com.echostar.viewermeasure.xmlbeanwrapper</xb:package> </xb:namespace> <xb:namespace uri="[WWW] http://www.echostar.com/vm/schema/StbResponse"> <xb:package>com.echostar.viewermeasure.xmlbeanwrapper</xb:package> </xb:namespace> </xb:config> > XMLBeans 2 maven plugin > ----------------------- > > Key: XMLBEANS-124 > URL: http://issues.apache.org/jira/browse/XMLBEANS-124 > Project: XMLBeans > Type: New Feature > Versions: Version 2 Beta 1 > Reporter: David Jencks > Assignee: Cezar Andrei > Fix For: Version 2 Beta 1, Version 2, Version 2 Beta 2 > Attachments: maven-xmlbeans-plugin-1.0.4.jar, > xmlbeans-maven-plugin-2.0-beta1.jar, xmlbeans-maven-plugin-src.jar > > Maven plugin for xmlbeans 2.0 beta 1. I developed this for use in geronimo > and have changed the package to fit better into xmlbeans. See > INSTRUCTIONS.txt for basic usage instructions. I'm considering some > enhancements such as more use of plugin.properties for the plugin parameters. > Feedback welcome. I'm attaching both source and a built installable > version of the plugin. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]