Maven Download Sources with the Class JAR Files: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 7: Line 7:
=Options=
=Options=


1. (Not tested)
1. Explicit in the <dependencies> section of the POM.


Explicitly specify the "
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.
 
{{Internal|Maven_Profile#Download_Sources_for_all_Dependencies|Configure the Profile to Download Sources for all Dependencies}}

Revision as of 22:17, 9 January 2018

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.

Configure the Profile to Download Sources for all Dependencies