TNTU-121-SE-research / jpen

Java library for accessing pen/digitizer tablets and pointing devices
1 stars 0 forks source link

JPen is a Java library for accessing pen/digitizer tablets and pointing devices. The main documentation page is a good starting point to learn about JPen.

Deployment

For the artifact management of current project we use organisation's github packages.

To deploy the project you need to follow these steps:

Prerequisites

  1. Make sure you have Java Development Kit (JDK) installed on your system (JDK version recommended 1.8).
  2. Ensure that Apache Maven is installed. Maven is used for building and managing dependencies.
  3. Create a GitHub personal access token (PAT) that has the read:packages and write:packages scopes.
  4. Configure authentication for GitHub Packages. Create or update the ~/.m2/settings.xml file and add the following lines:
<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 http://maven.apache.org/xsd/settings-1.2.0.xsd">
  <servers>
    <server>
      <id>github</id>
      <username>username</username>
      <password>token</password>
    </server>
  </servers>
</settings>

Replace username with your GitHub username and token with a PAT (look at step 3)

Deployment Steps

  1. Specify artifact version in pom.xml
  2. Build the project using Maven:
    mvn clean install
  3. Deploy the artifact to GitHub Packages using the following command:
    mvn deploy

    Maven will package and publish the artifact to GitHub Packages.

That's it! You have successfully deployed the project and published the artifact to GitHub Packages.