GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Overview
  • Introduction
  • Goals
  • Usage
  • FAQ
  • Trouble Shooting
  • License
  • Download
  • Multiple Module Projects
  • Eclipse PDE Projects
  • WTP Support
  • Adding additional facets
  • AJDT Projects
  • Configure Checkstyle

This view

  • Original page
  • New address

GeezerVison is showing maven.apache.org — Apache Maven Eclipse Plugin - Attach Library Sources

Fork me on GitHub
  • Overview
    • Introduction
    • Goals
    • Usage
    • FAQ
    • Trouble Shooting
    • License
    • Download
  • Configuration
    • Multiple Module Projects
    • Eclipse PDE Projects
    • WTP Support
  • Examples
    • Adding additional facets
    • AJDT Projects
    • Attach Library Sources
    • Configure Checkstyle
    • Load Code Style file
    • Multi-module projects with WTP
    • Prevent Module References
    • Provide Project Natures And Build Commands
    • Specifying source path inclusions and exclusions
  • Project Documentation
    • Project Information
      • About
      • Project Summary
      • Dependency Information
      • Project License
      • Project Team
      • Source Repository
      • Issue Tracking
      • Mailing Lists
      • Dependency Management
      • Dependencies
      • Continuous Integration
      • Plugin Management
      • Project Plugins
      • Distribution Management
    • Project Reports
      • Plugin Documentation
      • Surefire Report
  • Maven Projects
    • Ant Tasks
    • Archetype
    • Doxia
    • JXR
    • Maven 1.x
    • Maven 2 & 3
    • Parent POMs
    • Plugins
    • Plugin Tools
    • SCM
    • Shared Components
    • Skins
    • Surefire
    • Wagon
  • ASF
    • How Apache Works
    • Foundation
    • Sponsoring Apache
    • Thanks
Apache Maven Eclipse Plugin

  • Apache
  • /
  • Maven
  • /
  • Plugins
  • /
  • Apache Maven Eclipse Plugin
  • /
  • Attach Library Sources
  • Last Published: 2015-05-28
  • |
  • Version: 2.10
  • Overview
  • Introduction
  • Goals
  • Usage
  • FAQ
  • Trouble Shooting
  • License
  • Download
  • Configuration
  • Multiple Module Projects
  • Eclipse PDE Projects
  • WTP Support
  • Examples
  • Adding additional facets
  • AJDT Projects
  • Attach Library Sources
  • Configure Checkstyle
  • Load Code Style file
  • Multi-module projects with WTP
  • Prevent Module References
  • Provide Project Natures And Build Commands
  • Specifying source path inclusions and exclusions
  • Project Documentation
  • Project Information
  • Project Reports
  • Maven Projects
  • Ant Tasks
  • Archetype
  • Doxia
  • JXR
  • Maven 1.x
  • Maven 2 & 3
  • Parent POMs
  • Plugins
  • Plugin Tools
  • SCM
  • Shared Components
  • Skins
  • Surefire
  • Wagon
  • ASF
  • How Apache Works
  • Foundation
  • Sponsoring Apache
  • Thanks

Built by Maven

Attach Library Sources and Javadocs

Artifacts with sources deployed can be attached to Eclipse libraries using downloadSources. Javadocs may be attached using downloadJavadocs The sources and javadocs of the libraries must exist in the repository so that the plugin can download it and attach it.

The following example shows how to do this in the command-line:

mvn eclipse:eclipse -DdownloadSources=true  -DdownloadJavadocs=true

or in your pom.xml:

<project>
  [...]
  <build>
    [...]
    <plugins>
      [...]
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-eclipse-plugin</artifactId>
        <version>2.10</version>
        <configuration>
          <downloadSources>true</downloadSources>
          <downloadJavadocs>true</downloadJavadocs>
        </configuration>
      </plugin>
      [...]
    </plugins>
    [...]
  </build>
  [...]
</project>

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.