You are here

Share archetype usage

The Share archetype has common usage patterns.

Common usage patterns of the Share archetype:

Command Description
./ Run the project (also sets up Spring Loaded for hot reloading). See inside script for further details.
mvn package Runs unit tests and packages AMP in ${}/${}.amp
mvn install Like mvn package but also installs AMP in local Maven repository where it can be accessed by projects that depend on it.
mvn install -DskipTests=true Like mvn install but skips unit tests
mvn install -Pamp-to-war Like mvn package -Pamp-to-war but also installs and runs the resulting WAR+AMP in Tomcat + H2 embedded from running and development. This also enables rapid application development features, like hot reloading and remote JUnit running. When you run this command then you can access Share via your browser at http://localhost:8081/share.
mvn install -Pamp-to-war,enterprise Like mvn install -Pamp-to-war but uses Enterprise artifacts. Note you need to have set up access to the private repository containing the Enterprise artifacts.
mvn clean -Ppurge Removes DB, alf_data, indexes and log files. Useful to purge the development repo (by default self contained in ${project.basedir}/alf_data_dev.
Note: This is an important command to use if you change significant settings in your project. For example, if you change the Alfresco edition from Community to Enterprise. It is important to purge databases and other data that might otherwise be persisted.

Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.