MVN

org.apache.sling : sling-project-archetype

Maven & Gradle

Jul 13, 2023

Project Archetype · This archetype is creating a full Sling Project composed of a OSGi Bundle and a Content Package which can be deployed to the Sling using specific profiles. It also contains two shadow folders that provide example code / files which are not part of the default build but can be easily copied into the active modules. If the project was created with the **optionAll** property set to **y** (yes) then an **All** package is created with acts as the single deployment unit of all bundles and packages in that project. Otherwise the **ui.apps** package is the deployment unit.

mvn archetype:generate -DarchetypeGroupId=org.apache.sling -DarchetypeArtifactId=sling-project-archetype -DarchetypeVersion=1.0.12
Copy
pom.xml
Table Of Contents

Latest Version

Choose a version of org.apache.sling : sling-project-archetype to generate a Maven project - Latest Versions:

  • Latest Stable: 1.0.12

All Versions

Choose a version of org.apache.sling : sling-project-archetype to generate a Maven project - All Versions:

Version Vulnerabilities Updated
1.0.x
sling-project-archetype-1.0.12
sling-project-archetype-1.0.8
sling-project-archetype-1.0.4
sling-project-archetype-1.0.2
sling-project-archetype-1.0.0

How to generate a maven project from archetype

Instead of manually creating the directory structure needed for an archetype, simply use:

mvn archetype:generate -DarchetypeGroupId=org.apache.sling -DarchetypeArtifactId=sling-project-archetype -DarchetypeVersion=1.0.12

Advertisement