You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "jira-importer (via GitHub)" <gi...@apache.org> on 2025/04/02 08:51:40 UTC

[I] [MINSTALL-196] Maven 3.9.x install:install-file doesn't recognize -Dpackaging [maven-install-plugin]

jira-importer opened a new issue, #321:
URL: https://github.com/apache/maven-install-plugin/issues/321

   **[Wei-Chiu Chuang](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=jojochuang)** opened **[MINSTALL-196](https://issues.apache.org/jira/browse/MINSTALL-196?redirect=false)** 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
   ](https://github.com/apache/maven-install-plugin/pull/81)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [MINSTALL-196] Maven 3.9.x install:install-file doesn't recognize -Dpackaging [maven-install-plugin]

Posted by "jira-importer (via GitHub)" <gi...@apache.org>.
jira-importer commented on issue #321:
URL: https://github.com/apache/maven-install-plugin/issues/321#issuecomment-2771868219

   **[Karl Heinz Marbaise](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=khmarbaise)** 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 ... ?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org