davisusanibar commented on code in PR #13812:
URL: https://github.com/apache/arrow/pull/13812#discussion_r941587813
##########
java/pom.xml:
##########
@@ -358,6 +358,19 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-sources</id>
+ <phase>package</phase>
+ <goals>
+ <goal>jar-no-fork</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
Review Comment:
What about
[maven-dependency-plugin](https://maven.apache.org/plugins/maven-dependency-plugin/)
it tells Maven to resolve all dependencies and their source attachments with
`mvn dependency:sources --debug`?
```
[INFO] --- maven-dependency-plugin:2.8:sources (default-cli) @ wks-reproduce
---
Downloaded from central:
https://repo.maven.apache.org/maven2/org/apache/arrow/arrow-vector/9.0.0/arrow-vector-9.0.0-sources.jar
(946 kB at 5.1 MB/s)
```
--
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]