Создать Java проект на основе Maven архетипа sling-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.

Консольная команда для создания Java-проекта на основе архетипа sling-project-archetype:

mvn archetype:generate   -DgroupId="com.mycompany.app"   -DartifactId="my-app-id"   -DartifactName="My-artifactName"   -DappsFolderName="My-appsFolderName"   -DcontentFolderName="My-contentFolderName"   -Dpackage="My-package"   -DpackageGroup="My-packageGroup"   -DslingModelSubPackage="My-slingModelSubPackage"   -DslingHostName="My-slingHostName"   -DslingPort="My-slingPort"   -DoptionAll="My-optionAll"   -DoptionExample="My-optionExample"   -DarchetypeGroupId="org.apache.sling"   -DarchetypeArtifactId="sling-project-archetype"   -DarchetypeVersion="1.0.4"   -DinteractiveMode=false 

Обязательные параметры для создания java проекта:

artifactName
validationRegex: нет
appsFolderName
validationRegex: нет
contentFolderName
validationRegex: нет
package
validationRegex: нет
packageGroup
validationRegex: нет
slingModelSubPackage
validationRegex: нет
slingHostName
validationRegex: нет
slingPort
validationRegex: нет
optionAll
validationRegex: ^(y|n)$
optionExample
validationRegex: ^(s|m|d)$

Модули в готовом maven проекте

  • core
  • core.example
  • ui.apps
  • ui.apps.example
  • all

Подробная информация об архетипе sling-project-archetype

Лицензия

Лицензия

Группа

Группа

org.apache.sling
Идентификатор

Идентификатор

sling-project-archetype
Версия

Версия

1.0.4
Тип

Тип

maven-archetype
Описание

Описание

Sling 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.
Организация-разработчик

Организация-разработчик

The Apache Software Foundation

Как подключить последнюю версию

mvn archetype:generate -DgroupId=<com.mycompany.app> -DartifactId=<my-app>  -DarchetypeGroupId=org.apache.sling -DarchetypeArtifactId=sling-project-archetype -DarchetypeVersion=1.0.4 -DinteractiveMode=false

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
commons-io : commons-io jar 2.6

provided (2)

Идентификатор библиотеки Тип Версия
org.apache.felix : org.apache.felix.scr.annotations jar 1.9.12
biz.aQute : bndlib jar 1.50.0

Модули Проекта

Данный проект не имеет модулей.