Git Product home page Git Product logo

aem-library's People

Contributors

ericvangeem avatar jmolsen avatar markdaugherty avatar pmichelotti avatar

Stargazers

 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

aem-library's Issues

Build fails - 503 error

Hi, not sure if this is the right forum for this question.. If not ,please let me know where to raise this issue.

We have been using this and few other related libraries for a while now and builds have been working BUT recently (a week or so back) Maven build fails with the following error:


Failed to execute goal on project ###-as-core: Could not resolve dependencies for project XXX:bundle:1.0.38-SNAPSHOT: 
Failed to collect dependencies at com.day.cq:cq-tagging:jar:5.8.20: 
Failed to read artifact descriptor for com.day.cq:cq-tagging:jar:5.8.20: 
Could not transfer artifact com.day.cq:cq-tagging:pom:5.8.20 from/to citytech-public (http://nexus.citytech.ctmsp.com/content/groups/public): 
Failed to transfer http://nexus.citytech.ctmsp.com/content/groups/public/com/day/cq/cq-tagging/5.8.20/cq-tagging-5.8.20.pom. 
Error code 503, Service Temporarily Unavailable

below are some of our pom.xml snippets.
Also we are building this for AEM 6.1

As of now the workaround we are using is that we run Maven Build 'offline'.. But if we need to recreate an environment (new dev environment, blue/green deploys) where these libraries are not already downloaded, it would still be an issue.

 <parent>
        <groupId>com.icfolson.aem.library</groupId>
        <artifactId>aem-library</artifactId>
        <version>6.0.4</version>
    </parent>

<!-- versions -->
        <aem.library.version>6.0.4</aem.library.version>
        <multicompositeaddon.version>2.1.0</multicompositeaddon.version>
        <component.plugin.version>4.2.0</component.plugin.version>
        <acs.aem.commons.version>2.7.2</acs.aem.commons.version>

 <dependency>
                <groupId>com.icfolson.aem.library</groupId>
                <artifactId>aem-library-core</artifactId>
                <version>${aem.library.version}</version>
            </dependency>
            <dependency>
                <groupId>com.icfolson.aem.library</groupId>
                <artifactId>aem-library-api</artifactId>
                <version>${aem.library.version}</version>
            </dependency>
            <dependency>
                <groupId>com.icfolson.aem.library</groupId>
                <artifactId>aem-library-models</artifactId>
                <version>${aem.library.version}</version>
            </dependency>
            <dependency>
                <groupId>com.icfolson.aem.library</groupId>
                <artifactId>aem-library-ui</artifactId>
                <version>${aem.library.version}</version>
                <type>zip</type>
            </dependency>
            <dependency>
                <groupId>com.citytechinc.aem</groupId>
                <artifactId>multicomposite-addon</artifactId>
                <version>${multicompositeaddon.version}</version>
            </dependency>

as of right now, invoking this url returns 503 http://nexus.citytech.ctmsp.com/

@InheritInject a child node as a SlingModel

I would like to be able to @InheritInject a Sling Model for a named sub-node of my current Resource backed Sling Model. @Inject already works for injecting Sling Models for child resources in this way but it does not provide an option to inherit.

The implementation would be something like

getNodeInherited(propertyName).get().resource.adaptTo(Type)

where propertyName is the sub-node path defined by the injected property's name and Type is the type of that property.

This would be especially relevant when used in conjunction with the @DialogFieldSet annotation in https://github.com/OlsonDigital/cq-component-maven-plugin as below:

    @DialogField(fieldLabel= "Sample Field", ranking = 1D)
    @DialogFieldSet(namePrefix = "./sampleField/")
    @InheritInject
    ReusableItem sampleField

Where ReusableItem extends AbstractComponent and has some dialog fields configured on it.

Note that this conflicts with #8

AME 6.4 upgrade| aem-library snapshot version test

Hi,

I am from Express AEM team.
I am trying to test the our code using SNAPSHOT version of aem-library from GitHub. But I am not able to build it.
I have done the below steps so far,

  • Cloned the aem-library repo from github
  • Built the feature-6.4 branch
  • Collected all the built jars and put them in local .m2/repository/library folder structure
  • Referenced them in the pom file of our code base

Then while building our codebase, its still trying to download from the ‘http://nexus.citytech.ctmsp.com/content/groups/public’ path.

Can you please provide me the steps to carry out the test for SNAPSHOT version of aem-library in my local?

PageDecorator.getChild("childName")

Right now com.day.cq.wcm.api.Page and com.icfolson.aem.library.api.page.PageDecorator have hasChild("name") but no getChild("name"). I would like to see this added to PageDecorator.

There are a few workarounds that I've seen in use so far:
pageDecoratorInstance.adaptTo(Resource).getChild("name").adaptTo(PageDecorator)
(assuming pageDecoratorInstance.hasChild("name") comes back true)
or
page.children.find { child -> child.name == "favoriteChildsName" }
(provided by @lykorian )
or
com.day.cq.wcm.api.PageManager.getPage(page.path + "/childName")
(provided by @ericvangeem )

Thanks!

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.