we are trying to upgrade our project to AEM 6.1 and JDK 1.8 version .
we are trying to modify the pom.xml files of my project.
we used the following combinations :
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin>
<plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-scr-plugin</artifactId> <version>1.21.0</version> <extensions>true</extensions> <configuration> <sourceExcludes>com/sapient/archive/*.java</sourceExcludes> </configuration> <executions> <execution> <id>generate-scr-scrdescriptor</id> <goals> <goal>scr</goal> </goals> </execution> </executions> </plugin>
<dependency> <groupId>org.apache.felix</groupId> <artifactId>org.apache.felix.scr.annotations</artifactId> <version>1.9.6</version> <scope>provided</scope> </dependency>
if we use the following combination in parent and as well and child we are getting the following error:
[ERROR] Failed to execute goal org.apache.felix:maven-scr-plugin:1.21.0:scr (generate-scr-scrdescriptor) on project aem.foundation: SCR Descriptor parsing had failures (see log) -> [Help 1]
if we use the above combination only in parent, build got the success, but generated jar file is not creating OSGI-INF folder .
can anyone please provide the sample pom.xml file which will both compatible with 1.7 and 1.8 .
Lakshmi Raghava Reddy M.
can any one help
Hi, I am also facing the similar kind of problem. Please let me know if there is any fix