user2595834
user2595834

Reputation: 43

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

I'm new to Maven and the Joda-Time library. Is there a simple way to add Javadoc/source code to the Joda-Time library when I import it with Maven?

This is what I added to the pom.xml:

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

Thanks.

Upvotes: 4

Views: 1136

Answers (2)

MortenB
MortenB

Reputation: 3547

For Netbeans8 IDE In Your maven project:

  • Choose services folder.
  • Click 'Maven Repositories'.
  • Click 'Central Repository'.
  • Find joda-time.
  • Double click joda-time artifact group.
  • Double click the joda-time artifact.
  • Choose your version number.
  • Right click and add dependency.
  • It will then be added to your pom.xml and be downloaded and compiled into your project.

Upvotes: 1

reto
reto

Reputation: 10463

If you are using Eclipse with the Maven Plugin you'll find this setting under: Preferences / Maven / Download Artifact Sources and Download Artifact JavaDoc

Upvotes: 6

Related Questions