[JIRA] (JENKINS-50278) Windows: Maven executable not found: mvn.bat

2018-09-09 Thread papan...@wyssmann.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Adrian Wyssmann closed an issue as Not A Defect  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-50278  
 
 
   Windows: Maven executable not found: mvn.bat   
 

  
 
 
 
 

 
Change By: 
 Adrian Wyssmann  
 
 
Status: 
 Open Closed  
 
 
Resolution: 
 Not A Defect  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-50278) Windows: Maven executable not found: mvn.bat

2018-09-09 Thread papan...@wyssmann.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Adrian Wyssmann commented on  JENKINS-50278  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Windows: Maven executable not found: mvn.bat   
 

  
 
 
 
 

 
 Oleg Nenashev yes you are right, thanks for the reference  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-50278) Windows: Maven executable not found: mvn.bat

2018-03-21 Thread o.v.nenas...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Oleg Nenashev commented on  JENKINS-50278  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Windows: Maven executable not found: mvn.bat   
 

  
 
 
 
 

 
 IIUC it is not related to the Jenkins' Maven Plugin. You just need to define a newer version of Maven Release Plugin in your pom.xml: https://stackoverflow.com/questions/29755620/failed-to-execute-goal-maven-releaseprepare  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-50278) Windows: Maven executable not found: mvn.bat

2018-03-20 Thread papan...@wyssmann.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Adrian Wyssmann created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-50278  
 
 
   Windows: Maven executable not found: mvn.bat   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Unassigned  
 
 
Components: 
 maven-plugin  
 
 
Created: 
 2018-03-20 08:55  
 
 
Environment: 
 Windows  Jenkins 2.89.4  Maven Integration Plugin: 3.1  
 
 
Labels: 
 jenkins2.0 windows  
 
 
Priority: 
  Minor  
 
 
Reporter: 
 Adrian Wyssmann  
 

  
 
 
 
 

 
 I am running Jenkins windows slave and have installed maven 3.5.2 but when switching to this version in Jenkins, the job fails with the following error 

 

Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.4.2:prepare (default-cli) on project dp-svc-pom: Failed to invoke Maven build. Error configuring command-line. Reason: Maven executable not found at: D:\jenkins\tools\maven\apache-maven-jenkins-3.5.2\bin\mvn.bat
 

 The problem seems to be that latest maven ships with windows script files ending with .cmd rather than .bat so that's why the plugin does not find the mvn.bat. Changing the file extension from .cmd to .bat fixes the problem. However I think it would be good if the plugin checks for both .bat and .cmd in case .bat is not found.