jira-importer commented on issue #285: URL: https://github.com/apache/maven-jar-plugin/issues/285#issuecomment-2956694458
**[Ryan Lea](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=ryan.lea)** commented Hi Michael, Not sure if you got around this problem but I was having the exact same issue. I ran mvn help:effective-pom and the output indicated that it would use version 2.2. However, once I explicitly added the version to the maven-jar-plugin in my pom, it started behaving completely differently. Not really sure why this would be the case. Here's my snippet of my plugins section: ```xml <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.2</version> <configuration> <archive> <addMavenDescriptor>false</addMavenDescriptor> <manifest> <addClasspath>true</addClasspath> </manifest> </archive> <excludes> <exclude>**/users.xml</exclude> </excludes> </configuration> </plugin> ``` -- 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]
