cancel
Showing results for 
Search instead for 
Did you mean: 

Creating an AMP file

eswbitto
Confirmed Champ
Confirmed Champ
Hello People,

I'm really new to creating amp files and I have read the following two links on how to create one. I think I read it like 5 times. It still has gone past my head as far as understanding it. Can anyone help dumb it down for me?

http://wiki.alfresco.com/wiki/AMP_Files
http://wiki.alfresco.com/wiki/Developing_an_Alfresco_Module


Basically my goal is. I'm wanting to add jetty-ajp-6.1.14.jar to my alfresco.war file. In order to do that I think the best way is to just create an amp file and install it into that file. My only problem is I can't seem to find an example amp file to go off of to understand how the file is made.

I'm not a developer so please excuse my ignorance on this. Any help would be greatly appreciated.



5 REPLIES 5

jpotts
World-Class Innovator
World-Class Innovator
An amp is just a zip that has been renamed to .amp. That means once you find an amp to use as an example you can unzip it using unzip (or look at its contents using unzip -l). The zip follows a convention for a directory structure and includes a file called module.properties that describes the amp. So if you want to create an amp, follow the resources you found to understand what goes in the module.properties file, then create a zip. In your case, the zip would contain a single directory called "lib" and in that you would place the JAR file.

You might be interested in the Google Docs integration amp that can be downloaded from the <a href="https://wiki.alfresco.com/wiki/Community_file_list_4.2.c">4.2.c file list</a> page.

Jeff

fabrizio90
Champ in-the-making
Champ in-the-making
Hi jpotts,

following your instruction, i've created my amp. but everytime i try to install it, the console says "no module.propertis file has been found". but the file is in the amp module Smiley Sad

jpotts
World-Class Innovator
World-Class Innovator
Show me what the output of unzip -l yourAmp.amp is.

Jeff

fabrizio90
Champ in-the-making
Champ in-the-making
the output:

Archive:  /Users/Fabrizio/Desktop/Recovery.amp
  Length     Date   Time    Name
——–    —-   —-    —-
        0  09-24-13 16:14   Recovery/
        0  09-24-13 16:13   Recovery/bin/
    15845  09-23-13 11:02   Recovery/bin/reset-password-dialog-2.1.0.jar
      176  09-24-13 16:14   Recovery/module.properties
——–                   ——-
    16021                   4 files

jpotts
World-Class Innovator
World-Class Innovator
Try moving Recovery/bin/reset-password-dialog-2.1.0.jar to /lib/reset-password-dialog-2.1.0.jar.

Also move Recovery/module.properties to module.properties.

Remove Recovery and Recovery/bin/.

Jeff