You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Alexandre Porcelli <al...@gmail.com> on 2005/03/11 13:12:58 UTC

XMLBeans within Maven

Anyone can help me:

How to use XMLBeans 2 beta within Maven (using Maven 1.0.2 and JDK 5).

I trying to execute my old script and it can't execute.

        <property name="xbeanJarPath"
value="${pom.getDependencyPath('xmlbeans:xbean')}"/>
        <taskdef name="xmlbean"
classname="org.apache.xmlbeans.impl.tool.XMLBean"
classpath="${xbeanJarPath}"/>
        <xmlbean schema="/resource/schema"
destfile="my.xml-${pom.currentVersion}.jar"
classpath="${xbeanJarPath}"/>


Regards,
Alexandre Porcelli

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


Re: XMLBeans within Maven

Posted by David Jencks <da...@yahoo.com>.
I've modified the maven xmlbeans plugin I wrote for geronimo so it  
works with xmlbeans 2 and submitted it as an enhancement for xmlbeans  
2:

> http://issues.apache.org/jira/browse/XMLBEANS-124

I think this solves most of the issues reported when using xmlbeans 2  
with maven.  Please let me know if there are problems, additional  
features are needed, or you have ideas for improvement.  There are some  
brief instructions in INSTRUCTIONS.txt.

thanks
david jencks



On Mar 11, 2005, at 9:12 AM, Alexandre Porcelli wrote:

> All the time I get the folowing error:
>
> BUILD FAILED
> File...... /root/Test/maven.xml
> Element... xmlbean
> Line...... 18
> Column.... 140
> java.lang.NoClassDefFoundError: javax/xml/stream/XMLStreamException
> Total time: 6 seconds
> Finished at: Wed Aug 11 14:07:35 BRT 2004
>
> and My Task Definition is :
>
>         <property name="xbeanJarPath"
> value="${pom.getDependencyPath('xmlbeans:xbean')}"/>
>         <taskdef name="xmlbean"
> classname="org.apache.xmlbeans.impl.tool.XMLBean"
> classpath="${xbeanJarPath}"/>
>
>         <xmlbean javasource="1.5"
> destfile="${devexp.iam.home}/vendor/repository/devexp-iam/jars/ 
> devexp.iam.xml-${pom.currentVersion}.jar">
>           <ant:fileset dir="${devexp.iam.home}/resource/schema">
>             <ant:include name="*.xsd"/>
>           </ant:fileset>
>           <ant:classpathref><ant:path
> refid="maven.dependency.classpath"/></ant:classpathref>
>         </xmlbean>
>
> What is the problem?
>
>
> Regards,
> Alexandre Porcelli
>
> On Fri, 11 Mar 2005 15:12:43 +0100, Jorg Heymans <jh...@domek.be> wrote:
>> I reported this a while ago. Search the mailinglist for background on  
>> this.
>>
>> Alexandre Porcelli wrote:
>>> Anyone can help me:
>>>
>>> How to use XMLBeans 2 beta within Maven (using Maven 1.0.2 and JDK  
>>> 5).
>>>
>>> I trying to execute my old script and it can't execute.
>>>
>>>         <property name="xbeanJarPath"
>>> value="${pom.getDependencyPath('xmlbeans:xbean')}"/>
>>>         <taskdef name="xmlbean"
>>> classname="org.apache.xmlbeans.impl.tool.XMLBean"
>>> classpath="${xbeanJarPath}"/>
>>>         <xmlbean schema="/resource/schema"
>>> destfile="my.xml-${pom.currentVersion}.jar"
>>> classpath="${xbeanJarPath}"/>
>>>
>>>
>>> Regards,
>>> Alexandre Porcelli
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
>> For additional commands, e-mail: user-help@xmlbeans.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: user-help@xmlbeans.apache.org
>


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


Re: XMLBeans within Maven

Posted by Alexandre Porcelli <al...@gmail.com>.
All the time I get the folowing error:

BUILD FAILED
File...... /root/Test/maven.xml
Element... xmlbean
Line...... 18
Column.... 140
java.lang.NoClassDefFoundError: javax/xml/stream/XMLStreamException
Total time: 6 seconds
Finished at: Wed Aug 11 14:07:35 BRT 2004

and My Task Definition is :

        <property name="xbeanJarPath"
value="${pom.getDependencyPath('xmlbeans:xbean')}"/>
        <taskdef name="xmlbean"
classname="org.apache.xmlbeans.impl.tool.XMLBean"
classpath="${xbeanJarPath}"/>

        <xmlbean javasource="1.5"
destfile="${devexp.iam.home}/vendor/repository/devexp-iam/jars/devexp.iam.xml-${pom.currentVersion}.jar">
          <ant:fileset dir="${devexp.iam.home}/resource/schema">
            <ant:include name="*.xsd"/>
          </ant:fileset>
          <ant:classpathref><ant:path
refid="maven.dependency.classpath"/></ant:classpathref>
        </xmlbean>

What is the problem?


Regards,
Alexandre Porcelli

On Fri, 11 Mar 2005 15:12:43 +0100, Jorg Heymans <jh...@domek.be> wrote:
> I reported this a while ago. Search the mailinglist for background on this.
> 
> Alexandre Porcelli wrote:
> > Anyone can help me:
> >
> > How to use XMLBeans 2 beta within Maven (using Maven 1.0.2 and JDK 5).
> >
> > I trying to execute my old script and it can't execute.
> >
> >         <property name="xbeanJarPath"
> > value="${pom.getDependencyPath('xmlbeans:xbean')}"/>
> >         <taskdef name="xmlbean"
> > classname="org.apache.xmlbeans.impl.tool.XMLBean"
> > classpath="${xbeanJarPath}"/>
> >         <xmlbean schema="/resource/schema"
> > destfile="my.xml-${pom.currentVersion}.jar"
> > classpath="${xbeanJarPath}"/>
> >
> >
> > Regards,
> > Alexandre Porcelli
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: user-help@xmlbeans.apache.org
> 
>

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


Re: XMLBeans within Maven

Posted by Jorg Heymans <jh...@domek.be>.
I reported this a while ago. Search the mailinglist for background on this.

Alexandre Porcelli wrote:
> Anyone can help me:
> 
> How to use XMLBeans 2 beta within Maven (using Maven 1.0.2 and JDK 5).
> 
> I trying to execute my old script and it can't execute.
> 
>         <property name="xbeanJarPath"
> value="${pom.getDependencyPath('xmlbeans:xbean')}"/>
>         <taskdef name="xmlbean"
> classname="org.apache.xmlbeans.impl.tool.XMLBean"
> classpath="${xbeanJarPath}"/>
>         <xmlbean schema="/resource/schema"
> destfile="my.xml-${pom.currentVersion}.jar"
> classpath="${xbeanJarPath}"/>
> 
> 
> Regards,
> Alexandre Porcelli


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