- Notifications
You must be signed in to change notification settings - Fork4
Tool for providing sample data for AEM applications in a simple and flexible way. Stubbing server on AEM, no separate needed.
License
wttech/aem-stubs
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
🚧Deprecation 🚧
We’d like to inform you that AEM Stubs is now deprecated, as its functionality has been integrated into a larger tool.
As a better alternative we recommend checking outAEM Content Manager.
No worries, your familiar workflow and features remain intact in ACM.
Tool for providing sample data for AEM applications in a simple and flexible way.
Simplyinstall ready-to-use CRX package on AEM instance and start stubbing!
AdaptTo 2020 Live Demo -https://adapt.to/2020/en/schedule/lightning-talks/aem-stubs.html
Main concepts of AEM Stubs tool are:
- Simplicity
- Creating stubs should be as much simple as it is possible,
- Reactivity
- Trivial tool deployment - installable on AEM via all-in-one CRX package in the time when stubs are actually needed,
- Trivial stubs deployment - reloading stubs tied to regular AEM application deployment.
The ready-to-install AEM packages are available onGitHub releases.
There are two ways to install AEM Stubs on your AEM instances:
- Using the 'all' package:
- Recommended for fresh AEM instances.
- This package will also install AEM Groovy Console and AEM Stubs examples.
- Using the 'minimal' package:
- Recommended for AEM instances that already contain some dependencies shared with other tools.
- This package does not include Groovy bundles, which can be provided by other tools likeAEM Easy Content Upgrade (AECU) orAEM Groovy Console.
Remember that using AEM Stubs on AEM Publish instances through AEM Dispatcher may require an additional configuration.
Simply ensure that AEM Stubs Filter prefix/stubs (configured inAEM Stubs HTTP Filter is not filtered by AEM Dispatcher configuration.Alternatively, by creating OSGi configuration, update that path prefix (or regex pattern) to the something which is already accessible.
| AEM Stubs | AEM | Java | Groovy |
|---|---|---|---|
| 1.0.0, 1.0.1 | 6.4, 6.5 | 8 | 2.x |
| >= 1.0.2 | 6.3, 6.4, 6.5 | 8 | 2.x |
| 2.0.0 | 6.3, 6.4, 6.5 | 11 | 2.x |
| 2.0.1 | 6.3, 6.4, 6.5 | 8, 11 | 2.x |
| 3.0.0 | 6.3, 6.4, 6.5 | 8, 11 | 4.x |
| 4.0.0 | 6.5, cloud | 11 | 4.x |
Note that AEM Stubs is using Groovy scripts concept. However it isnot usingAEM Groovy Console. It is done intentionally, because Groovy Console has close dependencies to concrete AEM version.AEM Stubs tool is implemented in a AEM version agnostic way, to make it more universal and more fault-tolerant when AEM version is changing.It is compatible with AEM Groovy Console - simply install one of AEM Stubs distributions without Groovy console OSGi bundle included as it is usually provided by Groovy Console AEM package.
From AEM Stubs 3.x onwards, Groovy has been upgraded to version 4.x. Groovy has stopped providing a groovy-all 'uber' bundle. In this package, only the groovy 'core' bundle is included. It is possible to add extra Groovy modules in your own project.A list of groovy subprojects can be found here at theGroovy GitHub Project
Stubs could be provided by:
- Groovy Scripts (*.stub.groovy) so called stub scripts e.g file namedmy-feature.stub.groovy.
For example, when decided to choose WireMock framework, then these files should be put into AEM under path/conf/stubs/wiremock/*via CRX package with corresponding Vault workspace filter:
<?xml version="1.0" encoding="UTF-8"?><workspaceFilterversion="1.0"> <filterroot="/apps/mysite"/> <filterroot="/conf/stubs/mysite"/></workspaceFilter>
AEM Stubs HTTP FilterAEM Stubs Repository
- resourceResolver - for accessing AEM repository,
- log - SLF4j logger connected to script being run.
- template - Template engine-based rendering
- repository - Easy access to AEM repository
- faker - Data Faker library for generating random data
There are no other dedicated tools for stubbing data available for AEM and it was main purpose to create AEM Stubs tool.
- Krystian Panek - Project Founder, Main Developer,
- Piotr Marcinkowski - Main Developer.
Issues reported or pull requests created will be very appreciated.
- Fork plugin source code using a dedicated GitHub button.
- Do code changes on a feature branch created frommain branch.
- Create a pull request with a base ofmain branch.
To build all the modules run in the project root directory the following command with Maven 3:
mvn clean installTo build all the modules and deploy theall package to a local instance of AEM, run in the project root directory the following command:
mvn clean install -PautoInstallSinglePackageOr to deploy it to a publish instance, run
mvn clean install -PautoInstallSinglePackagePublishOr alternatively
mvn clean install -PautoInstallSinglePackage -Daem.port=4503Or to deploy only the bundle to the author, run
mvn clean install -PautoInstallBundleOr to deploy only a single content package, run in the sub-module directory (i.eui.apps)
mvn clean install -PautoInstallPackageAEM Stubs is licensed under theApache License, Version 2.0 (the "License")
About
Tool for providing sample data for AEM applications in a simple and flexible way. Stubbing server on AEM, no separate needed.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors5
Uh oh!
There was an error while loading.Please reload this page.

