Add JavaScript Console in SDK 4.1

cancel
Showing results for 
Search instead for 
Did you mean: 
Active Member

Add JavaScript Console in SDK 4.1

Hello All,

I want to have javascript console in my Admin tools for my Alfresco SDK 4.1 project. I'm following all the steps as defined in below links.

https://github.com/Alfresco/alfresco-sdk/blob/master/docs/advanced-topics/amps.md

I've added amp files to extensions folder in platfrom and share project. Then, added line in Dockerfile. Also, I've added dependencies in pom as well.

However, I'm getting below errors. Can anyone please help me here?

Step 5/8 : RUN java -jar $TOMCAT_DIR/alfresco-mmt/alfresco-mmt*.jar install $TOMCAT_DIR/amps_share $TOMCAT_DIR/webapps/share -directory -nobackup -force
---> Running in 6afd2d28c38d
java.io.FileNotFoundException: /usr/local/tomcat/amps_share/javascript-console-share-0.6.amp/module.properties

at de.schlichtherle.truezip.file.TFileInputStream.newInputStream(TFileInputStream.java:108)

at de.schlichtherle.truezip.file.TFileInputStream.<init>(TFileInputStream.java:81)
at org.alfresco.repo.module.tool.ModuleDetailsHelper.createModuleDetailsFromPropertyLocation(ModuleDetailsHelper.java:105)
at org.alfresco.repo.module.tool.ModuleManagementTool.installModule(ModuleManagementTool.java:229)
at org.alfresco.repo.module.tool.ModuleManagementTool.installModules(ModuleManagementTool.java:172)
at org.alfresco.repo.module.tool.ModuleManagementTool.installModules(ModuleManagementTool.java:155)
at org.alfresco.repo.module.tool.ModuleManagementTool.main(ModuleManagementTool.java:837)
Caused by: java.util.zip.ZipException: ZIP file spanning/splitting is not supported!

1 Reply
Moderator
Moderator

Re: Add JavaScript Console in SDK 4.1

Try adding the dependencies to *-platform-docker and *-share-docker project's pom files. You dont have to manually install amps.

<youProject>-platform-docker

 

<dependency>
	<groupId>de.fmaul</groupId>
	<artifactId>javascript-console-repo</artifactId>
	<type>amp</type>
	<version>0.6</version>
	<exclusions>
		<exclusion>
			<groupId>*</groupId>
			<artifactId>*</artifactId>
		</exclusion>
	</exclusions>
</dependency>

 

 

<youProject>-share-docker

 

<dependency>
	<groupId>de.fmaul</groupId>
	<artifactId>javascript-console-share</artifactId>
	<type>amp</type>
	<version>0.6</version>
	<exclusions>
		<exclusion>
			<groupId>*</groupId>
			<artifactId>*</artifactId>
		</exclusion>
	</exclusions>
</dependency>

 

 

~Abhinav
(ACSCE, AWS SAA-C02, GAIQ)