Try 
maven -e java:compile

> -----Original Message-----
> From: jun cai [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, 11 September 2003 2:43 PM
> To: Maven Users List
> Subject: RE: How to add ant taskdef in maven.
> 
> 
> F:\Projects\nis>maven java:compile
>  __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0-beta-10
> java:prepare-filesystem:
> java:compile:
>     [echo] Compiling to F:\Projects\nis/target/classes
>     [echo] C:\Documents and Settings\Administrator
>     [copy] Copying 624 files to F:\Projects\nis\target\classes
> BUILD FAILED
> File...... file:/F:/Projects/nis/
> Element... ant:enhance
> Line...... 70
> Column.... 84
> java.lang.ExceptionInInitializerError
> Total time:  9 seconds
> F:\Projects\nis>maven -e
>  __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0-beta-10
> BUILD SUCCESSFUL
> Total time:  2 seconds
>  
> thank your reply,but I can't fix the wrong?how to ?
> 
> Brett Porter <[EMAIL PROTECTED]> wrote:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> If you still get the Exception - run Maven with -e.
> 
> Once you get this working, you might consider moving all the 
> JARs into your
> maven repository, adding them as dependencies on the project, then use
> classpathref="maven.dependency.classpath" instead
> 
> - Brett
> 
> > -----Original Message-----
> > From: jun cai [mailto:[EMAIL PROTECTED] 
> > Sent: Thursday, 11 September 2003 2:27 PM
> > To: Maven Users List
> > Subject: RE: How to add ant taskdef in maven.
> > 
> > 
> > 
> > How to write task?
> > my maven.xml :
> > 
> 
> > 
> > > classname="com.riflexo.jcredo.ant.Enhancer">
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> 
> > 
> > 
> 
> > 
> > 
> 
> > 
> > but failed
> > 
> > Element... enhance
> > Line...... 69
> > Column.... 80
> > java.lang.ExceptionInInitializerError
> > Total time: 25 seconds
> > 
> > How to define an ant task and execute ant task in maven?
> > 
> > Brett Porter wrote:
> > Start here:
> > 
> http://maven.apache.org/reference/user-guide.html#maven.xml
> 
> You can pretty much paste your ant code into maven.xml, add 
> the necessary
> project/goal tags around it, and away you go.
> 
> - Brett
> 
> 
> > -----Original Message-----
> > From: jun cai [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, 11 September 2003 1:53 PM
> > To: [EMAIL PROTECTED]
> > Subject: How to add ant taskdef in maven.
> > 
> > 
> > Before I use maven to publish my project ,I use ant to bulid
> > my project.such as:
> > 
> > 
> > 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> > 
> > 
> > 
> > > destinationPath="${build.classes}"/>
> > 
> > 
> > 
> > How to define task in maven?
> > 
> > thanks.
> > 
> > 
> > ---------------------------------
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site design software
> > 
> 
> 
> ---------------------------------
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> 
> 
> ---------------------------------
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> 

Reply via email to