The Import Artifact into Repository feature installs any artifact into the specified local or remote repository.
To import an artifact:
This window displays:
The Eclipse Integration plugin uses the Eclipse Preferences page to let you set both global and archetype (per-project) preferences that remain in place for all (and future) Eclipse executions until you change them again. Global preferences you can set include whether you want to download source and JavaDocs or work offline, while the archetype preference lets you specify a new archetype source list URL for a project. The following sections contain instructions for setting the global preferences, as well as setting, editing, and deleting new archetype source list URLs.
Note: If you double-click to expand Maven, Archetype Preference, Artifact Search, and Maven Profiles appears below it as shown in Figure 23. Archetype Preference option lets you set Archetype preferences, as explained in the section entitled, Setting, Editing, and Deleting Archetype List URL Preferences.
The following table describes each of the available Maven Preference options:
Maven Preference Options
|Maven Preference Option||Description|
|Archetype Page Connection Timeout (milliseconds)||Sets the span of time allowed to establish a connection to the archetype page.|
|Global settings XML||Uses the setting configurations for all the users. Settings explicitly set are picked up and used.|
|User settings XML||Uses the setting configurations for a specific user.|
|Execute Recursively||Executes the Maven goals of the parent and child projects recursively.|
|Work offline||Allows you to work offline on a project.|
|Download sources||Automatically downloads the sources for the project.|
Note: If you want to edit the settings.xml, click Edit found beside the Browse... button of the specific settings.xml (Global settings XML or User settings XML).
Note: If you want to restore to the default preferences at any time, follow these instructions to display the Maven preferences, then click on the Restore Defaults button. After that, click Apply and OK to put the restored preferences in place.
Through the Eclipse Integration Preferences page, you can add, edit, or delete a new archetype list source URL for a project, overriding the existing archetype metadata source. You can also specify the type of archetype list source (for example, WIKI, or Archetype Catalog).
Setting Archetype List URL Preferences
To specify a new archetype list source: