Maven usage - axkr/symja_android_library GitHub Wiki

Maven Usage

Using Maven, add the following to your pom.xml if you want to use the core (and gpl module which is licensed under GPL) library in your Java program:

<dependencies>
  <dependency>
    <groupId>org.matheclipse</groupId>
      <artifactId>matheclipse-core</artifactId>
	  <version>3.1.0-SNAPSHOT</version>
    </dependency>
  <dependency>
    <groupId>org.matheclipse</groupId>
      <artifactId>matheclipse-gpl</artifactId>
	  <version>3.1.0-SNAPSHOT</version>
    </dependency>
</dependencies>

<repositories> 
  <repository>
    <id>snapshots-repo</id>
    <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    <releases>
      <enabled>false</enabled>
    </releases>
    <snapshots>
      <enabled>true</enabled>
    </snapshots>
  </repository>
</repositories>

If you would like to use the fast integer factorization, add this after Symja initialization:

Config.PRIME_FACTORS = new BigIntegerPrimality();

and run

mvn clean install

With the following command you can run the Symja console from the command line

mvn exec:java -pl matheclipse-io

With the following command you can run a Symja console with a Mathematica-compatible syntax and function names

mvn exec:java@mma -pl matheclipse-io 

With the following command you can build a fat jar which contains all needed classes

mvn assembly:single -pl matheclipse-io

You can create the dependency tree of the Mevn modules with the command

mvn dependency:tree
⚠️ **GitHub.com Fallback** ⚠️