Creating a project or a global library

Depending on the library level, in the left-hand pane of the dialog, select:

Libraries if you are going to create a project library.

Global Libraries if you are going to create a global library.

Above the pane to the right, click and select one of the following options:

Java. Select this option if you are creating a Java library.

JavaScript. Select this option if you are creating a JavaScript library.
Note that this option is not available at the project level.

From Maven. Select this option if you are going to download a Java library
from a public
Maven repository.

ActionScript/Flex. Select this option if you are creating an ActionScript/Flex library.
This option is always present at the global level.
A project ActionScript/Flex library can be created
only if there is a Flash module in your project.

If you are creating a Java, JavaScript or ActionScript/Flex library, the Select Library Files dialog opens.
Select the files and folders that you want to be included in the library.

If appropriate, the Detected Roots dialog is displayed showing potential library items.
Use the check boxes to deselect the unnecessary items.

If you have selected the From Maven option,
the Download Library from Maven Repository is shown.
Specify the artifact to be downloaded and the destination directory.
(To search for the artifact, you can use a class name, a keyword or a search pattern,
or Maven coordinates.)
Optionally, select Sources and/or JavaDocs for the source code and
documentation to be included.

If you are creating a Java library, the Choose Modules dialog is shown.
Select the modules in which the new library will be used.

If you are creating an ActionScript/Flex library, the Choose Flash Build Configurations dialog is shown.
Select the build configurations in which the new library will be used.

Moving a project library to a global level

In the pane to the right, right-click the library of interest and
select Move to Global Libraries.

In the Move Library dialog, if necessary, change the library name.
If you want to change the location of the library files,
select the Move library files to check box and specify the corresponding location.