How to use the Processing core library with Maven?

早过忘川 提交于 2021-02-07 05:21:11

问题


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


回答1:


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>



回答2:


This answer is out deprecated since Processing version 3 (first relleased on 26 July 2014).


No, there isn't a repository that I could find which has up-to-date processing jars (and there isn't a repo maintained by the processing developers).

You could install the processing jars manually in your local repo (or nexus proxy if you have one)

Have a look at http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html



来源:https://stackoverflow.com/questions/14111805/how-to-use-the-processing-core-library-with-maven

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!