Deploying Code to Nexus

Appian RPA robotic processes are powered by Java code contained in a central repository called Nexus. As you create or modify libraries, you'll need to deploy your changes to Nexus for the updates to appear in the Appian RPA Console. This page describes the steps you need to take to deploy code to Nexus.

Configuration in Appian RPA Console

Administrators can find Nexus configuration settings through the Appian RPA Console.

  1. Click Settings > Configuration
  2. In the Tools configuration section, you'll find these fields related to Nexus:
    • Default repository
    • Default repository username
    • Default repository password

Depending on your organization's governance, you can set up additional Nexus users to correspond with Appian RPA developer accounts. Alternatively, you can set up a single account for all developers to use to authenticate with Nexus. Note that Nexus credentials are stored locally in a developer's IDE, not within Appian RPA.

For a given method or library, you'll need to deploy the code's binary file to Nexus in order for updates to appear in the console.

Compile and deploy the project in Eclipse

When you're ready to deploy, you'll need to compile, package and deploy the Maven project as robot binaries, using the utilities provided by Maven and Eclipse.

We are going to create a "Maven Build" configuration:

  1. Open the Run menu.
  2. Click Run Configurations.
  3. Right click on Maven Build and select the option New.
  4. A window then appears in which we must complete the information:
    • Name:
    • Base directory: Select Workspace and select the project directory.
    • Goals: clean deploy
    • *User settings*: The default file will appear as ${user.home}/.m2/settings.xml, the one we configured previously. 2235158.png
  5. With this configuration, press the Run button to compile the project.
  6. After downloading all the dependencies and compiling the Java file, the result should appear as follows: 2235157.png
  7. Once finished, the binary deployed to the repository and is ready to be used in the Appian RPA Console.

Deploy using IntelliJ

If you're using IntelliJ, click Clean and then click deploy in the Maven menu to deploy the changes. Maven will auto-push to the repository using the credentials stored in your settings.xml file.

Note: If you prefer, you can deploy using the command line. Navigate to your robotic process folder and run the command mvn clean deploy to push the binaries.

Open in Github

On This Page