Developer Notes - archimatetool/archi-scripting-plugin GitHub Wiki
See https://github.com/archimatetool/archi-scripting-plugin/issues/85
Versions of GraalVM from 23.1 and later have changed the jars and dependencies (note that GraalVM uses its own "shadowed" version of icu4j):
| Jar | Maven |
|---|---|
| js-scriptengine-24.1.2.jar | https://mvnrepository.com/artifact/org.graalvm.js/js-scriptengine |
| js-language-24.1.2.jar | https://mvnrepository.com/artifact/org.graalvm.js/js-language |
| polyglot-24.1.2.jar | https://mvnrepository.com/artifact/org.graalvm.polyglot/polyglot |
| truffle-api-24.1.2.jar | https://mvnrepository.com/artifact/org.graalvm.truffle/truffle-api |
| regex-24.1.2.jar | https://mvnrepository.com/artifact/org.graalvm.regex/regex |
| nativeimage-24.1.2.jar | https://mvnrepository.com/artifact/org.graalvm.sdk/nativeimage |
| word-24.1.2.jar | https://mvnrepository.com/artifact/org.graalvm.sdk/word |
| collections-24.1.2.jar | https://mvnrepository.com/artifact/org.graalvm.sdk/collections |
| icu4j-24.1.2.jar | https://mvnrepository.com/artifact/org.graalvm.shadowed/icu4j |
For the debugger and profiler:
| Jar | Maven |
|---|---|
| chromeinspector-23.0.7.jar | https://mvnrepository.com/artifact/org.graalvm.tools/chromeinspector |
| profiler-23.0.7.jar | https://mvnrepository.com/artifact/org.graalvm.tools/profiler |
To determine dependencies use this pom.xml file and run mvn dependency:tree:
Click me
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>test</groupId>
<artifactId>test</artifactId>
<version>1.0.0</version>
<packaging>pom</packaging>
<dependencies>
<dependency>
<groupId>org.graalvm.js</groupId>
<artifactId>js-scriptengine</artifactId>
<version>24.1.2</version>
</dependency>
<dependency>
<groupId>org.graalvm.js</groupId>
<artifactId>js-language</artifactId>
<version>24.1.2</version>
</dependency>
<dependency>
<groupId>org.graalvm.polyglot</groupId>
<artifactId>polyglot</artifactId>
<version>24.1.2</version>
</dependency>
<dependency>
<groupId>org.graalvm.truffle</groupId>
<artifactId>truffle-api</artifactId>
<version>24.1.2</version>
</dependency>
</dependencies>
</project>To download dependencies use this pom.xml file and run mvn clean package:
Click me
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<!-- Invoke this with mvn clean package -->
<!-- Jars will be copied to target/lib relative to this pm.xml file -->
<groupId>test</groupId>
<artifactId>test</artifactId>
<version>1.0.00</version>
<!-- Add dependencies here -->
<dependencies>
<dependency>
<groupId>org.graalvm.js</groupId>
<artifactId>js-scriptengine</artifactId>
<version>24.1.2</version>
</dependency>
<dependency>
<groupId>org.graalvm.js</groupId>
<artifactId>js-language</artifactId>
<version>24.1.2</version>
</dependency>
<dependency>
<groupId>org.graalvm.polyglot</groupId>
<artifactId>polyglot</artifactId>
<version>24.1.2</version>
</dependency>
<dependency>
<groupId>org.graalvm.truffle</groupId>
<artifactId>truffle-api</artifactId>
<version>24.1.2</version>
</dependency>
</dependencies>
<build>
<plugins>
<!-- Maven Dependency Plugin: copy all dependencies to target/lib -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.10.0</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/lib</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
<stripVersion>false</stripVersion> <!-- removes version from filename -->
<stripClassifier>true</stripClassifier>
<includeScope>runtime</includeScope> <!-- or compile if you prefer -->
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>| Jar | Maven |
|---|---|
| graal-sdk-22.3.0.jar | https://mvnrepository.com/artifact/org.graalvm.sdk/graal-sdk |
| js-22.3.0.jar | https://mvnrepository.com/artifact/org.graalvm.js/js |
| js-scriptengine-22.3.0.jar | https://mvnrepository.com/artifact/org.graalvm.js/js-scriptengine |
| truffle-api-22.3.0.jar | https://mvnrepository.com/artifact/org.graalvm.truffle/truffle-api |
| regex-22.3.0.jar | https://mvnrepository.com/artifact/org.graalvm.regex/regex |
| icu4j-71.1 | https://mvnrepository.com/artifact/com.ibm.icu/icu4j |
A useful link for dependencies: