It's the result of winding up with a junit 3.7 dependency in your tree
somewhere. Surefire requires junit 3.8 - if you include that in your
pom as described it will fix the issue.

- Brett

On 11/10/05, Chad Brandon <[EMAIL PROTECTED]> wrote:
> Michael,
>
> The same thing happened to me; what fixed it for me was adding junit as
> a dependency even though I had no tests (I would think that surefire
> would handle it if it doesn't have the dependency, but it seems to not
> be the case).  Its strange; the error only seems to happen when some
> dependencies are in my pom.xml, but doesn't happen with other
> dependencies (for example it started occuring when I added
> commons-beanutils, but went away when I removed it), but with the junit
> dependency it never happens.
>
> Chad
>
> Michael McCrann wrote:
> > Brett,
> >
> > I have rebuilt the maven-error-diagnostic.jar and installed it into
> > M2_HOME/lib. This is the output now:
> >
> > [ERROR] BUILD ERROR
> > [INFO]
> > ------------------------------------------------------------------------
> > ----
> > [INFO] Error executing surefire
> >
> > tried to access method junit.framework.TestCase.<init>()V from class
> > org.codehaus.surefire.battery.assertion.BatteryAsse
> > rt
> > [INFO]
> > ------------------------------------------------------------------------
> > ----
> > [INFO] For more information, run Maven with the -e switch
> > [INFO]
> > ------------------------------------------------------------------------
> > ----
> >
> > Michael
> > -----Original Message-----
> > From: Brett Porter [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, 10 November 2005 1:28 PM
> > To: Maven Users List
> > Subject: Re: [m2] Windows input line too long
> >
> > Unfortunately that is the same error. The only solution I can propose at
> > the moment is to build a replacement for maven-error-diagnostics from
> > SVN, and install it in $M2_HOME/lib.
> >
> > - Brett
> >
> > On 11/10/05, Michael McCrann <[EMAIL PROTECTED]> wrote:
> >
> >> Brett,
> >>
> >> Here is the full output:
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> > NOTICE
> > This e-mail and any attachments are confidential and may contain copyright 
> > material of Macquarie Bank or third parties. If you are not the intended 
> > recipient of this email you should not read, print, re-transmit, store or 
> > act in reliance on this e-mail or any attachments, and should destroy all 
> > copies of them. Macquarie Bank does not guarantee the integrity of any 
> > emails or any attached files. The views or opinions expressed are the 
> > author's own and may not reflect the views or opinions of Macquarie Bank.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to