Alfresco / alfresco-sdk

The Alfresco In-Process SDK is based on Apache Maven, includes support for rapid and standard development, testing, packaging, versioning and release of your Alfresco integration and extension projects
Apache License 2.0
185 stars 113 forks source link

Upgrading from SDK 3 to 4 breaks build when using aikau-forms-runtime-support lib #585

Closed marsv024 closed 3 years ago

marsv024 commented 4 years ago

I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request

Description

Adding the aikau-forms-runtime-support lib to a share module did work fine with SDK 3. When upgrading to SDK 4 and Alfresco 6.1 or 6.2 Share Java code no longer compiles.

Adding the aikau-forms-runtime-support jar dependency to the share module changes a bunch of alfresco dependencies to scope "runtime". This behaviour can be observed by running mvn dependency:tree in my linked example project (eg. the dependency com.googlecode.json-simple:json-simple:jar:1.1.1). Two maven projects one called working and one called notworking are included that shows this behaviour.

Example can be found at: https://github.com/marsv024/sdk4-aikau-forms-runtime-issue

Your Environment

Additional information

<dependency>
  <groupId>org.alfresco</groupId>
  <artifactId>aikau-forms-runtime-support</artifactId>
  <version>1.0.101.19</version>
</dependency>