You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jack Tang <hi...@gmail.com> on 2004/09/17 15:55:57 UTC
Maven scm plugin
Hi Guys
I use maven to check project hosted in cvs. The command is:
maven scm:checkout-project -Dmaven.scm.method=cvs
-Dmaven.scm.cvs.module=jakarta-commons/jexl
-Dmaven.scm.cvs.root=:pserver:anoncvs@cvs.apache.org:/home/cvspublic
-Dmaven.scm.checkout.dir=.
But I get the failed result:
BUILD FAILED
File...... C:\Documents and Settings\Administrator\.maven\cache\maven-scm-plugin
-1.4.1\plugin.jelly
Element... ant:cvs
Line...... 245
Column.... 9
java.io.IOException: CreateProcess: cvs -d:pserver:anoncvs@cvs.apache.org:/home/
cvspublic -q checkout -P jakarta-commons/jexl error=2
Total time: 14 seconds
Finished at: Fri Sep 17 21:42:46 CST 2004
What should I to archive the correct result?
Thanks
/Jack
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven scm plugin
Posted by Jack Tang <hi...@gmail.com>.
Thanks, Emmanuel.
I got detail answer here http://ant.apache.org/manual/CoreTasks/cvs.html.
Regards
/Jack
On Fri, 17 Sep 2004 16:03:28 +0200, Emmanuel Venisse
<em...@venisse.net> wrote:
> cvs is in your path?
>
> Emmanuel
>
>
>
> ----- Original Message -----
> From: "Jack Tang" <hi...@gmail.com>
> To: "Maven Users List" <us...@maven.apache.org>
> Sent: Friday, September 17, 2004 3:55 PM
> Subject: Maven scm plugin
>
> > Hi Guys
> >
> > I use maven to check project hosted in cvs. The command is:
> > maven scm:checkout-project -Dmaven.scm.method=cvs
> > -Dmaven.scm.cvs.module=jakarta-commons/jexl
> >
> > -Dmaven.scm.cvs.root=:pserver:anoncvs@cvs.apache.org:/home/cvspublic
> > -Dmaven.scm.checkout.dir=.
> >
> > But I get the failed result:
> >
> > BUILD FAILED
> > File...... C:\Documents and
> Settings\Administrator\.maven\cache\maven-scm-plugin
> > -1.4.1\plugin.jelly
> > Element... ant:cvs
> > Line...... 245
> > Column.... 9
> > java.io.IOException: CreateProcess:
> cvs -d:pserver:anoncvs@cvs.apache.org:/home/
> > cvspublic -q checkout -P jakarta-commons/jexl error=2
> > Total time: 14 seconds
> > Finished at: Fri Sep 17 21:42:46 CST 2004
> >
> > What should I to archive the correct result?
> >
> > Thanks
> >
> > /Jack
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Réf. : Re: java.lang.NoClassDefFoundError: sun/misc/CharacterEncoder
Posted by fa...@mpsa.com.
Thx a lot, Brett, that works fine.
:o)
Fabrice.
Brett Porter
<brett.porter@gm
ail.com> Pour
Maven Users List
18/09/2004 00:29 <us...@maven.apache.org>
cc
Veuillez Objet
répondre à Re: java.lang.NoClassDefFoundError:
Maven Users List sun/misc/CharacterEncoder
<users@maven.apa
che.org>
try setting the fork attribute on <java />
- Brett
On Fri, 17 Sep 2004 17:22:56 +0200, fabrice.belingard@mpsa.com
<fa...@mpsa.com> wrote:
>
>
> Hi,
>
> I want to execute a java program, and to do so, I use the following
script
> in my maven.xml:
>
> <java classname="com.myClass">
> <classpath>
> <path refid="maven.dependency.classpath"/>
> </classpath>
> </java>
>
> The problem is that I get a java.lang.NoClassDefFoundError because my
class
> uses the sun.misc.CharacterEncoder class (which is in the rt.jar archive
of
> the JRE).
>
> --> When I launch the same command at the prompt ("java -cp ... etc"),
the
> program just runs fine. But not when I want to launch it through Maven.
> Shouldn't that jar be in Maven's classpath? If yes, anyone knows where
the
> problem might come from?
>
> Thx for your answers!
> Regards,
> Fabrice.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: java.lang.NoClassDefFoundError: sun/misc/CharacterEncoder
Posted by Brett Porter <br...@gmail.com>.
try setting the fork attribute on <java />
- Brett
On Fri, 17 Sep 2004 17:22:56 +0200, fabrice.belingard@mpsa.com
<fa...@mpsa.com> wrote:
>
>
> Hi,
>
> I want to execute a java program, and to do so, I use the following script
> in my maven.xml:
>
> <java classname="com.myClass">
> <classpath>
> <path refid="maven.dependency.classpath"/>
> </classpath>
> </java>
>
> The problem is that I get a java.lang.NoClassDefFoundError because my class
> uses the sun.misc.CharacterEncoder class (which is in the rt.jar archive of
> the JRE).
>
> --> When I launch the same command at the prompt ("java -cp ... etc"), the
> program just runs fine. But not when I want to launch it through Maven.
> Shouldn't that jar be in Maven's classpath? If yes, anyone knows where the
> problem might come from?
>
> Thx for your answers!
> Regards,
> Fabrice.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
java.lang.NoClassDefFoundError: sun/misc/CharacterEncoder
Posted by fa...@mpsa.com.
Hi,
I want to execute a java program, and to do so, I use the following script
in my maven.xml:
<java classname="com.myClass">
<classpath>
<path refid="maven.dependency.classpath"/>
</classpath>
</java>
The problem is that I get a java.lang.NoClassDefFoundError because my class
uses the sun.misc.CharacterEncoder class (which is in the rt.jar archive of
the JRE).
--> When I launch the same command at the prompt ("java -cp ... etc"), the
program just runs fine. But not when I want to launch it through Maven.
Shouldn't that jar be in Maven's classpath? If yes, anyone knows where the
problem might come from?
Thx for your answers!
Regards,
Fabrice.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven scm plugin
Posted by Emmanuel Venisse <em...@venisse.net>.
cvs is in your path?
Emmanuel
----- Original Message -----
From: "Jack Tang" <hi...@gmail.com>
To: "Maven Users List" <us...@maven.apache.org>
Sent: Friday, September 17, 2004 3:55 PM
Subject: Maven scm plugin
> Hi Guys
>
> I use maven to check project hosted in cvs. The command is:
> maven scm:checkout-project -Dmaven.scm.method=cvs
> -Dmaven.scm.cvs.module=jakarta-commons/jexl
>
> -Dmaven.scm.cvs.root=:pserver:anoncvs@cvs.apache.org:/home/cvspublic
> -Dmaven.scm.checkout.dir=.
>
> But I get the failed result:
>
> BUILD FAILED
> File...... C:\Documents and
Settings\Administrator\.maven\cache\maven-scm-plugin
> -1.4.1\plugin.jelly
> Element... ant:cvs
> Line...... 245
> Column.... 9
> java.io.IOException: CreateProcess:
cvs -d:pserver:anoncvs@cvs.apache.org:/home/
> cvspublic -q checkout -P jakarta-commons/jexl error=2
> Total time: 14 seconds
> Finished at: Fri Sep 17 21:42:46 CST 2004
>
> What should I to archive the correct result?
>
> Thanks
>
> /Jack
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org