You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Doug Douglass <dd...@denverdata.com> on 2005/09/21 22:43:38 UTC
Re: RE : CruiseControl issues trying to install and run from maven.
Pleasehelp.
Mick Knutson wrote:
> So, the config.xml is at least a starting point right?
> What I need to know then, is:
>
> 1. What is missing to at least get an initial checkout and build working
> 2. Where do I put the config.xml?
> 3. Do I just run c:\cc\main\bin\cruisecontrol.bat once to get the whole
> thing into motion?
>
>
> Thank You
> Mick Knutson
>
As I said, I pretty much follow the CC docs but I don't have a link
handy. From what I recall, maven CC plugin wants to run CC _within_ the
maven project, whereas CC itself usually runs _outside_ of any single
project.
I've got CC installed at /opt/CC on a linux box, you'll have to
translate for use on Windows ;). Under the CC install dir I created a
"work" directory that contains "checkout" and "logs" subdirs.
For each project to run within CC:
1 cd to work/checkout and I manually check out the src (CVS in my case)
2 cd into the project dir and run maven cruisecontrol:config
3 copy cruisecontrol.xml to /opt/CC/work/config.xml. Note, you'll
have to merge with any existing config.xml if you have more than 1 project.
4 edit config.xml and fixup any paths so they refer to the checkout
and logs subdirs of work instead of <project>/target/...
5 cd to work and start CC (e.g., /opt/CC/main/bin/cruisecontrol.sh)
That's how it works for me, YMMV. Reply off list and I may be able to
help further.
DD
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: RE : CruiseControl issues trying to install and run from maven.Pleasehelp.
Posted by Doug Douglass <dd...@denverdata.com>.
Vincent Massol wrote:
>
>
> That is not quite correct. The default CC plugin properties run CC in the
> target dir (for lack of a better default) but you can change them to run CC
> anywhere on your machine. That said, this goal is just a convenience and
> you're free not to use it of course.
>
> [snip]
>
> -Vincent
>
Hi Vincent,
Your explanation is definitely more correct. I did originally look into
using the various CC plugin properties to affect the generated config.
I think I just got confused between the "plugin way" and what the CC
docs were describing. Attempting a multiproject on my first CC project
probably hampered things a bit also.
Perhaps I'll revisit the CC plugin now that I'm more confident with
maven, and have couple of projects to add into CC. But I'm also trying
to ramp up on m2 by attempting to help out with some of the novice bugs
So much time, so little to do...strike that...reverse it.
Cheers,
Doug
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: RE : CruiseControl issues trying to install and run from maven.Pleasehelp.
Posted by Mick Knutson <mi...@hotmail.com>.
OK, it seems that there are many values that where not correct, but I have
now got it to work and is going every hour for now.
What is the lastsuccessfulbuild for? SNAPSHOTS?
Here is my logs:
<?xml version="1.0" encoding="ISO-8859-1"?>
<cruisecontrol>
<modifications />
<info>
<property name="projectname" value="cruisecontrol" />
<property name="lastbuild" value="20050921000000" />
<property name="lastsuccessfulbuild" value="20050921000000" />
<property name="builddate" value="09/21/2005 14:03:59" />
<property name="cctimestamp" value="20050921140359" />
<property name="label" value="build.1" />
<property name="interval" value="3600" />
<property name="lastbuildsuccessful" value="true" />
<property name="logdir"
value="C:\opt\local\blackhawk\FastForward_AppServer\fastforward\target\cruisecontrol"
/>
<property name="logfile" value="log20050921140359.xml" />
</info>
<build error="BUILD FAILED detected">
<message priority="info"><![CDATA[BUILD FAILED]]></message>
<message priority="info"><![CDATA[Goal "20050921000000" does not
exist in this project.]]></message>
<message priority="info"><![CDATA[Total time: 4 seconds]]></message>
<message priority="info"><![CDATA[Finished at: Wed Sep 21 14:04:04
PDT 2005]]></message>
</build>
</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: "Vincent Massol" <vm...@pivolis.com>
>Reply-To: "Maven Users List" <us...@maven.apache.org>
>To: "'Maven Users List'" <us...@maven.apache.org>
>Subject: RE: RE : CruiseControl issues trying to install and run from
>maven.Pleasehelp.
>Date: Wed, 21 Sep 2005 22:47:15 +0200
>
>Hi Doug,
>
> > -----Original Message-----
> > From: Doug Douglass [mailto:ddouglass@denverdata.com]
> > Sent: mercredi 21 septembre 2005 22:44
> > To: Maven Users List
> > Subject: Re: RE : CruiseControl issues trying to install and run from
> > maven.Pleasehelp.
> >
> > Mick Knutson wrote:
> > > So, the config.xml is at least a starting point right?
> > > What I need to know then, is:
> > >
> > > 1. What is missing to at least get an initial checkout and build
>working
> > > 2. Where do I put the config.xml?
> > > 3. Do I just run c:\cc\main\bin\cruisecontrol.bat once to get the
>whole
> > > thing into motion?
> > >
> > >
> > > Thank You
> > > Mick Knutson
> > >
> >
> > As I said, I pretty much follow the CC docs but I don't have a link
> > handy. From what I recall, maven CC plugin wants to run CC _within_ the
> > maven project, whereas CC itself usually runs _outside_ of any single
> > project.
>
>That is not quite correct. The default CC plugin properties run CC in the
>target dir (for lack of a better default) but you can change them to run CC
>anywhere on your machine. That said, this goal is just a convenience and
>you're free not to use it of course.
>
>[snip]
>
>-Vincent
>
>
>---------------------------------------------------------------------
>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: RE : CruiseControl issues trying to install and run from maven.Pleasehelp.
Posted by Vincent Massol <vm...@pivolis.com>.
Hi Doug,
> -----Original Message-----
> From: Doug Douglass [mailto:ddouglass@denverdata.com]
> Sent: mercredi 21 septembre 2005 22:44
> To: Maven Users List
> Subject: Re: RE : CruiseControl issues trying to install and run from
> maven.Pleasehelp.
>
> Mick Knutson wrote:
> > So, the config.xml is at least a starting point right?
> > What I need to know then, is:
> >
> > 1. What is missing to at least get an initial checkout and build working
> > 2. Where do I put the config.xml?
> > 3. Do I just run c:\cc\main\bin\cruisecontrol.bat once to get the whole
> > thing into motion?
> >
> >
> > Thank You
> > Mick Knutson
> >
>
> As I said, I pretty much follow the CC docs but I don't have a link
> handy. From what I recall, maven CC plugin wants to run CC _within_ the
> maven project, whereas CC itself usually runs _outside_ of any single
> project.
That is not quite correct. The default CC plugin properties run CC in the
target dir (for lack of a better default) but you can change them to run CC
anywhere on your machine. That said, this goal is just a convenience and
you're free not to use it of course.
[snip]
-Vincent
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org