Maven - attach javadoc and source

Discussion in 'Plugin Development' started by Meldanor, Jan 18, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    Meldanor

    Hi guys,

    I want to use Maven for my own plugins, but I have a problem:
    I'm using Artifactory and Artifactory uses a remote repo the bukkit repo
    Code:
    http://repo.bukkit.org/content/groups/repo/
    , so I can get the artifacts from bukkit. But how can I say my project, load the sources and the javadoc for bukkit?
    I've used the command:
    mvn eclipse:eclipse -DdownloadSource=True -DdownloadJavadoc=True
    and Maven was downloading many things, but at the end I got the message "No sources found for ...bukkit-RC-1.0.1(don't know the exact name)".
    I can attach the javasource manually in Eclipse->Projekt Properties->Maven Dependencies->Bukkit->Set JavaDoc Location to "http://jd.bukkit.org/apidocs/", but that is only on my local PC. How can I make it, so I just clone the project and maven is downloading the sources and the javadoc from remote repo to my local repo and attach them to the artifact?

    Anyone an idea?

    Thanks for the anwers :)

    Mel
     
  2. Offline

    Zen3515

    I don't know if you still didn't get answer or not but the way to do it in eclipse just right click on project>Maven>Download Javadoc or if you want to automatically download go toWindows>Perferences>Maven>Check Download Artifact JavaDoc
     
  3. Offline

    Garris0n

    2 years
     
    AdamQpzm likes this.
  4. Garris0n Eh, I'm sure it was still relevant.
     
Thread Status:
Not open for further replies.

Share This Page