You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "David Jencks (JIRA)" <xm...@xml.apache.org> on 2005/03/11 19:25:54 UTC

[jira] Created: (XMLBEANS-124) XMLBeans 2 maven plugin

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


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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Reopened: (XMLBEANS-124) XMLBeans 2 maven plugin

Posted by "Jacob Danner (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-124?page=history ]
     
Jacob Danner reopened XMLBEANS-124:
-----------------------------------

     Assign To: Cezar Andrei

My Mistake. Re-opening. 

> 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, Version 2 Beta 1, Version 2 Beta 2
>  Attachments: 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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-124) XMLBeans 2 maven plugin

Posted by "David Jencks (JIRA)" <xm...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XMLBEANS-124?page=comments#action_12315893 ] 

David Jencks commented on XMLBEANS-124:
---------------------------------------

Thanks for taking this on at xmlbeans!  We are actually using this plugin in geronimo head right now (plugins/maven-xmlbeans2-plugin).  Please let me know what help I can provide.

The maven plugin does not use scomp.  I was not aware of the schema packaging into schemaorg_apache_xmlbeans/src.  Is there a reason you chose that rather than a more traditional metadata location inside META-INF?  It is easy enough to change the location, I'm just surprised.  I think it makes sense to have the maven and ant plugins use the same location, even though what they do is somewhat different.

> 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, maven-xmlbeans-plugin-src-1.0.4.zip, xmlbeans-maven-plugin-2.0-beta1.jar, xmlbeans-maven-plugin-src.jar, xmlbeans2-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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Updated: (XMLBEANS-124) XMLBeans 2 maven plugin

Posted by "David Jencks (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-124?page=all ]

David Jencks updated XMLBEANS-124:
----------------------------------

    Attachment: maven-xmlbeans2-plugin.jar

Updated version of xmlbeans2 maven 1 plugin.  New features:

New property for where the source schemas get copied in the generated jar: default value matches ant task.
maven.xmlbeans2.baseSchemaLocation=schemaorg_apache_xmlbeans/src

New property names to make it easier to set properties over a multiproject maven build:
maven.xmlbeans2.sourcedir=${basedir}/src/schema
maven.xmlbeans2.sourceschema= (this needs to be set per use)
maven.xmlbeans2.xmlconfigs=${basedir}/src/schema/xmlconfig.xml
maven.xmlbeans2.cataloglocation= (optional)
maven.xmlbeans2.targetdir=${basedir}/target/xmlbeans

marginally more documentation and some cruft removal.

> 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, maven-xmlbeans-plugin-src-1.0.4.zip, maven-xmlbeans2-plugin.jar, xmlbeans-maven-plugin-2.0-beta1.jar, xmlbeans-maven-plugin-src.jar, xmlbeans2-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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-124) XMLBeans 2 maven plugin

Posted by "Dan Diephouse (JIRA)" <xm...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XMLBEANS-124?page=comments#action_12315910 ] 

Dan Diephouse commented on XMLBEANS-124:
----------------------------------------

+1 on using the same location as doing otherwise would mess up things like XFire which expect the schemas in schemaorg_apache_xmlbeans/src

> 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, maven-xmlbeans-plugin-src-1.0.4.zip, xmlbeans-maven-plugin-2.0-beta1.jar, xmlbeans-maven-plugin-src.jar, xmlbeans2-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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-124) XMLBeans 2 maven plugin

Posted by "David Jencks (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-124?page=comments#action_60849 ]
     
David Jencks commented on XMLBEANS-124:
---------------------------------------

Perhaps you are confusing this with XMLBEANS-116?  This issue is not a bug, but a suggestion that xmlbeans should host a maven xmlbeans2 plugin, just as you have an ant task.  

> 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
>      Fix For: Version 2, Version 2 Beta 1, Version 2 Beta 2
>  Attachments: 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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Updated: (XMLBEANS-124) XMLBeans 2 maven plugin

Posted by "David Jencks (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-124?page=history ]

David Jencks updated XMLBEANS-124:
----------------------------------

    Attachment: xmlbeans-maven-plugin-2.0-beta1.jar

prebuilt plugin, ready for installation in maven.

> 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
>  Attachments: 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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-124) XMLBeans 2 maven plugin

Posted by "Radu Preotiuc-Pietro (JIRA)" <xm...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XMLBEANS-124?page=comments#action_12315855 ] 

Radu Preotiuc-Pietro commented on XMLBEANS-124:
-----------------------------------------------

Looks correct. I am surprised that you see them duplicated in the META_INF directory. Might that be an artifact of how you are compiling them?

To Daivd: Yes, I think ti would be a good idea to host it in XmlBeans, so let's consider the decision made. I will get on this ASAP, but I am a complete novice wrt Maven, so I'll need a little time to get up to speed.


> 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, maven-xmlbeans-plugin-src-1.0.4.zip, xmlbeans-maven-plugin-2.0-beta1.jar, xmlbeans-maven-plugin-src.jar, xmlbeans2-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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Resolved: (XMLBEANS-124) XMLBeans 2 maven plugin

Posted by "Jacob Danner (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-124?page=history ]
     
Jacob Danner resolved XMLBEANS-124:
-----------------------------------

     Resolution: Fixed
    Fix Version: Version 2 Beta 1
                 Version 2 Beta 2
                 Version 2

Cezar submitted a fix for this over the weekend 3/13/05. Does it meet your needs. Is xmlbeans now maven compatible?

> 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
>      Fix For: Version 2, Version 2 Beta 1, Version 2 Beta 2
>  Attachments: 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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Updated: (XMLBEANS-124) XMLBeans 2 maven plugin

Posted by "Tsolak Petrosian (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-124?page=all ]

Tsolak Petrosian updated XMLBEANS-124:
--------------------------------------

    Attachment: maven-xmlbeans-plugin-src-1.0.4.zip

> 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, maven-xmlbeans-plugin-src-1.0.4.zip, 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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Updated: (XMLBEANS-124) XMLBeans 2 maven plugin

Posted by "David Jencks (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-124?page=all ]

David Jencks updated XMLBEANS-124:
----------------------------------

    Attachment: xmlbeans2-plugin.src.jar

This is an improved version of the xmlbeans 2 maven 1 plugin.  The main difference is that this version packs the schemas it compiles into the target jar under META-INF and also can read them off the classpath using getResourceAsStream from META-INF/.  This can replace using the catalog resolver or bizarre file paths in multiproject maven builds.

I would like the xmlbeans team to decide whether to host this plugin or not, very soon.  If not, I would like to get this easily available from maven or another source.

> 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, maven-xmlbeans-plugin-src-1.0.4.zip, xmlbeans-maven-plugin-2.0-beta1.jar, xmlbeans-maven-plugin-src.jar, xmlbeans2-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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-124) XMLBeans 2 maven plugin

Posted by "Dan Diephouse (JIRA)" <xm...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XMLBEANS-124?page=comments#action_12315830 ] 

Dan Diephouse commented on XMLBEANS-124:
----------------------------------------

As I understand it the schemas are packaged by scomp into the directory schemaorg_apache_xmlbeans/src. Is there a reason you're duplicating them in the META_INF directory?

My code which is used to access the schemas...
SchemaType type = XmlBeans.typeForClass(xbeanType.getTypeClass());
String name = type.getSourceName();

ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
XmlObject obj = XmlObject.Factory.parse(classLoader.getResourceAsStream("schemaorg_apache_xmlbeans/src/" + name));
            

> 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, maven-xmlbeans-plugin-src-1.0.4.zip, xmlbeans-maven-plugin-2.0-beta1.jar, xmlbeans-maven-plugin-src.jar, xmlbeans2-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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Updated: (XMLBEANS-124) XMLBeans 2 maven plugin

Posted by "David Jencks (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-124?page=history ]

David Jencks updated XMLBEANS-124:
----------------------------------

    Attachment: xmlbeans-maven-plugin-src.jar

source for the plugin, in a jar file.

> 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
>  Attachments: 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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Updated: (XMLBEANS-124) XMLBeans 2 maven plugin

Posted by "Tsolak Petrosian (JIRA)" <xm...@xml.apache.org>.
     [ 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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org