Hi,
 
>Windows 2K
>maven-1.0rc1
 
 
I'm trying to use scm:perform-release goal. The checkout work fine, but when maven try 
to create a new process for the "perform" goal i've got a build failed. I try with the 
most simple goal : "clean" and it also failed.
 
Here is my command line :
 
maven -Dmaven.scm.bootstrap.goal=clean -Dmaven.scm.cvs.module=module1 
-Dmaven.scm.cvs.sticky.tag=tag1 scm:perform-release
 
And here is the console output :
 
BUILD FAILED
File file/D:/BuildSystem/tools/maven-1.0-rc1/plugins/maven-scm-plugin-1.1/
Element ant:exec
Line 154
Error 2
 
I try to find what can be the root of this error and i think i found.
 
In maven-scm-plugin-1.1 the jelly script use this ant tag :
<ant:exex dir=${maven.scm.checkout.dir}/${maven.scm.cvs.module}" executable="maven" 
failonerror="true">
  <ant:arg line="${maven.scm.bootstrap.goals}"/>
</ant:exec>
 
The Ant exec error n�2 is when executable can't be found. In fact on Windows system a 
"bat" file can be lauch by just "maven" (.bat is optionnal). But with Ant you have to 
specify the extension of your file. In maven distribution there is a "maven" file for 
unix and "maven.bat" for windows.
 
So on windows i have to change executable="maven" by executable="maven.bat"[Eric Taix] 
 and it work fine... 
 
 
 
Hope this can help you and perhaps there's a better solution
 
Eric T.
 

Reply via email to