Book Image

Learning Alfresco Web Scripts

By : Ramesh Chauhan
Book Image

Learning Alfresco Web Scripts

By: Ramesh Chauhan

Overview of this book

Table of Contents (18 chapters)
Learning Alfresco Web Scripts
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Generating AMP from the default project


Once the default project structure is ready, let's try to generate the AMP file for it. Go to the location of the created project structure. In order to create an AMP file for it, run the mvn package -DskipTests=true command.

Here, we are not interested in running the tests while generating the AMP; hence, we have explicitly mentioned skipTests as true. If you want to run the test as well, you should simply execute the mvn package command.

Running the preceding command should create an AMP file named example-repo.amp under the target folder inside the project we created. You can open the AMP file with any ZIP extractor and browse through it.

Note

You can use the default project structure to not only create web scripts, but also for other customizations to Alfresco such as custom actions, custom content model, custom workflow, and so on, and create an AMP to make them deployment ready.

Now, run the mvn clean command that will just clean up the target folder...