Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

AEM 5.6 Configuration with Eclipse

Avatar

Former Community Member

Hello I am newbie in CQ5. I am trying to congigure CQ with eclipse .Followed all the steps given in this tutorials but still not getting JSP code completion.Please help me on this

http://docs.adobe.com/docs/en/cq/aem-how-tos/development/howto-develop-aem-projects-using-eclipse.ht...

1 Accepted Solution

Avatar

Correct answer by
Employee

If you are using 5.6, the corresponding documentation is here: http://docs.adobe.com/docs/en/cq/5-6/developing/developmenttools/developing_with_eclipse.html. There may be differences between the 2 versions. At what step are you having trouble?

View solution in original post

3 Replies

Avatar

Correct answer by
Employee

If you are using 5.6, the corresponding documentation is here: http://docs.adobe.com/docs/en/cq/5-6/developing/developmenttools/developing_with_eclipse.html. There may be differences between the 2 versions. At what step are you having trouble?

Avatar

Level 10

Have you included 'maven-jspc-plugin' in your maven.xml ? Can you give a snapshot of the same so that we can figure out if anything is missing or something gone wrong.

Avatar

Former Community Member

@bisloki

 

I have added below jspc plug in my content pom.xml

 

<build>
  <!-- ... -->
  <plugins>
    <!-- ... -->
    <plugin>
      <artifactId>maven-resources-plugin</artifactId>
      <executions>
        <execution>
          <id>copy-resources</id>
          <phase>generate-sources</phase>
          <goals>
            <goal>copy-resources</goal>
          </goals>
          <configuration>
            <outputDirectory>${project.build.directory}/jsps-to-compile</outputDirectory>
            <resources>
              <resource>
                <directory>src/main/content/jcr_root</directory>
                <excludes>
                  <exclude>libs/**</exclude>
                </excludes>
              </resource>
            </resources>
          </configuration>
        </execution>
      </executions>
    </plugin>
    <plugin>
      <groupId>org.apache.sling</groupId>
      <artifactId>maven-jspc-plugin</artifactId>
      <version>2.0.6</version>
      <executions>
        <execution>
          <id>compile-jsp</id>
          <goals>
            <goal>jspc</goal>
          </goals>
          <configuration>
            <jasperClassDebugInfo>false</jasperClassDebugInfo>
            <sourceDirectory>${project.build.directory}/jsps-to-compile</sourceDirectory>
            <outputDirectory>${project.build.directory}/ignoredjspc</outputDirectory>
          </configuration>
        </execution>
      </executions>
    </plugin>
    <plugin>
      <artifactId>maven-clean-plugin</artifactId>
      <executions>
        <execution>
          <id>remove-compiled-jsps</id>
          <goals>
            <goal>clean</goal>
          </goals>
          <phase>process-classes</phase>
          <configuration>
            <excludeDefaultDirectories>true</excludeDefaultDirectories>
            <filesets>
              <fileset>
                <directory>${project.build.directory}/jsps-to-compile</directory>
                <directory>${project.build.directory}/ignoredjspc</directory>
              </fileset>
            </filesets>
          </configuration>
        </execution>
      </executions>
    </plugin>
  </plugins>
</build>