History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-3058
Type: Improvement Improvement
Status: Closed Closed
Resolution: Won't Fix
Priority: Minor Minor
Assignee: Robin Shen
Reporter: J. Mash
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

Maven Executable Name on Windows

Created: 12/Oct/17 03:59 PM   Updated: 19/Jan/18 12:56 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
It appears that the Maven plugin is not currently compatible with Maven when it is installed using the Chocolatey / Nuget package managers. The reason for this is that the package managers will generate a shim executable (mvn.exe) that points at the installed version of Maven, and it does not appear that the Maven plugin recognizes this.

Recent versions of Windows support a framework for package managers (https://www.howtogeek.com/200334/windows-10-includes-a-linux-style-package-manager-named-oneget/) for installing software in a manner similar to that of apt-get/yum on Linux. This framework allows Chocolatey / Nuget to be easily used as the backend repositories, so this seems like something that will be seeing more widespread use in the coming months (especially in configuration management scripts when setting up new hosts)

 All   Comments   Work Log   Change History      Sort Order:
Robin Shen [18/Jan/18 07:50 AM]
Can you please show me the command you used to install maven package with chocolate/nuget? Looks like I can not find the package "maven" with nuget

J. Mash [18/Jan/18 03:40 PM]
Here's what we have in our runbook:

  - choco install maven

I confirmed that this command still seems to work as well:

  Chocolatey v0.10.8
  Installing the following packages:
    maven
  
  By installing you accept licenses for the packages.
  maven v3.5.2 already installed.
    Use --force to reinstall, specify a version to install, or try upgrade.

  Chocolatey installed 0/1 packages.
    See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Let me know if there's any additional information I can provide to help with this.

Robin Shen [19/Jan/18 12:56 AM]
Thanks for the info. I tried it and the mvn.cmd needs to be specified as maven executable.