Add Javadoc / source to Joda-Time when importing as Maven dependency

I am new to Maven and the Joda-Time library. Is there an easy way to add Javadoc / source code to the Joda-Time library when I import it using Maven?

This is what I added in pom.xml:

<dependency> <groupId>joda-time</groupId> <artifactId>joda-time</artifactId> <version>2.0</version> </dependency> 

Thanks.

+4
source share
2 answers

If you use Eclipse with the Maven plugin, you will find this option in the section: Settings / Maven / Download artifact sources and Download Artifact JavaDoc

+6
source

For NetBeans8 IDE In maven project:

  • Select the services folder.
  • Click "Maven Repositories".
  • Click Central Repository.
  • Find joda-time.
  • Double-click the joda-time group artifact.
  • Double-click the joda-time artifact.
  • Select your version number.
  • Right click and add the dependency.
  • Then it will be added to your pom.xml and will be downloaded and compiled into your project.
+1
source

Source: https://habr.com/ru/post/1492099/


All Articles