In AEM 6.3 pom.xml, I defined
<instructions>
<_plugin>org.apache.sling.bnd.models.ModelsScannerPlugin</_plugin>
</instructions>
in the build, it throws an Error:
Problem loading the plugin: org.apache.sling.bnd.models.ModelsScannerPlugin exception: (java.lang.AbstractMethodError: org.apache.sling.bnd.models.ModelsScannerPlugin.setReporter(LaQute/libg/reporter/Reporter;)V).
What does it mean? how to resolve it?
Please help.
Thanks.
Solved! Go to Solution.
Hi BigT168,
This issue might be because, it is unable to load the plugin properly.
Can you please try adding the plugin with the dependency as below:
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<_plugin>org.apache.sling.bnd.models.ModelsScannerPlugin</_plugin>
</instructions>
</configuration>
<dependencies>
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.bnd.models</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
</plugin>
Also you can refer to the Sling Models.
Thanks,
Hi BigT168,
This issue might be because, it is unable to load the plugin properly.
Can you please try adding the plugin with the dependency as below:
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<_plugin>org.apache.sling.bnd.models.ModelsScannerPlugin</_plugin>
</instructions>
</configuration>
<dependencies>
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.bnd.models</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
</plugin>
Also you can refer to the Sling Models.
Thanks,