-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Package Request]: Apache Maven #65391
Comments
I'd love to see this progressing! However: According to https://docs.microsoft.com/en-us/windows/package-manager/winget/, the only supported formats are EXE, MSI/MSIX, INNO, NULLSOFT, APPX and BURN. Unless, of course, there's some other way to get winget to get a .zip or .tar.gz. Thanks & good luck! |
@IanDarwin We're working on support for .zip containing either an installer or a "portable" package. I haven't played with Maven in many years so I don't know if this initial work we're doing in Windows Package Manager 1.4 will close all the gaps, but we will continue investing to meet more publishers where they are. |
@denelon Glad to hear it. I see there is some support for this in 1.4.x early builds but I'm not clear if it's for zipped .msi files or for zip files of the entire distribution file tree? Thanks |
It supports a .zip file with a single installer (MSIX, MSI, or .exe installer). |
On Mon, Jul 25, 2022 at 12:55:21PM -0700, denelon wrote:
It supports a .zip file with a single installer (MSIX, MSI, or .exe
installer).
For zip files that just contain an actual zip archive of the filesystem
tree, would it make sense to just unzip them to %USERPROFILE%/programname.version?
That would put, for example, Maven 3.8.2 into /Users/ian/maven-3.8.2
which is fine because people installing it manually have to add that path
+ "bin" into their path anyway.
Or maybe it's apache-maven-3.8.2, but whatever.
Thanks
Ian D
|
@IanDarwin we're focusing on supporting installers, and then portable packages as they are supported in Windows Package Manager 1.3 builds. Automated testing requires some dynamic analysis, so we haven't started to tackle the scenario you are describing just yet. I would call it a "feature" enhancement for .zip support. If Apache Maven has a logical primary executable, then that one would be made available for the user to "run" using the symbolic link we create when installing portable packages. One of our desires has been to avoid cluttering up the user's path environment variable with every single portable package installed. In some cases (user mode without Developer Mode enabled, this may unfortunately not be possible just yet). |
On Tue, Jul 26, 2022 at 09:02:28AM -0700, denelon wrote:
***@***.*** we're focusing on supporting installers, and then
portable packages as they are supported in Windows Package Manager 1.3
builds. Automated testing requires some dynamic analysis, so we haven't
started to tackle the scenario you are describing just yet. I would
call it a "feature" enhancement for .zip support. If Apache Maven has a
logical primary executable, then that one would be made available for
the user to "run" using the symbolic link we create when installing
portable packages. One of our desires has been to avoid cluttering up
the user's path environment variable with every single portable package
installed. In some cases (user mode without Developer Mode enabled,
this may unfortunately not be possible just yet).
Hi. Thanks. I did get my PDFShow into the winget registry.
As far as Maven, there is a shell script and batch file (in the expected bin
folder under the zip file) that they use to run, so if you symlink to
the mvn.bat file that should do it! Hopefully.
Thanks
Ian
|
ITNOA @denelon As I know winget know support .zip, so I think we can add maven to winget Am I correct? |
blocks by microsoft/winget-cli#5085 |
Package Requested
Please provide the following information
Publisher: The Apache Software Foundation
Publisher Url: https://www.apache.org/
Package Name: Apache Maven
Description: Apache Maven is a tool that can now be used for building and managing any Java-based project.
Package Version: 3.8.6
Installer URL: https://dlcdn.apache.org/maven/maven-3/3.8.6/binaries/apache-maven-3.8.6-bin.zip
Current Package Identifier (for new versions):
The text was updated successfully, but these errors were encountered: