Code Monkey home page Code Monkey logo

adobe / aem-guides-wknd Goto Github PK

View Code? Open in Web Editor NEW
272.0 39.0 517.0 122.13 MB

Tutorial Code companion for Getting Started Developing with AEM Sites WKND Tutorial

Home Page: https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-wknd-tutorial-develop/overview.html

License: MIT License

Java 18.44% CSS 0.01% JavaScript 33.34% HTML 21.98% TypeScript 0.03% SCSS 24.82% Dockerfile 0.23% Shell 0.85% Less 0.30%
aem65 aem64 core-components adobe-experience-manager htl maven aem wknd-sites tutorial

aem-guides-wknd's Introduction

AEM WKND Sites Project

Adobe Experience Manager compatibility

WKND versions are compatible with the following versions of Adobe Experience Manager:

AEM version WKND version
AEM as a Cloud Service 3.x
6.5 SP17 2.x, 3.x

Released artifacts

Maven CI Maven Central

This is a sample Adobe Experience Manager project for a full stack Sites implementation for a fictitious lifestyle brand, WKND.

App screenshot

Live Demo

View the live demo at https://www.wknd.site/

Tutorial

A corresponding tutorial is available where you can learn how to implement a website using the latest standards and technologies in AEM Sites.

How to use/install

AEM as a Cloud Service

To deploy WKND to AEM as a Cloud Service, this project's source code must be deployed to AEM via Cloud Manager.

  1. Clone this Git repository
  2. Push the main branch to your Cloud Manager's Git repository
  3. Ensure a deployment pipline is configured to deploy the target branch/repo to the desired AEM as a Cloud Service env
  4. Run the Cloud Manager pipeline
  5. WKND will now be deployed to the target AEM as a Cloud Service environment

Local development (AEM 6.5 or AEM SDK)

Pre-compiled AEM packages are available under the latest release for easy installation on local environments using CRX Package Manager

How to build

For AEM as a Cloud Service SDK:

$ cd aem-guides-wknd/
$ mvn clean install -PautoInstallSinglePackage

For AEM 6.5.x:

$ cd aem-guides-wknd/
$ mvn clean install -PautoInstallSinglePackage -Pclassic

System Requirements

WKND Version AEM as a Cloud Service AEM 6.5 Java SE Maven
Latest (main branch) Continual 6.5.17.0+ 8, 11 3.3.9+
v1.1.0 Continual 6.5.10+ 8, 11 3.3.9+
v1.0.0 Continual 6.5.4+ 8, 11 3.3.9+

Setup your local development environment for AEM as a Cloud Service SDK or for older versions of AEM.

Notes

WKND Sample Content

By default, sample content from ui.content.sample will be deployed and installed along with the WKND code base. The WKND reference site is used for demo and training purposes and having a pre-built, fully authored site is useful. However, the behavior of including a full reference site (pages, images, etc...) in source control is unusual and is not recommended for a real-world implementation.

Including ui.content.sample will overwrite any authored content during each build. If you wish to disable this behavior modify the filter.xml file and update the mode=merge attribute to avoid overwriting the paths.

- <filter root="/content/wknd" />
+ <filter root="/content/wknd" mode="merge"/>

Powered by Adobe Stock

Many of the images in the WKND Reference website are from Adobe Stock and are Third Party Material as defined in the Demo Asset Additional Terms at https://www.adobe.com/legal/terms.html. If you want to use an Adobe Stock image for other purposes beyond viewing this demo website, such as featuring it on a website, or in marketing materials, you can purchase a license on Adobe Stock.

With Adobe Stock, you have access to more than 140 million high-quality, royalty-free images including photos, graphics, videos and templates to jumpstart your creative projects.

Documentation

aem-guides-wknd's People

Contributors

adobe-bot avatar ancaec avatar andresbott avatar bpauli avatar davidjgonzalez avatar froesef avatar gknobloch avatar godanny86 avatar jckautzmann avatar jfoxx avatar keepthebyte avatar kevinroberts avatar knennigtri avatar kozmaadrian avatar krystiannowak avatar kwin avatar lsantha avatar mateusz-kochanek avatar nonanalou avatar pryelluw avatar quentinvecchio avatar ravkiran avatar reusr1 avatar sachinmali avatar sandru85 avatar sharanyavinod avatar sselvara avatar vladbailescu avatar volteanu avatar znikolovski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aem-guides-wknd's Issues

Request failed: javax.jcr.RepositoryException: Inaccessible value (500)

During installation and doing this...

$ cd aem-guides-wknd
$ mvn -PautoInstallPackage clean install

the installation runs but halfway it will have this error:

[INFO] Installing aem-guides-wknd.ui.apps (/Users/macbookname/Documents/projects/src/aem-guides-wknd/ui.apps/target/aem-guides-wknd.ui.apps-0.0.1-SNAPSHOT.zip) to http://localhost:4502/crx/packmgr/service.jsp
[ERROR] Request failed: javax.jcr.RepositoryException: Inaccessible value (500)
[INFO] Looks like the /Users/macbookname/Documents/projects/src/aem-guides-wknd/ui.apps/target/aem-guides-wknd.ui.apps-0.0.1-SNAPSHOT.zip package was not installed, checking the list...
....

the build would fail to this:

INFO] /Users/macbookname/Documents/projects/src/aem-guides-wknd/ui.apps/target/aem-guides-wknd.ui.apps-0.0.1-SNAPSHOT.zip package not installed, re-uploading it...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for aem-guides-wknd 0.0.1-SNAPSHOT:
[INFO]
[INFO] aem-guides-wknd .................................... SUCCESS [  0.292 s]
[INFO] WKND Site Project - Core ........................... SUCCESS [  6.924 s]
[INFO] WKND Site Project - UI apps ........................ FAILURE [ 34.308 s]
[INFO] WKND Site Project - UI content ..................... SKIPPED
[INFO] WKND Site Project - Integration Tests Bundles ...... SKIPPED
[INFO] WKND Site Project - Integration Tests Launcher ..... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  43.093 s
[INFO] Finished at: 2019-08-23T17:21:52+10:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.day.jcr.vault:content-package-maven-plugin:1.0.2:install (install-package) on project aem-guides-wknd.ui.apps: Error while installing package. Check log for details. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :aem-guides-wknd.ui.apps

what can I do to make this work? is this an internal error in dependencies?

I'm using AEM version 6.5 and Maven 3.6.1

The localhost port 4502 is live and I can actually see wknd project showing up under sites, but it empty. Looking at http://localhost:4502/crx/packmgr/index.jsp , only shows one wknd package: wknd-events.download-1.0.2.zip, I believe there should be other two... ui.apps and ui.contents

Maven version dependencies are mismatched

Using the maven release plugin, didn't catch all of the dependencies leaving some mismatched:

<version>0.0.1-SNAPSHOT</version>

Should be

 <dependencies>
        <dependency>
         <groupId>com.adobe.aem.guides</groupId>
           <artifactId>aem-guides-wknd.ui.apps</artifactId>
           <version>0.0.3-SNAPSHOT</version>
            </dependency>
 </dependencies>

Actual

 <dependencies>
      <dependency>
       <groupId>com.adobe.aem.guides</groupId>
      <artifactId>aem-guides-wknd.ui.apps</artifactId>
       <version>0.0.1-SNAPSHOT</version>
        </dependency>
</dependencies>

WKND Sites Project - Core (aem-guides-wknd.core) bundle not Active on AEM 6.3.3

WKND Reference Site - 0.0.2 - https://github.com/adobe/aem-guides-wknd/releases/tag/aem-guides-wknd-0.0.2 cannot be used on AEM 6.3.3

With ref to this #92 (comment) if AEM 6.4 is required, can we mention somewhere in README. Thanks!

com.day.cq.search,version=[1.3,2) -- Cannot be resolved
com.day.cq.wcm.api,version=[1.27,2) -- Cannot be resolved
org.apache.commons.lang3,version=[3.6,4) -- Cannot be resolved
org.apache.sling.api.resource,version=[2.11,3) -- Cannot be resolved

Screen Shot 2020-03-12 at 6 03 02 PM

WKND core bundle is not getting active

When I am installing core bundle in osgi below two dependency can not be resolved

com.day.cq.search,version=[1.3,2) -- Cannot be resolved

org.apache.sling.api.resource,version=[2.11,3) -- Cannot be resolved.

Apache Sling API bundle version is 2.16.4
Can anyone suggest something.

Interested in this project

@godanny86 - if you have a moment, could you please reach out?

Wondering if there is a better way to automate the compilation of htl so that the storybook youve created can use that data output rather than html copied and pasted in which would make it more dynamic.

twitter: @CodeByAlex
website codebyalex.com

or please respond here

Question: Using ui.frontend folder for SASS and React?

Question:
When using the new AEM Archetype (v23) general/react/angular sources are built into "ui.frontend" folder.

While this project (wknd) is a great resource/refer to build codebases for new projects, the "ui.frontend" in wknd is used for "sass" and this works great.

How can we build a new codebase using both react-app(when built with archetype 23) and sass (file structure as defined in wknd) i.e., AEM + React + SASS ?

[WKND Reference] Create dedicated sample content module

The WKND code base (excluding the tutorial chapters) represents AEM best practices, but it is also used as a demo/reference site. As such it contains a significant amount of authored content that would not be and should not found in source control for a real-world project.

To make it obvious that this is an exception (rather than the rule) a dedicated samplecontent module should be created.

Assign Cloud Configuration on WKND root page

the Configuration > Cloud Configuration should be set to /conf/wknd on. Right now it's empty.

/mnt/overlay/wcm/core/content/sites/properties.html?item=%2Fcontent%2Fwknd

Screen Shot 2019-12-16 at 2 55 14 PM

or is that something that the Project Archetype should do?

Code change suggestion for quid:S2384 in Adobe Cloud Manager

Recommend changing

return occupations;

to

import java.util.Arrays;
import java.util.ArrayList;
.
.
.
return new ArrayList<String>(occupations);

in

/core/src/main/java/com/adobe/aem/guides/wknd/core/components/impl/BylineImpl.java

to avoid SonarQube rule: squid:S2384, when deploying via CI/CD in Adobe Cloud Manager

Mobile emulator path hard coded

/conf/wknd/settings/wcm/templates/< template-name >/structure/jcr:content

  • cq:deviceGroups = /etc/mobile/groups/responsive

Because this value is hard coded in, there isn't the resolution process of etc > libs/settings > apps/settings > conf/settings and therefore, you cannot easily create custom emulators.

Like the html5page template-type, the value should be

  • cq:deviceGroups = mobile/groups/responsive

This also probably needs to be updated under /content/wknd/jcr:content too.

Missing dependency chain between `ui.content` and `ui.content.sample` & missing node type

Looking at the ui.content.sample, I think there are a few things that are wrong:

  1. /conf/wknd doesn't define any node type, but is part of filter.xml
  2. No dependency from ui.content.sample to ui.content

This leads to following error when trying to install the ui.content.sample package:

Could not Install Package

"javax.jcr.nodetype.ConstraintViolationException: OakConstraint0001: /conf/wknd[[nt:folder]]: No matching definition found for child node sling:configs with effective type [nt:unstructured, rep:AccessControllable]"

Use Container Core Component for Layout Container

The WKND content currently uses wcm/foundation/components/responsivegrid. This should be replaced with the Core Component Container:

  <root
            cq:lastRolledout="{Date}2020-01-09T12:46:59.404-08:00"
            cq:lastRolledoutBy="admin"
            jcr:mixinTypes="[cq:LiveRelationship]"
            jcr:primaryType="nt:unstructured"
-          sling:resourceType="wcm/foundation/components/responsivegrid">
+          sling:resourceType="wknd/components/content/container">

This could potentially be a large PR since it requires so many paths to be updated

HTTP:X-Forwarded-For in rewrite rules rejecting IPV6

In default rewrite rules of dispatcher there is a rule with text:

Prevent X-FORWARDED-FOR spoofing

RewriteCond %{HTTP:X-Forwarded-For} !^$
RewriteCond %{HTTP:X-Forwarded-For} !^\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}
RewriteRule .* - [F]

This rule is taking as condition and IPv4, however connection is rejected if is an IPv6.
if an IPV6 is on this header the connection is returned with state 403 and refused.

Installed successfully but rendering is failed

I have successfully installed all modules onto my instance (6.5.3).

image

But pages cannot render normally as the reference site do.

image

I can see there are some warnings when rendering this page:

16.02.2020 09:00:20.279 *WARN* [192.168.1.1 [1581814818862] GET /content/wknd/language-masters/en.html HTTP/1.1] org.apache.sling.caconfig.resource.impl.def.DefaultConfigurationResourceResolvingStrategy Ignoring reference to /conf/wknd/settings from /conf/wknd/settings - Probably misconfigured as it ends with '/settings'
16.02.2020 09:00:20.288 *WARN* [192.168.1.1 [1581814818862] GET /content/wknd/language-masters/en.html HTTP/1.1] org.apache.sling.caconfig.resource.impl.def.DefaultConfigurationResourceResolvingStrategy Ignoring reference to /conf/wknd/settings from /conf/wknd/settings - Probably misconfigured as it ends with '/settings'
16.02.2020 09:00:20.305 *WARN* [192.168.1.1 [1581814818862] GET /content/wknd/language-masters/en.html HTTP/1.1] org.apache.sling.caconfig.resource.impl.def.DefaultConfigurationResourceResolvingStrategy Ignoring reference to /conf/wknd/settings from /conf/wknd/settings - Probably misconfigured as it ends with '/settings'

How can I fix the page rendering? Need some help here, thanks!

Regards,
Eason

[Content Update] Fix headers in Carousels

Update the headers in Carousels to reflect the content inside them:

image

The main motivation is that these titles are then exposed via the adobeDataLayer and inconsistent headings is troublesome.

Root container of WKDN templates/pages is not responsive

With #110, the responsive grid was replaced by WKND container (which proxies the Core Components container). However, the Core Components container is not responsive by default (one needs to set layout="responsive" property). This makes the rest of the containers and components behave erratically when using responsive layouting.

Update libs

Hello,
I got some errors when compiling the UI and in order to deploy the code, I changed some libs versions:

"aem-clientlib-generator": "^1.4.3", to "aem-clientlib-generator": "^1.7.0",

and

"node-sass": "^4.11.0", to "node-sass": "^4.14.1",

Uncaught TypeError: Cannot read property 'hasAttribute' of null

Hi,
I downloaded & installed the latest package & source code of WKND (0.0.4) on my local and after npm install on source code & running storybook I keep getting "Uncaught TypeError: Cannot read property 'hasAttribute' of null" error in console and accordion does not work for me.

Anyone else getting the same error?

image
image

Thanks,
Kavin Mehta.

Byline cannot be resolved to a type

I've been following along the WKND tutorial here

5 - Custom Component

The initial steps with creating the byline component without any of the actual logic works, but after I added the Byline class I get

Screen Shot 2019-09-03 at 5 43 56 PM

No use provider could resolve identifier com.adobe.aem.guides.wknd.core.components.Byline

I used mvn -PautoInstallPackage -Padobe-public clean install in the root of my project and
mvn -PautoInstallBundle clean install in my core folder
I saw someone who was having a similar issue here Re: Error while deploying custom AEM component
But in their case it's saying that it resolves to a package. I do not have that error. Mine just says 'Cannot get DefaultSlingScript'

Here's how I have everything positioned in eclipse
Screen Shot 2019-09-03 at 5 14 29 PM
Screen Shot 2019-09-03 at 5 14 16 PM

My byline.html code is

<div data-sly-use.byline="com.adobe.aem.guides.wknd.core.components.Byline"  
    data-sly-use.placeholderTemplate="core/wcm/components/commons/v1/templates.html"  
    data-sly-test.hasContent="${!byline.empty}"  
    class="cmp-byline">  
    <div class="cmp-byline__image"  
         data-sly-resource="${ '.' @ resourceType = 'core/wcm/components/image/v2/image' }">  
    </div>  
        <h2 class="cmp-byline__name">${byline.name}</h2>  
        <p class="cmp-byline__occupations">${byline.occupations @ join=','}</p>  
</div>  
<sly data-sly-call="${placeholderTemplate.placeholder @ isEmpty=!hasContent}"></sly> 

and my byline .content.xml is

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root 
    xmlns:sling="http://sling.apache.org/jcr/sling/1.0"
    xmlns:jcr="http://www.jcp.org/jcr/1.0"
    jcr:primaryType="cq:Component"
    jcr:description="Displays a contributor's byline."
    componentGroup="WKND.Content"
    sling:resourceSuperType="core/wcm/components/image/v2/image"
    jcr:title="Byline"/>

As a test I've copy and pasted the code from the final WKND code on this repo. I've recompiled all the JSPs. I've Invalidated caches and rebuilt libraries
Is there anything I'm missing? What could possibly cause something like this?

WKND uses unresolvable request paths for images

The ResourceResolver cannot resolve the request path below (as well as many other similar request paths on the WKND site). Either implement a custom ResourceResolver for the WKND application or implement your resources differently. IMHO it is a Sling paradigm that a request path can be resolved to a resource, in particular if it is a resource.

/content/wknd/us/en/adventures/ski-touring-mont-blanc/jcr%3acontent/root/responsivegrid/carousel/item_1571168419252.coreimg.jpeg/1572285729016.jpeg

build failure when running "mvn clean install -PautoInstallPackage"

[INFO] --- content-package-maven-plugin:1.0.2:install (install-package) @ aem-guides-wknd.ui.apps ---
[INFO] Installing aem-guides-wknd.ui.apps (C:\SumanWS\aem-guides-wknd\ui.apps\target\aem-guides-wknd.ui.apps-0.0.1-SNAPSHOT.zip) to http://localhost:4502/crx/packmgr/service.jsp
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for aem-guides-wknd 0.0.1-SNAPSHOT:
[INFO]
[INFO] aem-guides-wknd .................................... SUCCESS [ 0.413 s]
[INFO] WKND Sites Project - Core .......................... SUCCESS [ 10.693 s]
[INFO] WKND Sites Project - UI apps ....................... FAILURE [ 23.305 s]
[INFO] WKND Sites Project - UI content .................... SKIPPED
[INFO] WKND Sites Project - Integration Tests Bundles ..... SKIPPED
[INFO] WKND Sites Project - Integration Tests Launcher .... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 37.079 s
[INFO] Finished at: 2019-12-01T09:55:52-06:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.day.jcr.vault:content-package-maven-plugin:1.0.2:install (install-package) on project aem-guides-wknd.ui.apps: end tag name must be the same as start tag from line 2 (position: TEXT seen ...\r\n\t\ta,\r\n\t\t.fid-blue {\r\n\t\t\tcolor: #0E67A9;\r\n\t\t}\r\n\t</style>\r\n... @155:8) -> [Help 1]

Note: local AEM instance is running and I'm on windows 10. I haven't made any change in pom.xml for aem-guides-wknd.ui.apps application. AEM version is 6.4.0.

Direct Unit test runs in IDE (Eclipse) fail

When running a single unit test via the IDE (Eclipse), the test fails with

java.lang.NoClassDefFoundError: org/junit/platform/commons/PreconditionViolationException
	at org.eclipse.jdt.internal.junit5.runner.JUnit5TestLoader.createTest(JUnit5TestLoader.java:90)
	at org.eclipse.jdt.internal.junit5.runner.JUnit5TestLoader.loadTests(JUnit5TestLoader.java:48)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:525)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:763)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:463)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:209)
Caused by: java.lang.ClassNotFoundException: org.junit.platform.commons.PreconditionViolationException
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 6 more

To resolve this, the junit-bom dep should be updated to version 5.5.2 in the reactor pom.

             <dependency>
                <groupId>org.junit</groupId>
                <artifactId>junit-bom</artifactId>
                <version>5.5.2</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>

Auto install issue after adding thumnail image - chapter 1

No steps to add the resource for vault definition in ui.apps/pom.xml and ui.content/pom.xml. Kindly add the steps to include resource tag in build definition in the documentation
Note: if we change the https to http in .content.xml file inside definition folder. It is working properly. Please update the docs

[WKND Reference] Content Filters are too strict

Currently, in ui.content the merge mode has been removed for /conf/wknd and /content/wknd to ensure consistent deployments. This has an adverse effect on anyone attempting to save features like cloud service configurations and then re-deploying the code base...

[Data Layer] Custom Component example

The ImageList custom component should implement the data layer as an example of how to add the data layer to custom components.

Data schema

A component entry for the overall ImageList component:

image-list-XXXX:
  @type: "wknd/components/image-list"

A component entry for each item in the ImageList:

image-list-084fc720c8-image-list-item-4ac450a007:
  @type: "wknd/components/image-list/image-list-item"
  dc:description: "Learn about our ski touring experience and how it differs from traditional downhill skiing and even 
  backcountry skiing."
  dc:title: "Ski Touring"
  parentId: "image-list-XXXX"
  xdm:linkURL: "/content/wknd/language-masters/en/magazine/ski-touring.html"

Where the dc:title, dc:description, and xdm:linkURL are derived from the linked page in the list. In addition there is a parentId that links back to the overall ImageList component.

Events

The cmp:click event is registered via the data attribute data-cmp-clickable placed on the anchor tag surrounding the Image and Title for each item in the list.

image

Best practices outlined by https://github.com/adobe/aem-core-wcm-components/blob/master/DATA_LAYER_INTEGRATION.md and https://experienceleague.adobe.com/docs/experience-manager-learn/sites/integrations/adobe-client-data-layer/data-layer-customize.html should be followed.

WKND default Translation Rules for referenced content

ootb translation rules reference resource types of Core Components for rules around referenced Content Fragments, Experience Fragments, and Images:

image

The resource types used by WKND will be different, i.e wknd/components/image. Additional translation rules should be installed automatically:

image

Byline component build failure

AEM 6.5, everything else apparently up to date.

I've been trying to build the custom Byline component (though to be perverse, mine is called 'Intro') and I am getting compile errors as shown:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.1:compile (default-compile) on project aem-demos-gl_demo.core: Compilation failure: Compilation failure: [ERROR] /D:/AEM65/src/aem-demos-gl_demo/core/src/main/java/com/gw/aem/demos/gl_demo/core/models/impl/IntroImpl.java:[34,51] package com.adobe.cq.wcm.core.components.models does not exist [ERROR] /D:/AEM65/src/aem-demos-gl_demo/core/src/main/java/com/gw/aem/demos/gl_demo/core/models/impl/IntroImpl.java:[57,17] cannot find symbol [ERROR] symbol: class Image [ERROR] location: class com.gw.aem.demos.gl_demo.core.models.impl.IntroImpl [ERROR] /D:/AEM65/src/aem-demos-gl_demo/core/src/main/java/com/gw/aem/demos/gl_demo/core/models/impl/IntroImpl.java:[98,17] cannot find symbol [ERROR] symbol: class Image [ERROR] location: class com.gw.aem.demos.gl_demo.core.models.impl.IntroImpl [ERROR] /D:/AEM65/src/aem-demos-gl_demo/core/src/main/java/com/gw/aem/demos/gl_demo/core/models/impl/IntroImpl.java:[61,93] cannot find symbol [ERROR] symbol: class Image [ERROR] location: class com.gw.aem.demos.gl_demo.core.models.impl.IntroImpl [ERROR] /D:/AEM65/src/aem-demos-gl_demo/core/src/main/java/com/gw/aem/demos/gl_demo/core/models/impl/IntroImpl.java:[81,19] cannot find symbol [ERROR] symbol: class Image [ERROR] location: class com.gw.aem.demos.gl_demo.core.models.impl.IntroImpl [ERROR] -> [Help 1]

I'm very new to this stuff, but the Eclipse editor seems happy that everything resolves correctly in the IntroImpl.java code:

` package com.gw.aem.demos.gl_demo.core.models.impl;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import javax.annotation.PostConstruct;

import org.apache.commons.lang3.StringUtils;
import org.apache.sling.api.SlingHttpServletRequest;
import org.apache.sling.models.annotations.DefaultInjectionStrategy;
import org.apache.sling.models.annotations.Model;
import org.apache.sling.models.annotations.injectorspecific.OSGiService;
import org.apache.sling.models.annotations.injectorspecific.Self;
import org.apache.sling.models.annotations.injectorspecific.ValueMapValue;
import org.apache.sling.models.factory.ModelFactory;

import com.gw.aem.demos.gl_demo.core.models.Intro;
import com.adobe.cq.wcm.core.components.models.Image;

@Model(
        adaptables = {SlingHttpServletRequest.class},
        adapters = {Intro.class},
        resourceType = {IntroImpl.RESOURCE_TYPE},
        defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL
)
public class IntroImpl implements Intro {
    protected static final String RESOURCE_TYPE = "gl_demo/components/content/intro";

etc etc`

The Build Path in Eclipse references core.wcm.components.core-2.7.0.jar in the .m2 repository, so at this point, I'm stumped. Any clues where to start looking? I've run mvn -PautoInstallBundle clean install, and started and stopped the server (why, I have no idea, it won't compile, never mind deploy) all to no avail...

Please ensure you have license, code of conduct and contribution guidelines in place

At Adobe, anything that goes open source needs to go through the Open Source Office for approval. Usually, employees fill out a quick and simple form at opensource.corp.adobe.com to kick that process off.

It looks like this repo didn't go through this process. At a minimum, please ensure you have a Adobe-legal-approved license and license headers in place, contribution guidelines that make explicit the signing of Adobe's CLA and Adobe's approved code of conduct.

If the above confuses you, please fill out the form at opensource.corp.adobe.com and we will gladly guide you through this process and ensure everything is ready for the public.

Update to Archetype 23

Archetype 23 has been released, the reference site should include any enhancements/modifications from the generated project

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.