jira-importer commented on issue #313:
URL: 
https://github.com/apache/maven-install-plugin/issues/313#issuecomment-2771867514

   **[Peter 
Schlömer](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=JIRAUSER293535)**
 commented
   
   [Tamas 
Cservenak](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=cstamas) 
I can provide one. We also have projects that do not have a "main artifact" 
without classifier, where we use classifiers to distinguish, for example, 
artifacts configured for staging and production.
   
   I have attached examples demonstrating this both for jar and war packaging, 
see  [^minstall-151-example-PeterSchloemer.zip].
   
   Using the POM files in this, these maven builds will work (using 
maven-install-plugin 2.5.2):
   
   ```
   mvn install -f pom-install-jar.xml
   mvn install -f pom-install-war.xml
   ```
   
   These will fail (using maven-install-plugin 3.0.1):
   
   ```
   mvn install -f pom-install-jar.xml -P fails
   mvn install -f pom-install-war.xml -P fails
   ```
   
   The maven-deploy-plugin has exactly the same problem in version 3.0.0, as 
far as I can see there is no Jira issue for that yet.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to