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 ...

Get Learning Alfresco Web Scripts now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.