I don't understand this, but all I did was create a batch file that called the original maven.bat, and used that in my config.xml, and it started working.

Thank You
Mick Knutson

Sr. Java/J2EE Consultant
BASE logic, inc.
(415) 648-1804 (S.F., CA)
http://www.BASELogic.com

HP Consulting Services (Walnut Creek, CA)




From: "David Jackman" <[EMAIL PROTECTED]>
To: "Mick Knutson" <[EMAIL PROTECTED]>
Subject: RE: RE : CruiseControl issues trying to install and run from maven.Pleasehelp.
Date: Mon, 26 Sep 2005 13:35:20 -0600

No idea on that one.  I've never used log4j.xml


-----Original Message-----
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Monday, September 26, 2005 1:33 PM
To: David Jackman
Subject: RE: RE : CruiseControl issues trying to install and run from
maven.Pleasehelp.

where do I put the logger XML properties if I am using log4j.xml for
cruiseControl?


Thank You
Mick Knutson

Sr. Java/J2EE Consultant
BASE logic, inc.
(415) 648-1804 (S.F., CA)
http://www.BASELogic.com

HP Consulting Services (Walnut Creek, CA)




>From: "David Jackman" <[EMAIL PROTECTED]>
>To: "Mick Knutson" <[EMAIL PROTECTED]>
>Subject: RE: RE : CruiseControl issues trying to install and run from
>maven.Pleasehelp.
>Date: Mon, 26 Sep 2005 12:28:27 -0600
>
>1. CC uses Log4j, so your log4j.properties file can indicate the
logging
>level.  My log4j.properties looks like this:
>    log4j.rootCategory=INFO,FILE,HUB
>
>    # Log errors to the console (for the CruiseControl service, the
>console output is sent to service_out.log and service_err.log)
>    log4j.appender.Console=org.apache.log4j.ConsoleAppender
>    log4j.appender.Console.Threshold=ERROR
>    log4j.appender.Console.layout=org.apache.log4j.PatternLayout
>    log4j.appender.Console.layout.ConversionPattern=[cc]%d{MMM-dd
>HH:mm:ss} %-14.14c{1}- %m%n
>
>    # FILE is file logger with rotation
>    log4j.appender.FILE=org.apache.log4j.RollingFileAppender
>    log4j.appender.FILE.Threshold=INFO
>    log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
>    log4j.appender.FILE.layout.ConversionPattern=%d [%-9t] %-5p
>%-16c{1} %x- %m%n
>    log4j.appender.FILE.File=cruisecontrol.log
>    log4j.appender.FILE.MaxFileSize=5000KB
>    log4j.appender.FILE.MaxBackupIndex=4
>
>    # HUB is a socket hub appender
>    log4j.appender.HUB=org.apache.log4j.net.SocketHubAppender
>    log4j.appender.HUB.Threshold=DEBUG
>    log4j.appender.HUB.layout=org.apache.log4j.PatternLayout
>    log4j.appender.HUB.layout.ConversionPattern=[cc]%d{MMM-dd
>HH:mm:ss} %-14.14c{1}- %m%n
>    log4j.appender.HUB.port=4445
>
>Change the log4j.appender.*.Threshold to DEBUG to get debug logging.
>Yours doesn't have to have 3 separate appenders.  The Console one is
>enough to see what's going on when it happens.
>
>2. Yes.  Create a Maven.bat file that looks something like this:
>    echo "C:\Maven_1.0.2\bin\maven.bat" %*
>    call "C:\Maven_1.0.2\bin\maven.bat" %*
>Then change the mavenscript attribute in your config.xml to point to
the
>new Maven.bat instead.
>
>Hope this helps
>..David..
>
>
>-----Original Message-----
>From: Mick Knutson [mailto:[EMAIL PROTECTED]
>Sent: Monday, September 26, 2005 12:04 PM
>To: David Jackman
>Subject: RE: RE : CruiseControl issues trying to install and run from
>maven.Pleasehelp.
>
>This seems to be only for running Maven by itself.
>
>1. How do I change the log level of CC?
>2. Can I turn on maven debug in a BAT files similiar to what you just
>gave, but running through CC?
>
>
>Thank You
>Mick Knutson
>
>Sr. Java/J2EE Consultant
>BASE logic, inc.
>(415) 648-1804 (S.F., CA)
>http://www.BASELogic.com
>
>HP Consulting Services (Walnut Creek, CA)
>
>
>
>
> >From: "David Jackman" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Subject: RE: RE : CruiseControl issues trying to install and run from
> >maven.Pleasehelp.
> >Date: Fri, 23 Sep 2005 08:29:34 -0600
> >
> >  Well, I can't see anything here that jumps out, either.  What I
>really
> >want to look at now is the command line CC uses to start maven.  I
> >thought it would be in the log, but I guess not.  I created my own
>Maven
> >script that looks like this:
> >       @echo off
> >       echo "C:\Maven_1.0.2\bin\maven.bat" %*
> >       call "C:\Maven_1.0.2\bin\maven.bat" %*
> >so the command line will be sent to stdout.  You will also get a copy
>of
> >the command line in the log if you up the logging level to debug
>instead
> >of info (you'll get a load of other stuff, too, which may be helpful
> >here).
> >
> >The command line for Maven that I get looks something like this:
> >
> >"C:\Maven_1.0.2\bin\maven.bat"
> >       -Dfoundation.src.changed=true
> >       -Dcclastbuildtimestamp=20050921230327
> >       -Dlabel=220
> >       -Dcclastgoodbuildtimestamp=20050921230327
> >       -Dlastbuildsuccessful=true
> >       "-Dcvstimestamp=2005-09-22 13:26:13 GMT"
> >       -Dcctimestamp=20050922072613
> >       -b -p project.xml multiproject:deploy multiproject:site
> >site:deploy
> >
> >Based on the error you're getting, I think that either the
> >cclastbuildtimestamp or cclastgoodbuildtimestamp properties aren't
> >getting set correctly.  There's probably a space before the value in
>the
> >command line which is causing Maven to think it's the name of a goal
to
> >run.
> >
> >Hopefully, once we've figured out where the bad goal is coming from
> >we'll have a better idea how to address it, because at the moment I'm
> >not seeing anything obvious that would point to why an extra space
>would
> >be getting in there at all.
> >
> >..David..
> >
>
>





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

Reply via email to