Maven Download Sources with the Class JAR Files
Jump to navigation
Jump to search
Internal
Options
1. Explicit in the <dependencies> section of the POM.
Not tested.
Explicitly specify the "java-source" artifact type along with the default type dependency:
<dependency> <groupId>io.example</groupId> <artifactId>blue</artifactId> <version>1.0</version> </dependency> <dependency> <groupId>io.example</groupId> <artifactId>blue</artifactId> <version>1.0</version> <type>java-source</type> </dependency>
2. Global in a profile.