[ https://issues.apache.org/jira/browse/MJAR-242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16279110#comment-16279110 ]
Karl Heinz Marbaise commented on MJAR-242: ------------------------------------------ If you really call {{mvn clean install deploy}} the usage of {{install}} is superfluous cause the life cycle includes the {{install}} parts which means {{mvn clean deploy}} is sufficient. The problem here is located based on the repeating of the {{install}} phase which will call the {{maven-jar-plugin}} a second time which will cause the resulting error message. > When building an empty project with mvn clean install deploy it will fail > because it executes maven-jar-plugin twice with "have to use classifier" > error. > --------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: MJAR-242 > URL: https://issues.apache.org/jira/browse/MJAR-242 > Project: Maven JAR Plugin > Issue Type: Bug > Affects Versions: 3.0.0 > Environment: Windows 10 x64 > Apache Maven 3.3.1 (cab6659f9874fa96462afef40fcf6bc033d58c1c; > 2015-03-13T16:10:27-04:00) > Java version: 1.8.0_131, vendor: Oracle Corporation > Java home: C:\Program Files\Java\jdk1.8.0_131\jre > Default locale: en_US, platform encoding: Cp1252 > OS name: "windows 10", version: "10.0", arch: "amd64", family: "dos" > Reporter: Daniel Cruver > Priority: Minor > Attachments: empty-project-build.log, pom.xml > > > This issues should never happen because who has empty projects, well our > project had a few, so I ran across this issue when running mvn clean install. > "You have to use a classifier to attach supplemental artifacts to the project > instead of replacing" > I have attached the build log and an example pom that can reproduce the > error, assuming you updated the distributionManagement section with an actual > Maven Repository. -- This message was sent by Atlassian JIRA (v6.4.14#64029)