AEM 5.6 Configuration with Eclipse | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by alvawb

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?

3 replies

alvawbCommunity ManagerAccepted solution
Community Manager
October 16, 2015

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?

Lokesh_Shivalingaiah
Level 10
October 16, 2015

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.

October 16, 2015

@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>