When developing user-defined functions (UDFs) in MaxCompute Studio, you must upload dependency files—such as JAR files, Python scripts, compressed packages, and tables—as resources before creating a UDF. Project Explorer provides a visual interface to manage the full resource lifecycle: add, copy the local metadata path, and remove resources.
Prerequisites
Before you begin, ensure that you have:
MaxCompute Studio installed as a plugin in IntelliJ IDEA
A MaxCompute project connected in Project Explorer
Add a resource
In the IntelliJ IDEA menu bar, choose MaxCompute > Add Resource.
In the Add Resource dialog, configure the following parameters. Add resources other than table resources
Add table resources 
Files of table resources cannot be obtained.
Parameter Description MaxCompute project The MaxCompute project to add the resource to. Select a project from the drop-down list. If the project is not listed, click the icon next to the list to add it. Resource type The type of resource. See Resource types for guidance on choosing the right type. Resource file The local file to upload. Required when Resource type is file,jar,py, orarchive.MaxCompute table The table to add as a resource. Select from the drop-down list. For partitioned tables, MaxCompute takes a single partition as the resource, not the whole table. Table partition The partition to add. Required when MaxCompute table is a partitioned table. Format: partition_col1 = partition_col_value1, partition_col2 = partition_col_value2, ...Resource name The name to assign to the resource. Resource comment An optional description of the resource. Force update if already exists When selected, the new resource overwrites any existing resource with the same name. Click OK.
In Project Explorer, right-click the Resources folder and select Refresh meta. The resource appears in the resource list.
Resource types
Choose the resource type that matches your dependency:
| Resource type | When to use | Supported formats |
|---|---|---|
jar | Java-based UDF dependencies: compiled JAR files. | .jar |
py | Python-based UDF dependencies: Python scripts. | .py |
archive | UDFs that depend on a directory of files or a library bundle. | .zip, .tgz, .tar.gz, .tar, .jar |
file | File resources. | .zip, .so, .jar |
table | UDFs that read from a MaxCompute table at runtime. Only a single partition can be added—partitioned tables cannot be added in full. Local file retrieval is not supported for this type. | — |
Copy a resource file path
After adding a resource, copy its local metadata path to locate the file on disk.
This operation is not supported for table resources.
In Project Explorer, expand the Resources folder for your MaxCompute project.
Right-click the resource file and select Copy local meta path.

The path is copied to your clipboard. You can then obtain the resource file from that path.
Remove a resource
In Project Explorer, expand the Resources folder for your MaxCompute project.
Right-click the resource and select Delete resource from server.

In the Confirmation Required dialog, click OK.
Right-click the Resources folder and select Refresh meta. The resource no longer appears in the list.