jira-importer commented on issue #285:
URL: 
https://github.com/apache/maven-jar-plugin/issues/285#issuecomment-2956694439

   **[Benjamin 
Bentmann](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=bentmann)**
 commented
   
   > It doesn't work.
   > But it works for me so there must be something about your configuration. 
Could you please attach a demo project and the command lines to invoke to allow 
to reproduce your problem?
   
   > Why is jar:jar being invoked twice? I assume it's because I defined the 
execution goal jar.
   > Right, you added an additional `<execution>` for the `jar` goal. The first 
execution is the default execution defined by the [lifecycle for packaging 
"jar"](http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Built-in_Lifecycle_Bindings).
   
   > And why aren't the excludes used for the first jar:jar call??
   > The `<configuration>` element inside an `<execution>` element applies only 
to this particular execution. However as stated above, the first invocation of 
the goal does not originate from the `<execution>` element. Compare the section 
[Using executions 
tag](http://maven.apache.org/guides/mini/guide-configuring-plugins.html).
   
   


-- 
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