-
Notifications
You must be signed in to change notification settings - Fork 19
Adding the License Management to your current project (only for APS SDK versions earlier than 2.0.9 or 1.7.4)
Piergiorgio Lucidi edited this page Apr 1, 2022
·
1 revision
Starting from APS SDK 2.0.9 and 1.7.4 we added a new license management to make easier the license propagation in terms of classloading for unit testing but also for executing integration tests building the Activiti App container correctly.
If you are currently working on any previous version of APS SDK 2.x or 1.x, now you can add the new License Management to your current APS SDK project applying the following Maven configuration:
- Create the new
license
folder in the root of the project - Add the following
plugin
snippet in theaps-extensions-jar/pom.xml
inside thebuild/plugins
element:
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-license-for-unit-tests</id>
<phase>generate-test-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.basedir}/src/test/resources</outputDirectory>
<overwrite>false</overwrite>
<resources>
<resource>
<directory>${project.parent.basedir}/license</directory>
<filtering>false</filtering>
<includes>
<include>*.lic</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
- Add the following
execution
snippet in theactiviti-app-overlay-docker/pom.xml
inside thebuild/plugins/maven-resources-plugin
element:
<execution>
<id>copy-license-for-containers-and-ITs</id>
<phase>pre-integration-test</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.basedir}/src/main/docker/license</outputDirectory>
<overwrite>false</overwrite>
<resources>
<resource>
<directory>${project.parent.basedir}/license</directory>
<filtering>false</filtering>
<includes>
<include>*.lic</include>
</includes>
</resource>
</resources>
</configuration>
</execution>