GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [MINSTALL-196] Maven 3.9.x install:install-file doesn't recognize -Dpackaging · Issue #321 · apache/maven-install-plugin

[MINSTALL-196] Maven 3.9.x install:install-file doesn't recognize -Dpackaging #321

New issue
Copy link
New issue
Copy link
Closed
Closed
[MINSTALL-196] Maven 3.9.x install:install-file doesn't recognize -Dpackaging#321
Copy link
Assignees
cstamas
Labels
bugSomething isn't workingpriority:majorMajor loss of function
Milestone
3.1.3

Description

@jira-importer
jira-importer
opened on Dec 6, 2023
Issue body actions

Wei-Chiu Chuang opened MINSTALL-196 and commented

Hi there is a behavior change between Maven 3.8.8 and 3.9.6 where mvn install:install-file doesn't recognize -Dpackaging=exe

Reproducible on Apple Mac M3

PROTOBUF_VERSION="3.7.1"
curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOBUF_VERSION}/protobuf-all-${PROTOBUF_VERSION}.tar.gz
tar xzf protobuf-all-${PROTOBUF_VERSION}.tar.gz
cd protobuf-${PROTOBUF_VERSION}
./configure --disable-shared
make -j
mvn install:install-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=${PROTOBUF_VERSION} -Dclassifier=osx-aarch_64 -Dpackaging=exe -Dfile=src/protoc

Expected result (Maven 3.8 and below):
artifact installed at ~/.m2/repository/com/google/protobuf/protoc/3.7.1/protoc-3.7.1-osx-aarch_64.exe

Incorrect result (Maven 3.9.x)
artifact installed at ~/.m2/repository/com/google/protobuf/protoc/3.7.1/protoc-3.7.1-osx-aarch_64

 

Because of the missing suffix ".exe", Apache Ozone is not able to build on Apple Mac M3 using Maven 3.9.x. It works fine with Maven 3.8.x


Affects: 3.0.1

Remote Links:

  • GitHub Pull Request #81

Activity

  1. jira-importer commented on Dec 10, 2023

    @jira-importer
    jira-importer
    on Dec 10, 2023
    Author
    More actions

    Karl Heinz Marbaise commented

    Can you please show the log output and expliclty write which version of the maven-install-plugin you are using? Unfortunately you have written about the Maven verison but not about the plugin version... 

    Based on the default bindings https://maven.apache.org/ref/3.8.8/maven-core/default-bindings.html I assume your version of the maven-install-plugin is 2.4 (assumed that you have not defined the version yourself) and for Maven 3.9.6 (https://maven.apache.org/ref/3.9.6/maven-core/default-bindings.html) the plugin version is 3.1.1 ... ?

  2. jira-importer
    closed this as completedon Aug 15, 2024
  3. jira-importer
    assigned
    cstamas
    on Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @cstamas
    cstamas

Labels

bugSomething isn't workingpriority:majorMajor loss of function

Type

No type

Projects

No projects

    Milestone

    • 3.1.3

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.