Expand my Community achievements bar.

SOLVED

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

Avatar

Level 6

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.

1 Accepted Solution

Avatar

Correct answer by
Level 7

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.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 7

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.