Hi Michael!

You don't need to build the whole maven2 stuff. My goal was to check if your 
perforce version generates slightly different logs than the one the 
maven-scm-provider-perforce was programmed with.

Please see the following debug output files and compare them with the propriate 
output from your p4:
http://svn.apache.org/repos/asf/maven/scm/trunk/maven-scm-providers/maven-scm-provider-perforce/src/test/resources/perforce/

The tests of a SCM provider can be separated into 2 categories

1.) tests which are run against pre generated output files (like the ones above)
2.) TCK tests which run real use cases. For this test cases, the 
PerforceAddConsumer has to parse the output of the real p4 command! That's what 
may fail on your computer.

I hope this explains why I asked you to run the tests, and which part is 
relevant and which not.

For not loosing the context, I copy the exception from your mvn release with 
your p4 installation from your previous post (titled "Release plugin 
questions"):
Caused by: java.lang.IllegalStateException: Unknown input: 
//depot/sandboxes/mdelaney/utils/release-pom.xml#4 - opened for add
        at 
org.apache.maven.scm.provider.perforce.command.add.PerforceAddConsumer.consumeLine(PerforceAddConsumer.java:79)
        at 
org.apache.maven.scm.provider.perforce.command.add.PerforceAddCommand.executeAddCommand(PerforceAddCommand.java:63)
  

At least this would be the first point to look at for searching the source of 
the problem. First guess: either p4 is old, or the scm-provider is old. Which 
version are you using? This may also be a line delimiter problem or other wired 
stuff ...

LieGrü,
strub


--- Michael Delaney <[EMAIL PROTECTED]> schrieb am Fr, 13.6.2008:

> Von: Michael Delaney <[EMAIL PROTECTED]>
> Betreff: RE: Building Maven2
> An: "Maven Users List" <[email protected]>
> Datum: Freitag, 13. Juni 2008, 16:58
> Wayne,
> 
> Well, I am trying to debug a possible issue with the
> Perforce SCM
> provider. I was asked to build & run units tests
> against the Perforce
> SCM provider. Rather then just attempt to build then post
> errors that
> ended up being an issue with my environment, I decided it
> would be a
> good idea to build Maven 2 first to validate the
> environment. That way
> if any issue were found with the Perforce SCM provider, I
> could at least
> say that know my environment is good (or should be).
> 
> 
> 
> > Mike D.
> 
> -----Original Message-----
> From: Wayne Fay [mailto:[EMAIL PROTECTED] 
> Sent: Friday, June 13, 2008 10:53 AM
> To: Maven Users List
> Subject: Re: Building Maven2
> 
> If you don't mind me asking, why are you trying to
> build Maven? Just
> for fun; because corporate says we have to be able to build
> everything
> (including our tools) from scratch; some other reason; etc?
> 
> Wayne
> 
> On 6/13/08, Michael Delaney <[EMAIL PROTECTED]>
> wrote:
> > Ram,
> >
> > I was trying to build everything, I went into the root
> of the Maven 2
> > source distribution and executed
> "bootstrap.bat". The steps were as
> > follows:
> >        cd /d
> C:\tmp\maven-2.0.9-src\maven-2.0.9-src
> >        set M2_HOME=c:\apache-maven-2.0.9
> >        set PATH=%M2_HOME%\bin;%PATH%
> >        bootstrap.bat
> >
> > The documentation I followed is listed at
> >
> http://maven.apache.org/guides/development/guide-building-m2.html,
> and
> I
> > was using the section "Building Maven 2.0 Without
> Maven Installed".
> >
> > Here is a print out of the relevant environment
> variables
> >        JAVA_HOME=c:\Program
> Files\Java\jdk1.5.0_13
> >        M2_HOME=c:\tmp\apache-maven-2.0.9
> >
> > -----Original Message-----
> > From: RAM [mailto:[EMAIL PROTECTED]
> > Sent: Friday, June 13, 2008 4:11 AM
> > To: Maven Users List
> > Subject: Re: Building Maven2
> >
> > The error message is little bit confusing :"Null
> Pointer Exception in
> > thread
> > main". What are you trying to build?
> > I did the following setup and its working fine for me:
> >
> > M2_HOME = D:\apache-maven-2.0.9
> > JAVA_HOME = {Here the *JDK* Path] Remember Maven
> doesnt work properly
> > with
> > JRE
> > PATH: %M2_HOME%/bin
> >
> > Just run mvn --version and we are good to go.
> > If you are getting the version printed as 2.0.9, its
> correctly
> > installed.
> >
> > Also, if you can forward the apache link you are
> talking about (where
> > you
> > got the example), I can look into that.
> 


      __________________________________________________________
Gesendet von Yahoo! Mail.
Dem pfiffigeren Posteingang.
http://de.overview.mail.yahoo.com

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

Reply via email to