I have a rather old repo modification I am trying to recompile for the latest version of Alfresco.
The problem I have is that the java file tries to import org.alfresco.slingshot.web.scripts.NodeBrowserScript that is part of share. How do I add share as a dependency in maven or should I add something else?
org.alfresco.slingshot.web.scripts.NodeBrowserScript is called by node-browser webscript . This webscript is part alfresco-share-services.amp which is part of Alfresco Repository libraries and not share . Below are the descriptor and the template of the controller org.alfresco.slingshot.web.scripts.NodeBrowserScript , at path share-services/src/main/resources/alfresco/templates/webscripts/org/alfresco/slingshot/node-browser/
add below dependency in repository/platform project pom.xml file and check .
I added the dependencies to the platform pom.xml but changed project.version to alfresco.share.version. This downloads the amp, and I can see that inside the jar inside the amp is indeed org.alfresco.slingshot.web.scripts.NodeBrowserScript yet I still get the same error message when running mvn clean package, package org.alfresco.slingshot.web.scripts does not exist.