GithubHelp home page GithubHelp logo

Comments (2)

rombert avatar rombert commented on August 23, 2024

I think that for now we should stick to bundles that are already availble in the product. Once/if SlingQuery is in, we can add it to the archetype

from aem-project-archetype.

bpauli avatar bpauli commented on August 23, 2024

SlingQuery will never be shipped directly with the AEM as it is an (useful) SLING extension. Therefore we decided to not include it directly in the AEM archetype.

If you want include the SlingQuery together with your archetype generated project you have to follow this steps manually:
1.: Add the dependency to your reactor pom.xml

<dependencies>
....
  <dependency>
    <groupId>org.apache.sling</groupId>
    <artifactId>org.apache.sling.query</artifactId>
    <version>3.0.0</version>
    <scope>provided</scope>
  </dependency>
...
</dependencies>

2.: To make use of the SlingQuery API add the dependency also to the core/pom.xml

<dependencies>
....
  <dependency>
    <groupId>org.apache.sling</groupId>
    <artifactId>org.apache.sling.query</artifactId>
  </dependency>
...
</dependencies>

3.: And finally, in case you want to auto install the bundle together with the ui.apps content-package, you have to add the dependency in ui.apps/pom.xml as well (see step 2) additionally to the embedded section of the content-package-maven-plugin

<plugin>
  <groupId>com.day.jcr.vault</groupId>
  <artifactId>content-package-maven-plugin</artifactId>
    ....
  <configuration>
    ...
    <embeddeds>
       ...
      <embedded>
        <groupId>org.apache.sling</groupId>
        <artifactId>org.apache.sling.query</artifactId>
        <target>/apps/<appsFolderName>/install</target>
       </embedded>
       ...
   </embeddeds>
   ...
  <configuration>
</plugin>

Please, make sure to replace <appsFolderName> with the proper appsFolderName property provided at the archetype generation.

from aem-project-archetype.

Related Issues (20)

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.