Suche

What you will learn

You will learn how to setup a repository on a nexus instance and what you need to know to be able to include the repository as a source in the PAK applications. We will shed light on the difference between Command and Workflow repositories, how to group repositories and why indexing the artifacts is important.

Prerequisites

  • A running Nexus Repository OSS instance

  • Admin privileges to access the settings page and create new repositories

  • Roughly 15 minutes

What is Nexus and a Repository?

Nexus is a repository manager that allows you to manage software artifacts required for development, deployment, and provisioning. It can store and manage binary software artifacts and their associated metadata in a centralized location. These artifacts include commands, workflows, libraries, and dependencies that you need for working with PAK applications. Those artifacts are put into containers we call a nexus repository, which enable us to differentiate between sources from within one manager.

Setting Up a Nexus Repository

Navigating to the Settings

To create a new repository for your commands or workflows you first need to navigate into the Nexus Settings > Repositories and press the Create Repository button. The steps are marked in the picture below

NavigateToCreateRepository

Choose the Correct Repository Type

Next you will need to choose from a list of types your nexus repository should be. Those types define how the artifacts are handled by the manager and what additional metadata is required. For Command repositories choose maven2 (hosted) and for Workflow repositories raw (hosted).

Configure New Repository

After choosing the repository type you need to configure the last steps of your repository. Raw repositories do not need that much of configuring in contrast to the maven2 repositories. In the following we will speak about configuring maven2 correctly.

Configure maven2 Repository
1 Name your repository as you like. Here we name it howto-test.
2 We recommend to choose Mixed for Version policy. This allows you to host snapshots aswell as release versions of your commands.
3 Choose a blob store for your artifacts.
4 We recommend to choose Allow Redeploy for the Deployment policy. This allows you to overwrite the artifacts without deleting them before.

At last, you can commit your config with the Create repository button at the end of the page. You can check your new repository and its address now under the Browse section of the nexus.

Grouped Repositories

When you created a repository to hold your commands, you cannot start with the applications yet. The most barebone Command artifact may have a dependency to a third party library. You could manually add the library also to your commands repository, but then in time your repository will fill artifacts that aren’t actual commands. Instead, we create a second repository and combine both commands and the third party repository to a Grouped Repository.

When you have dependencies that can be fetched from the maven repository, then you do not need to manually copy and upload your dependencies into a repository. Create a new repository and choose maven2 (proxy) as its type, and configure it to point to the url https://repo1.maven.org/maven2/. This will proxy all dependency fetch calls to that repository over to the maven repository, providing you with all dependencies. When you have non public libraries then you need to create a new repository as explained above.

Creating a Grouped Repository

Navigate to the Create new Repository view and create a repository of the type maven2 (group). At the configuration at the bottom now move the Command repository and third-party repository to the members to group them together.

GroupRepositoryConfig
Use the newly grouped repository as a source for the pak applications instead of the commands only repository!

Indexing Artifacts of maven2 Repositories

The last step to successfully work with nexus repositories is to configure indexing tasks for your maven2 repositories. Artifact in such a repository need to be indexed by such a task, to be able to be found when requested. Only after an index was run do changes to the artifacts take effect.

Create Index Task

To create a task to trigger the indexing navigate into Nexus Settings > Tasks and press the Create task button.

NavigateToCreateIndexTask

Configure Index Task

Then choose Maven - Publish Maven Indexer files from the available task lists and configure it according to below.

ConfigureIndexTask
1 Give your task a name that you can recognize it later.
2 Choose the repository to index
3 Choose how often you want to index. To index after a set time will allow to react to changes automatically. We recommend to choose Hourly to keep the system up to date.

Now you can run the task and let the repository index your artifacts.

Pay attention to index in the correct order for grouped repositories. First index the lowest repositories in the hierarchy, your command repository for example. And at the end index the group repositories. Otherwise, the grouped repository may not notice the changes of its child repositories.
We recommend therefore to run the indexing for hosted repos 15 minutes prior to the grouped repos.

Sonatype Nexus

PAK features connectors and commands for Sonatype Nexus. This means the software can directly interact with Nexus repositories for storing and managing artifacts. Through these connectors, PAK can automate tasks like uploading binaries or retrieving dependencies, ensuring efficient artifact management within Nexus.

Jenkins

PAK has connectors and commands for Jenkins. This allows the software to directly communicate with Jenkins servers, enabling the automation of CI/CD (Continuous Integration/Continuous Deployment) tasks. Through these connectors, PAK can trigger builds, fetch build statuses, or manage job configurations, streamlining the CI/CD processes within Jenkins.

Git Hub

PAK possesses connectors and commands for GitHub. This means the software can interface directly with GitHub repositories, facilitating actions like code pushes, pull requests, or issue tracking. Through these connectors, PAK can automate various GitHub operations, enhancing code collaboration and repository management.

Atlassian Confluence

PAK is equipped with connectors and commands for Atlassian Confluence. This enables the software to directly interact with Confluence spaces and pages. Through these connectors, PAK can automate actions such as creating, updating, or retrieving documentation, ensuring efficient content management and collaboration within Confluence.

Codebeamer

PAK features connectors and commands for Codebeamer. This allows the software to seamlessly integrate with Codebeamer’s ALM (Application Lifecycle Management) platform. Through these connectors, PAK can automate tasks like issue tracking, test management, or requirements tracing, enhancing the coordination and management of software development processes.

JFrog Artifactory

PAK has connectors and commands for JFrog Artifactory. This means the software can directly interface with Artifactory repositories, enabling actions like artifact storage, retrieval, and management. Through these connectors, PAK can automate tasks such as deploying artifacts or managing repository configurations, streamlining the integration and management of binary artifacts within Artifactory.

Amazon Web Services (AWS)

PAK has connectors and commands for Amazon Web Services (AWS). This means the software possesses specialized interfaces to directly interact with AWS services and execute actions on the AWS platform. Through these connectors, PAK can automate AWS-specific commands, such as launching EC2 instances, managing S3 buckets, or configuring Lambda functions. This allows for efficient integration, management, and automation of AWS resources and services directly from PAK.

Atlassian Jira

PAK features integration tools and capabilities for Atlassian Jira. These tools allow for a direct connection to Jira and the execution of specific actions. Using these integration tools, PAK can automate Jira actions such as adding comments or changing ticket priorities, ensuring seamless handling and coordination of Jira processes.

Git

PAK has connectors and commands for Git. This means it has interfaces to directly communicate with Git and execute actions. Through these connectors, the software can automate Git commands such as retrieving changes or creating branches, enabling efficient integration and management of Git tasks.

Generic Human Tasks

PAK offers you a standard set of commands which require creative input from the user. Enables you to start with automating your workflows, that still need abit of human input.

Generic Commands

PAK offers a standard set of commands giving you the first steps to automate your workflows.

Nexus Maven Command Pool

Nexus is an artifact repository manager for storing binaries, libraries, and artifacts, supporting formats like Maven. Maven, a software project management tool, is based on the Project Object Model (POM) and allows developers to consistently define projects and dependencies. Our Command Pool offers commands for interactions between Maven and Nexus, such as artifact uploads or dependency retrieval.

Artifactory Maven Command Pool

Artifactory allows developers to store, retrieve, and manage binary files and artifacts, providing a
central source for all binaries used in a development process. Apache Maven is a software project
management and comprehension tool that enables developers to consistently describe a project and
its dependencies. Our Command Pool offers a collection of commands used to facilitate interactions
between Maven and Artifactory, such as uploading artifacts or retrieving dependencies.

Open API Command Interpreter

The OpenApi Command Interpreter allows you the automatic parsing of commands from an OpenApi defintion. No additional code needs to be written anymore, just add the address to the definition and our framework does the rest!

Kotlin Command Interpreter

The Kotlin Command Interpreter allows you the parsing and execution of commands within a Kotlin environment to automate various tasks or processes.

Bpmn Interpreter

Workflows come in many shapes and forms. The BPMN (Business Process Model and Notation) Interpreter enables the parsing of worklows defined in the BPMN format into the PAK intern model.

Human Task Interpreter

The Human Task Interpreter allows you the parsing and running of commands within a HTML and Javascript environment. Use this to build commands which need the creative input of a workflow user!

Java Command Interpreter

The Java Command Interpreter allows you the parsing and execution of commands within a Java
environment to automate various tasks or processes.

Core

The heart of the PAK-Framework. Contains the means to run workflows with the PAK engine, but also the possibility to enrich the frameworks interfaces with your own implementations and solutions.

RocksDB Persistence

Data that is generated by a workflow run needs to be saved for short or longer terms. Our solution to the Persistence Interface of the PAK-Framework is to use the high-performance, key-value based RocksDB developed by Facebook.

PAK online

PAK Online is a web based application and provides an Open API based REST API. It enables you to upload workflows and run them periodically or on REST demand.

Command Line App

Run tasks and workflows on the console or as part of a CI/CD Pipeline with our Command Line Interface.

Workflow Editor

With our specially developed editor, a wide variety of workflows can be easily modeled in the wide known BPMN process format.

Workflow Executor

The Workflow Executor is the application to run your workflows. It features a multilingual UI and easy managment of your favorite workflows.

Support

We offer a community website where you can exchange ideas and support each other. For our Pro packages we also offer full support via email.