diff --git a/pom.xml b/pom.xml index 3ff2e1b1f0..86eff97c9b 100644 --- a/pom.xml +++ b/pom.xml @@ -31,7 +31,7 @@ - 3.2.5 + 3.3.9 @@ -131,7 +131,7 @@ maven-dependency-plugin - 2.10 + 3.1.1 @@ -157,11 +157,13 @@ maven-javadoc-plugin - 2.10.3 + ${maven.javadoc.version} com.docflex.javadoc.Doclet ${project.build.directory}/docflex-javadoc-${docflex.version}/lib/docflex-javadoc.jar - + none + + -license ${settings.localRepository}/com/docflex/docflex-alfresco-license/1.0/docflex-alfresco-license-1.0.license -template ${project.build.directory}/docflex-javadoc-${docflex.version}/templates/JavadocPro/FramedDoc.tpl -nodialog @@ -169,7 +171,8 @@ -p:filter.byAnns.include.classes=org.alfresco.api.AlfrescoPublicApi -p:docTitle "${project.name} ${project.version} Public API" -p:windowTitle "${project.name} ${project.version} Public API" - + + @@ -471,19 +474,21 @@ /share + 3.1.0 + 2.6 false 1.8 1.8 1.9.1 - 3.2 - 1.4 - 2.7 + 3.8.0 + 3.0.0-M2 + 3.1.0 8080 2.9.8 0.25.0 1.10.19 - 42.2.1 + 42.2.5 5432 5.1.40 3306 @@ -512,6 +517,8 @@ imageNameNotSet latest quay.io + + 2.3.0 @@ -552,6 +559,27 @@ 4.12 test + + + javax.xml.bind + jaxb-api + ${javax-jaxb.version} + provided + + + + com.sun.xml.bind + jaxb-impl + ${javax-jaxb.version} + provided + + + + org.apache.bcel + bcel + 6.2.99 + provided + @@ -559,7 +587,6 @@ maven-enforcer-plugin - 1.4 enforce-java @@ -569,7 +596,7 @@ - 1.8 + [1.8.0,) @@ -619,7 +646,6 @@ maven-surefire-plugin - 2.18 **/*UnitTest.java @@ -640,25 +666,26 @@ maven-javadoc-plugin - 2.10.4 + ${maven.javadoc.version} + + none + attach-javadocs + + none + jar - - -Xdoclint:none - + - - -Xdoclint:none - maven-clean-plugin - 2.6.1 + 3.1.0 default-clean @@ -697,7 +724,7 @@ maven-site-plugin - 3.3 + 3.7.1 default-site @@ -773,7 +800,12 @@ maven-surefire-plugin - 2.18 + 2.22.1 + + + --illegal-access=permit + + maven-install-plugin @@ -781,11 +813,11 @@ maven-jar-plugin - 2.5 + 3.1.0 maven-assembly-plugin - 2.2-beta-5 + 3.1.0 org.alfresco.maven.plugin @@ -871,7 +903,12 @@ maven-failsafe-plugin - 2.19 + 2.22.1 + + + --illegal-access=permit + + maven-antrun-plugin @@ -901,14 +938,14 @@ maven-javadoc-plugin - -Xdoclint:none + none org.codehaus.mojo license-maven-plugin - 1.8 + 1.16 ${license.verbose} @@ -1000,7 +1037,7 @@ maven-war-plugin - 2.5 + ${maven.war.plugin.version} org.alfresco.maven.plugin @@ -1019,11 +1056,11 @@ maven-clean-plugin - 2.6.1 + 3.1.0 maven-dependency-plugin - 2.9 + 3.1.1 maven-archetype-plugin diff --git a/rm-automation/rm-automation-community-rest-api/pom.xml b/rm-automation/rm-automation-community-rest-api/pom.xml index d45d244d80..c0fab9664b 100644 --- a/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/rm-automation/rm-automation-community-rest-api/pom.xml @@ -13,9 +13,9 @@ 1.8 - alfresco-rm-community-share - alfresco-rm-community-repo - 5.2.0-10 + alfresco-governance-services-community-share + alfresco-governance-services-community-repo + 6.0.0.3 2.0.0 @@ -59,7 +59,7 @@ org.projectlombok lombok - 1.16.10 + 1.18.6 provided @@ -73,5 +73,10 @@ alfresco-testng 1.1 + + org.apache.commons + commons-collections4 + 4.1 + diff --git a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/core/v0/APIUtils.java b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/core/v0/APIUtils.java index fb6e3d9802..3d3f362a41 100644 --- a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/core/v0/APIUtils.java +++ b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/core/v0/APIUtils.java @@ -27,6 +27,8 @@ package org.alfresco.rest.core.v0; import java.io.IOException; +import java.time.format.DateTimeFormatter; +import java.time.format.DateTimeFormatterBuilder; import org.apache.commons.io.IOUtils; import org.apache.http.HttpResponse; @@ -44,6 +46,10 @@ public class APIUtils { /** Logger for this class. */ private static final Logger LOGGER = LoggerFactory.getLogger(APIUtils.class); + /** The ISO instant formatter that formats or parses an instant in UTC, such as '2011-12-03T10:15:305Z' + * similar with {@link DateTimeFormatter#ISO_INSTANT}, but with only 3 nanoseconds*/ + public static final DateTimeFormatter ISO_INSTANT_FORMATTER = + new DateTimeFormatterBuilder().appendInstant(3).toFormatter(); /** Private constructor for helper class. */ private APIUtils() diff --git a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/v0/RMRolesAndActionsAPI.java b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/v0/RMRolesAndActionsAPI.java index 6f07fcf3ab..96025d88b3 100644 --- a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/v0/RMRolesAndActionsAPI.java +++ b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/v0/RMRolesAndActionsAPI.java @@ -27,6 +27,7 @@ package org.alfresco.rest.v0; import static org.alfresco.dataprep.AlfrescoHttpClient.MIME_TYPE_JSON; +import static org.alfresco.rest.core.v0.APIUtils.ISO_INSTANT_FORMATTER; import static org.apache.http.HttpStatus.SC_OK; import static org.testng.AssertJUnit.assertEquals; import static org.testng.AssertJUnit.assertNotNull; @@ -37,7 +38,6 @@ import java.io.IOException; import java.text.MessageFormat; import java.time.Instant; import java.time.ZonedDateTime; -import java.time.format.DateTimeFormatter; import java.util.Arrays; import java.util.Map; import java.util.Set; @@ -341,7 +341,7 @@ public class RMRolesAndActionsAPI extends BaseAPI requestParams.put("nodeRef", recNodeRef); if (date != null) { - String thisMoment = date.format(DateTimeFormatter.ISO_INSTANT); + String thisMoment = date.format(ISO_INSTANT_FORMATTER); requestParams.put("params", new JSONObject() .put("asOfDate", new JSONObject() .put("iso8601", thisMoment) @@ -368,7 +368,7 @@ public class RMRolesAndActionsAPI extends BaseAPI requestParams.put("name", RM_ACTIONS.COMPLETE_EVENT.getAction()); requestParams.put("nodeRef", recNodeRef); date = (date != null) ? date : Instant.now(); - String formattedDate = DateTimeFormatter.ISO_INSTANT.format(date); + String formattedDate = ISO_INSTANT_FORMATTER.format(date); requestParams.put("params", new JSONObject() .put("eventName", event.getEventName()) .put("eventCompletedBy", user) diff --git a/rm-automation/rm-automation-community-rest-api/src/main/resources/config.properties b/rm-automation/rm-automation-community-rest-api/src/main/resources/config.properties index 8b94951ea5..f66389d1f5 100644 --- a/rm-automation/rm-automation-community-rest-api/src/main/resources/config.properties +++ b/rm-automation/rm-automation-community-rest-api/src/main/resources/config.properties @@ -1,2 +1,3 @@ alfresco.server=localhost +alfresco.port=8080 rest.rmPath=alfresco/api/-default-/public/gs/versions/1 \ No newline at end of file diff --git a/rm-community/rm-community-repo/pom.xml b/rm-community/rm-community-repo/pom.xml index 76bbb7602f..8d8bed6f3f 100644 --- a/rm-community/rm-community-repo/pom.xml +++ b/rm-community/rm-community-repo/pom.xml @@ -265,6 +265,7 @@ true true true + diff --git a/rm-community/rm-community-repo/test/java/org/alfresco/module/org_alfresco_module_rm/test/integration/destroy/DestroyContentTest.java b/rm-community/rm-community-repo/test/java/org/alfresco/module/org_alfresco_module_rm/test/integration/destroy/DestroyContentTest.java index 489c8335c3..bea15c57b2 100644 --- a/rm-community/rm-community-repo/test/java/org/alfresco/module/org_alfresco_module_rm/test/integration/destroy/DestroyContentTest.java +++ b/rm-community/rm-community-repo/test/java/org/alfresco/module/org_alfresco_module_rm/test/integration/destroy/DestroyContentTest.java @@ -111,7 +111,7 @@ public class DestroyContentTest extends BaseRMTestCase Map props = new HashMap(1); props.put(ContentModel.PROP_TITLE, GUID.generate()); - InputStream is = System.class.getResourceAsStream("/alfresco/test/content/Image.jpg"); + InputStream is = DestroyContentTest.class.getResourceAsStream("/alfresco/test/content/Image.jpg"); subRecord = utils.createRecord(destroyableFolder, GUID.generate(), props, MimetypeMap.MIMETYPE_IMAGE_JPEG, is);