From 8c3a9efa5e26dedb3a35d2f3a9e78718960914ad Mon Sep 17 00:00:00 2001 From: Cris Rockwell Date: Wed, 6 Oct 2021 17:25:25 -0400 Subject: [PATCH 1/4] SLING-10857 added sling-project-archetype to the Maven Archetype page --- .../content/documentation/development/maven-archetypes.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/jbake/content/documentation/development/maven-archetypes.md b/src/main/jbake/content/documentation/development/maven-archetypes.md index 9d4ceb90d4..876b47cf28 100644 --- a/src/main/jbake/content/documentation/development/maven-archetypes.md +++ b/src/main/jbake/content/documentation/development/maven-archetypes.md @@ -6,6 +6,10 @@ tags=development,maven Sling includes four Maven archetypes to quick start development. See [http://maven.apache.org/archetype/maven-archetype-plugin/](http://maven.apache.org/archetype/maven-archetype-plugin/) for general information on using Maven archetypes. The Maven groupId for all Sling archetypes is `org.apache.sling`. +### sling-project-archetype + +This archetype will create a Sling project that can be deployed on the Sling 12. In contrast to the Apache Sling Maven Archetypes this one is geared towards creating a full project and not just a single module. See the [sling-project-archetype github repo](https://github.com/apache/sling-project-archetype) for more details. + ### sling-launchpad-standalone-archetype This archetype generates a Maven project which will build a standalone Launchpad JAR file using the default bundle set. For demonstration purposes, the generated project includes an extra bundle list file (`src/main/bundles/list`) which includes Apache Felix FileInstall as well as a test configuration file (`src/test/config/sling.properties`). From 55146c908156f1e2367c1ec62e10dcd0d9293a85 Mon Sep 17 00:00:00 2001 From: Cris Rockwell Date: Thu, 7 Oct 2021 16:09:19 -0400 Subject: [PATCH 2/4] SLING-10857 Alphabetized the Maven archetypes. Added sling-content-package-archetype --- .../development/maven-archetypes.md | 33 ++++++++++--------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/src/main/jbake/content/documentation/development/maven-archetypes.md b/src/main/jbake/content/documentation/development/maven-archetypes.md index 876b47cf28..8c62313478 100644 --- a/src/main/jbake/content/documentation/development/maven-archetypes.md +++ b/src/main/jbake/content/documentation/development/maven-archetypes.md @@ -4,33 +4,36 @@ status=published tags=development,maven ~~~~~~ -Sling includes four Maven archetypes to quick start development. See [http://maven.apache.org/archetype/maven-archetype-plugin/](http://maven.apache.org/archetype/maven-archetype-plugin/) for general information on using Maven archetypes. The Maven groupId for all Sling archetypes is `org.apache.sling`. +Sling includes several Maven archetypes to quick start development. See [http://maven.apache.org/archetype/maven-archetype-plugin/](http://maven.apache.org/archetype/maven-archetype-plugin/) for general information on using Maven archetypes. The Maven groupId for all Sling archetypes is `org.apache.sling`. -### sling-project-archetype - -This archetype will create a Sling project that can be deployed on the Sling 12. In contrast to the Apache Sling Maven Archetypes this one is geared towards creating a full project and not just a single module. See the [sling-project-archetype github repo](https://github.com/apache/sling-project-archetype) for more details. - -### sling-launchpad-standalone-archetype +### sling-bundle-archetype -This archetype generates a Maven project which will build a standalone Launchpad JAR file using the default bundle set. For demonstration purposes, the generated project includes an extra bundle list file (`src/main/bundles/list`) which includes Apache Felix FileInstall as well as a test configuration file (`src/test/config/sling.properties`). +This archetype generates a Maven project which will build a basic OSGi bundle including support for the Felix SCR Annotations. It is pre-configured to install using the Felix Web Console when the profile `autoInstallBundle` is activated. -### sling-launchpad-webapp-archetype +### sling-content-package-archetype -This archetype generates a Maven project which will build a Launchpad WAR file using the default bundle set. For demonstration purposes, the generated project includes an extra bundle list file (`src/main/bundles/list`) which includes Apache Felix FileInstall as well as a test configuration file (`src/test/config/sling.properties`). +Maven archetype for a Jackrabbit FileVault content package ### sling-initial-content-archetype This archetype generates a Maven project which will build an OSGi bundle that supports JCR NodeType registration (in `SLING-INF/nodetypes/nodetypes.cnd`) and initial content loading (in `SLING-INF/scripts` and `SLING-INF/content`). -### sling-servlet-archetype +### sling-jcrinstall-bundle-archetype -This archetype generates a Maven project which will build an OSGi bundle containing two Servlets registered with Sling, one registered by path and one registered by resource type. +This archetype generates a Maven project which will build a basic OSGi bundle including support for the Felix SCR Annotations. It is pre-configured to install using a WebDAV PUT into the JCR when the profile `autoInstallBundle` is activated. -### sling-bundle-archetype +### sling-launchpad-standalone-archetype -This archetype generates a Maven project which will build a basic OSGi bundle including support for the Felix SCR Annotations. It is pre-configured to install using the Felix Web Console when the profile `autoInstallBundle` is activated. +This archetype generates a Maven project which will build a standalone Launchpad JAR file using the default bundle set. For demonstration purposes, the generated project includes an extra bundle list file (`src/main/bundles/list`) which includes Apache Felix FileInstall as well as a test configuration file (`src/test/config/sling.properties`). +### sling-launchpad-webapp-archetype -### sling-jcrinstall-bundle-archetype +This archetype generates a Maven project which will build a Launchpad WAR file using the default bundle set. For demonstration purposes, the generated project includes an extra bundle list file (`src/main/bundles/list`) which includes Apache Felix FileInstall as well as a test configuration file (`src/test/config/sling.properties`). -This archetype generates a Maven project which will build a basic OSGi bundle including support for the Felix SCR Annotations. It is pre-configured to install using a WebDAV PUT into the JCR when the profile `autoInstallBundle` is activated. +### sling-project-archetype + +This archetype will create a Sling project that can be deployed on the Sling 12. In contrast to the Apache Sling Maven Archetypes this one is geared towards creating a full project and not just a single module. See the [sling-project-archetype github repo](https://github.com/apache/sling-project-archetype) for more details. + +### sling-servlet-archetype + +This archetype generates a Maven project which will build an OSGi bundle containing two Servlets registered with Sling, one registered by path and one registered by resource type. \ No newline at end of file From 0585e74ae6a651498003b873ce2b3f3e3285e2ed Mon Sep 17 00:00:00 2001 From: Cris Rockwell Date: Fri, 8 Oct 2021 12:51:30 -0400 Subject: [PATCH 3/4] Flagged archetypes with failing tests as deprecated (until they are fixed). Moved archetypes with passing tests that seem in good working order to the top. --- .../development/maven-archetypes.md | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/main/jbake/content/documentation/development/maven-archetypes.md b/src/main/jbake/content/documentation/development/maven-archetypes.md index 8c62313478..90c6124477 100644 --- a/src/main/jbake/content/documentation/development/maven-archetypes.md +++ b/src/main/jbake/content/documentation/development/maven-archetypes.md @@ -6,10 +6,6 @@ tags=development,maven Sling includes several Maven archetypes to quick start development. See [http://maven.apache.org/archetype/maven-archetype-plugin/](http://maven.apache.org/archetype/maven-archetype-plugin/) for general information on using Maven archetypes. The Maven groupId for all Sling archetypes is `org.apache.sling`. -### sling-bundle-archetype - -This archetype generates a Maven project which will build a basic OSGi bundle including support for the Felix SCR Annotations. It is pre-configured to install using the Felix Web Console when the profile `autoInstallBundle` is activated. - ### sling-content-package-archetype Maven archetype for a Jackrabbit FileVault content package @@ -18,22 +14,27 @@ Maven archetype for a Jackrabbit FileVault content package This archetype generates a Maven project which will build an OSGi bundle that supports JCR NodeType registration (in `SLING-INF/nodetypes/nodetypes.cnd`) and initial content loading (in `SLING-INF/scripts` and `SLING-INF/content`). -### sling-jcrinstall-bundle-archetype +### sling-project-archetype + +This archetype will create a Sling project that can be deployed on the Sling 12. In contrast to the Apache Sling Maven Archetypes this one is geared towards creating a full project and not just a single module. See the [sling-project-archetype github repo](https://github.com/apache/sling-project-archetype) for more details. + + +### sling-bundle-archetype (deprecated) + +This archetype generates a Maven project which will build a basic OSGi bundle including support for the Felix SCR Annotations. It is pre-configured to install using the Felix Web Console when the profile `autoInstallBundle` is activated. + +### sling-jcrinstall-bundle-archetype (deprecated) This archetype generates a Maven project which will build a basic OSGi bundle including support for the Felix SCR Annotations. It is pre-configured to install using a WebDAV PUT into the JCR when the profile `autoInstallBundle` is activated. -### sling-launchpad-standalone-archetype +### sling-launchpad-standalone-archetype (deprecated) This archetype generates a Maven project which will build a standalone Launchpad JAR file using the default bundle set. For demonstration purposes, the generated project includes an extra bundle list file (`src/main/bundles/list`) which includes Apache Felix FileInstall as well as a test configuration file (`src/test/config/sling.properties`). -### sling-launchpad-webapp-archetype +### sling-launchpad-webapp-archetype (deprecated) This archetype generates a Maven project which will build a Launchpad WAR file using the default bundle set. For demonstration purposes, the generated project includes an extra bundle list file (`src/main/bundles/list`) which includes Apache Felix FileInstall as well as a test configuration file (`src/test/config/sling.properties`). -### sling-project-archetype - -This archetype will create a Sling project that can be deployed on the Sling 12. In contrast to the Apache Sling Maven Archetypes this one is geared towards creating a full project and not just a single module. See the [sling-project-archetype github repo](https://github.com/apache/sling-project-archetype) for more details. - -### sling-servlet-archetype +### sling-servlet-archetype (deprecated) This archetype generates a Maven project which will build an OSGi bundle containing two Servlets registered with Sling, one registered by path and one registered by resource type. \ No newline at end of file From db277ad418b0a92fa6182bd12ab91db66ae53925 Mon Sep 17 00:00:00 2001 From: Cris Rockwell Date: Fri, 8 Oct 2021 17:41:27 -0400 Subject: [PATCH 4/4] added sling cms archetype --- .../content/documentation/development/maven-archetypes.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/jbake/content/documentation/development/maven-archetypes.md b/src/main/jbake/content/documentation/development/maven-archetypes.md index 90c6124477..bc98ca8ec9 100644 --- a/src/main/jbake/content/documentation/development/maven-archetypes.md +++ b/src/main/jbake/content/documentation/development/maven-archetypes.md @@ -18,6 +18,9 @@ This archetype generates a Maven project which will build an OSGi bundle that su This archetype will create a Sling project that can be deployed on the Sling 12. In contrast to the Apache Sling Maven Archetypes this one is geared towards creating a full project and not just a single module. See the [sling-project-archetype github repo](https://github.com/apache/sling-project-archetype) for more details. +### org.apache.sling.cms.archetype + +The Apache Sling CMS Project Archetype creates a simple project structure with common dependencies for you to use to create custom applications on Apache Sling CMS. See the [sling-cms docs](https://github.com/apache/sling-org-apache-sling-app-cms/blob/master/docs/project-archetype.md) for more details. ### sling-bundle-archetype (deprecated)