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

   **[Karl Heinz 
Marbaise](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=khmarbaise)**
 commented
   
   [Leonard 
Brünings](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=leonard84)
 Can you please give a link to your pom plugin ?
   [Robert 
Andersson](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=roband) 
have you tried the solutions if they work or not?
   [Andreas 
Höhmann](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=hoehmi) 
Based on your configuration the `normal` build runs without any issue cause the 
maven-war-plugin sets correctly a main artifact. Based on your profile which 
configures maven-war-plugin the way to produce a file which has a classifier 
but without having a main artifact. An artifact with a classifier can only 
exist if a main artifact exists..which is not the case based on the given 
configuration. So the solution is to correctly run without a profile to produce 
always correctly the main artifact (via usual maven-war-plugin configuration) 
and a supplemental artifact via classifier or even better create a separate 
module which contains the supplemental/changed code and different dependencies 
which would result in removing the profile, the supplemental configuration of 
maven-war-plugin, packageExcludes and removing the need for 
build-helper-maven-plugin as well.
   


-- 
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-unsubscr...@maven.apache.org

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

Reply via email to