Skip to content

Latest commit

 

History

History
97 lines (72 loc) · 4.14 KB

development.md

File metadata and controls

97 lines (72 loc) · 4.14 KB

From now on please write a comment to request for access to build this project. Once access is given then it will be valid for 1 day.

Please make sure you have added the below dependencies in your own project pom.xml file:-

  1. This is required for checking null annotation

        <dependency>
           <groupId>org.jetbrains</groupId>
           <artifactId>annotations</artifactId>
           <version>16.0.1</version>
           <scope>provided</scope>
        </dependency> 
    
  2. Add this repository to your build file m2/settings.xml

      <repository>
           <id>jitpack.io</id>
           <url>https://jitpack.io</url>
      </repository>
    
  3. This is required for reading multifield value without hardcoding the name of each multifield item name. Add this to your pom.xml file

         <dependency>
             <groupId>com.github.sumantapakira.aem-multifield</groupId>
             <artifactId>multifield.core</artifactId>
             <version>master-dbc43663b0-1</version>
         </dependency>
    
  4. Add it as embed dependency in your core module pom.xml file.

If you are usinf maven-build-plugin then add it as follows:

     <Embed-Dependency>
       multifield.core
     </Embed-Dependency>

If you are using bnd-maven-plugin then add it as follows:

     <configuration>
     <bnd><![CDATA[
        Import-Package: javax.annotation;version=0.0.0,*
                            ]]>
        -includeresource: tui-multifield.jar=multifield.core-master-dbc43663b0-1.jar;lib:=true
     </bnd>
     </configuration>
  1. Add this below dependency:

       <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <version>1.18.2</version>
            <scope>compile</scope>
        </dependency>
    
  2. Add this project as embed package in your own project for additional feature like place holder text and Multifield implementation

In your pom.xml file first add this

                  <embedded>
                        <groupId>com.github.sumantapakira.aem-component-generator</groupId>
                        <artifactId>component-generator.ui.apps</artifactId>
                        <type>zip</type>
                        <target>/apps/<your-project>/install</target>
                    </embedded>
                    <embedded>
                        <groupId>com.github.sumantapakira.aem-component-generator</groupId>
                        <artifactId>component-generator.ui.content</artifactId>
                        <type>zip</type>
                        <target>/apps/<your-project>/install</target>
                    </embedded>

And then add the dependencies:

     <dependency>
        <groupId>com.github.sumantapakira.aem-component-generator</groupId>
        <artifactId>component-generator.ui.apps</artifactId>
        <version>v1.2</version>
        <type>zip</type>
    </dependency>
    <dependency>
        <groupId>com.github.sumantapakira.aem-component-generator</groupId>
        <artifactId>component-generator.ui.content</artifactId>
        <version>v1.2</version>
        <type>zip</type>
    </dependency>
  1. You have ACS Commons package installed because this is to ensure permission .

  2. If you are using AEM version less than 6.5 then change version to 1.8.0 version https://mvnrepository.com/artifact/org.osgi/org.osgi.framework/1.8.0 to this location https://github.com/sumantapakira/aem-component-generator/blob/master/pom.xml#L588

Note: Restart AEM server if you see this error in log file: ERROR [0:0:0:0:0:0:0:1 [1597653713267] GET /apps/cq/core/content/nav/tools/component-generator/component-generator/componentlist.html HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException org.apache.sling.scripting.jsp.jasper.JasperException: Unable to compile class for JSP: