Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use the Processing core library with Maven?

I want to use Processing libs in my Maven project, but I can't find any artifact for dependency. Where can I get it?

like image 791
PhilippeVienne Avatar asked Jan 01 '13 15:01

PhilippeVienne


People also ask

How does Maven connect to central repository?

Maven central repository is located at http://repo.maven.apache.org/maven2/. Whenever you run build job, maven first try to find dependency from local repository. If it is not there, then, by default, maven will trigger the download from this central repository location.

How do I publish a library in Maven Central?

Here's a quick overview of the steps we'll go through: Registering a Jira account with Sonatype, and verifying your ownership of the group ID you want to publish your artifact with. Generating a GPG key pair for signing your artifacts, publishing your public key, and exporting your private key.

What is library in Maven?

One advantage of using Maven is, that it is useful for downloading libraries. Libraries are source code which has been packaged to be used by anyone. For example we have used the JUnit library for unit tests.


1 Answers

Edit

Since Processing 3, the official artifacts are released to maven central.

Use like this (latest version as of February 2019):

<dependency>
    <groupId>org.processing</groupId>
    <artifactId>core</artifactId>
    <version>3.3.7</version>
</dependency>

For old releases

You can use the stable processing libraries from clojars.org/quil/processing-core.

To use Clojars repository in a Maven project, add the following to your project's pom.xml:

Repository

<repositories>
    <!-- ... -->
    <repository>
        <id>clojars.org</id>
        <url>http://clojars.org/repo</url>
    </repository>
    <!-- ... -->
</repositories>

Dependency

<dependencies>
    <!-- ... -->
    <dependency>
        <groupId>quil</groupId>
        <artifactId>processing-core</artifactId>
        <version>2.2.1</version>
    </dependency>
    <!-- ... -->
</dependencies>
like image 148
libnull-dev Avatar answered Sep 21 '22 17:09

libnull-dev