jira-importer commented on issue #183: URL: https://github.com/apache/maven-source-plugin/issues/183#issuecomment-2959553237
**[Claes Nordmark](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=nordmcla)** commented Ive made a test with https://github.com/ThomasJaspers/java-junit-sample project. I just added this in the pom.xml: ```java <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>${maven.javadoc.plugin.version}</version> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> <configuration> <failOnError>false</failOnError> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>${maven.source.plugin.version}</version> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>${maven.jar.plugin.version}</version> <configuration> <archive> <index>true</index> <manifest> <addClasspath>true</addClasspath> </manifest> </archive> </configuration> </plugin> </plugins> </build> ``` with new versions of maven plugins I get: ```java <properties> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> <maven.source.plugin.version>3.0.0</maven.source.plugin.version> <maven.javadoc.plugin.version>3.0.1</maven.javadoc.plugin.version> <maven.jar.plugin.version>3.1.0</maven.jar.plugin.version> </properties> ``` [INFO] Building jar: /test-project/target/my-app-1.0-SNAPSHOT-sources.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 44.479 s [INFO] Finished at: 2018-11-14T13:22:46+01:00 [INFO] Final Memory: 33M/597M [INFO] ------------------------------------------------------------------------ and with old: ```java <properties> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> <maven.source.plugin.version>2.4</maven.source.plugin.version> <maven.javadoc.plugin.version>2.10.1</maven.javadoc.plugin.version> <maven.jar.plugin.version>2.6</maven.jar.plugin.version> </properties> ``` [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 11.710 s [INFO] Finished at: 2018-11-14T13:25:28+01:00 [INFO] Final Memory: 40M/482M [INFO] ------------------------------------------------------------------------ -- 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]
