Maven 1.x CruiseControl Plugin

Lost script extension when use "maven cruisecontrol:configure" command

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.4
  • Fix Version/s: 1.6
  • Component/s: None
  • Labels:
    None
  • Environment:
    Windown 2000 pro
    JDK1.4.1
    Maven1.0
    maven-cc-plugin 1.4
  • Number of attachments :
    0

Description

When I defined maven's config files(project.xml,project.properties,build.properties),
maven's all tasks run ok
then I use:
maven cruisecontrol:configure
to generate maven-cruisecontrol-plugin's config file(cruisecontrol.xml).
then I run it:
maven cruisecontrol:run

BUT an error occured:
===========================
Project - exception attempting build in project XXX
net.sourceforge.cruisecontrol.CruiseControlException: Encountered an IO exception while attempting to execute Maven. CruiseControl cannot continue. : CreateProcess: D:\Maven\bin\maven -Dcclastbuildtimestamp=20041112000000 -Dlabel=build.1 -Dcclastgoodbuildtimestamp=20041112000000 -Dlastbuildsuccessful=true "-Dcvstimestamp=2004-11-12 02:01:23 GMT" -Dcctimestamp=20041112100123 -X -b -p project.xml scm:update-project error=193
at net.sourceforge.cruisecontrol.builders.MavenBuilder.build(MavenBuilder.java:120)
at net.sourceforge.cruisecontrol.Schedule.build(Schedule.java:144)
at net.sourceforge.cruisecontrol.Project.build(Project.java:195)
at net.sourceforge.cruisecontrol.Project.execute(Project.java:153)
at net.sourceforge.cruisecontrol.ProjectWrapper.run(ProjectWrapper.java:66)
at java.lang.Thread.run(Thread.java:536)
===============
After I wast many time to fix this problem,I found the script extension lost
in the cruisecontrol.xml:

Default generated:
================================
<schedule interval="300">
<maven goal="scm:update-project|clean test|site:deploy" projectfile="project.xml" mavenscript="D:/Maven/bin/maven">
</maven>
</schedule>
=================================

when I add ".bat" to the mavenscript,it's OK now
current:
=====================================================
<schedule interval="300">
<maven goal="scm:update-project|clean test|site:deploy" projectfile="project.xml" mavenscript="D:/Maven/bin/maven.bat">
</maven>
</schedule>
=====================================================

Activity

Hide
David Eric Pugh added a comment -

This is a recent change by CC. It requires the script file to have the .sh or .bat hardcoded in the config...

Show
David Eric Pugh added a comment - This is a recent change by CC. It requires the script file to have the .sh or .bat hardcoded in the config...
Hide
David Eric Pugh added a comment -

Try out CVS HEAD and please confirm the fix!

Show
David Eric Pugh added a comment - Try out CVS HEAD and please confirm the fix!

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
4h
Original Estimate - 4 hours
Remaining:
4h
Remaining Estimate - 4 hours
Logged:
Not Specified
Time Spent - Not Specified