Plugin configuration

Parameters

Most of the configuration parameters are shipped with default values, with normally don't need to be explicitly set. The following list gives an overview over the configurable parameters of the plugin.

Parameter

Description

Default / Sample value

targetPackage

Java package of the generated contraect classes

Default:com.kryptokrauts.contraect.generated

datatypePackage

Java package of the generated datatypes

Default: com.kryptokrauts.contraect.generated.datatypes

targetPath

Generated Java classes will be stored in this folder

Default: target/generated-sources/contraect

compilerBaseUrl (*)

Th base url of the sophia compiler

Sample:https://compiler.aepps.com

numTrials

Number of trials (with 1 sec delay) to wait for transaction to be mined -> relevant for stateful calls and the deploy method

Default: 60

directories (*)

List of directories to be scanned for contract files

Sample:

<directory>

${project.basedir}/src/main/resources

<directory>

contractSuffix

File suffix identifying a contract code file

Default:aes

* are mandatory fields that need to be set explicitely

Example

This is an example for the minimal required configuration that only provides the required parameters:

<plugin>
<groupId>com.kryptokrauts</groupId>
<artifactId>contraect-maven-plugin</artifactId>
<version>0.9.1</version>
<configuration>
<compilerBaseUrl>https://compiler.aepps.com</compilerBaseUrl>
<directories>
<directory>${project.basedir}/src/main/resources</directory>
</directories>
</configuration>
</plugin>