Address maven warning : WARNING: An illegal reflective access operation has occurred

Description

Whilst running the ags build noticed the following warning

Acceptance criteria:

Warning has been investigated and necessary libraries have been updated:
The warning has been noticed on the following libs:
1.xstream-1.4.4.jar (for alfresco-governance-services-community-rest-api-explorer,alfresco-governance-services-enterprise-rest-api-explorer)
2.mybatis-3.3.0.jar (when running an integration test locally )
...

Note:
Note:

See https://winterbe.com/posts/2018/08/29/migrate-maven-projects-to-java-11-jigsaw/

If library upgrades not possible or too costly, we could get away with just adding --illegal-access=permit to the maven-surefire and failsafe plugins.

Activity

Show:
Rodica Sutu
April 12, 2019, 5:29 PM

The warning related to mybatis is coming from the library mybatis brought by alfresco-core and should be fixed by upgrading the library there. The issue is fixed in mybatis 3.5.0. Will open an issue for the repo team to upgrade the mybatis library as there is a release version for it

All Replies
April 12, 2019, 5:38 PM

[This comment has been reassigned to allreplies@alfresco.com as part of the Alfresco cloud migration project. The author of this comment was buildandpackaging] Rodica Sutu mentioned this issue in a merge request of records-management/records-management:
'RM-6804_FixWarningsIllegalReflecticeAccess'

Done

Assignee

Unassigned

Reporter

Rodica Sutu

Labels

None

Release Train

None

Delivery Team

None

Time remaining

0m

Sprint

None

Priority