Git Product home page Git Product logo

themeclean-flex's Introduction

Maven Project generated from Maven Archetype

Introduction

This project was created by the Sling Project Maven Archetype which created two modules:

  1. core: OSGi Bundle deployed to Sling which includes your Servlets, Filters, Sling Models and much more. This module is not intended to contain Sling Content.
  2. ui.apps: JCR Content Module which is used to install a JCR Package into Sling by using Composum. For that it must be installed and the Composum Package Manager must be whitelisted.

There are also two modules which provide some examples; these have the same name as above but with an extension .example. These modules should not be deployed, they are examples for you to use in creating your own core or ui.apps modules.

The structure of both modules are the same and so copying them over just be quite simple.

Attention:

Due to the way Apache Maven Archetypes work both example modules are added to the parent POM's module list. Please remove them after you created your own to avoid the installation of these modules into Sling. At the end of the parent POM you will find the lines below. Remove the lines with core.example and ui.apps.example.

<modules>
    <module>core</module>
    <module>core.example</module>
    <module>ui.apps</module>
    <module>ui.apps.example</module>
</modules>

Why a JCR Package instead of a Content Bundle

There are several reasons to use a JCR Package instead of a Content Bundle but the most important reason is that a JCR Package allows the Sling Tooling to update a single file rather than an entire Bundle and also to import a Node from Sling into the project.

Build and Installation

The project is built quite simple:

mvn clean install

To install the OSGi bundle use the project autoInstallBundle:

mvn clean install -P autoInstallBundle

To install the Content together with the core bundle use the project autoInstallPackage:

mvn clean install -P autoInstallPackage
ATTENTION

It is probably best to not deploy the OSGi Bundle alone as this may lead to conflicts with the package deployment.

In case of a mishap the package and bundles need to deinstalled manually:

  1. Remove /apps/${appsFolderName}/install folder
  2. Uninstall the package using the package manager
  3. Remove the package from /etc/packages including the snapshots if they are still there
  4. Remove the Bundle using the OSGi Console (/system/console/bundles)

License

Apache-2.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.