Problem loading the plugin: org.apache.sling.bnd.models.ModelsScannerPlugin | Community
Skip to main content
New Participant
July 11, 2017
Solved

Problem loading the plugin: org.apache.sling.bnd.models.ModelsScannerPlugin

  • July 11, 2017
  • 1 reply
  • 3208 views

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.

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 Techaspect_Solu

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,

Techaspect Solutions Pvt Ltd.

1 reply

Techaspect_Solu
Techaspect_SoluAccepted solution
New Participant
July 12, 2017

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,

Techaspect Solutions Pvt Ltd.