What should a developer add to the pom.xml to fixthe Maven build?

The dependency of an AEM project fails when a developer configures using Apache Maven.

Refer to the error information below.

INFO]—————————————

[ERROR] COMPILATION ERROR :

[INFO] —————————————

[ERROR]

/training/core/src/main/java/com/adobe/training/core/listeners/SimpleResourceListener.java

:[18,28] package org.apache.sling.api doesnot exist

[ERROR]

/training/core/src/main/java/com/adobe/training/core/filters/LoggingFilter.java:[26,28]

package org.apache.sling.api does not exist

[ERROR]

/training/core/src/main/java/com/adobe/training/core/filters/LoggingFilter.java:[27,31]

packageorg.apache.sling.engine does not exist

[ERROR]

/training/core/src/main/java/com/adobe/training/core/models/HelloWorldModel.java:[22,37]

package org.apache.sling.api.resource does not exist

[ERROR]

/training/core/src/main/java/com/adobe/training/core/models/HelloWorldModel.java:[25,33]

package org.apache.sling.api.settings does not exist

[ERROR]

/training/core/src/main/java/com/adobe/training/core/models/HelloWorldModel.java:[31,13]

cannot find symbol

symbol: class SlingSettingsService

location: class com.adobe.training.core.models.HelloWorldModel

What should a developer add to the pom.xml to fixthe Maven build?
A . "<dependency>
<groupId>com.adode.aem</groupId> <artifactId>aem-api</artifactId> <version>6.4.0</version> <classifier>apis</classifier> <scope<provided</scope> </dependency>"
B . "<dependency>
<groupId>com.adode.aem</groupId> <artifactId>uber-jar</artifactId> <version>6.4.0</version> <classifier>apis</classifier> <scope<provided</scope> </dependency>"

C . "<resources>
<resource>
<directory>src/main/content/jcr_root</directory> <filtering>false</filtering> <excludes>
<exclude>**/.vlt</exclude>
<exclude>**/.vltignore</exclude>
<exclude>libs</exclude>
</excludes>
</resource>
</resources>"
"<repositories>
D . <repository>
<id>adobe-public-releases</id>
<name>Adobe Public Repository</name>
<url>https://repo.adobe.com/nexus/content/groups/public/</url>
<layout>default</layout>
</repository>
</repositories>"

Answer: B

Latest AD0-E116 Dumps Valid Version with 94 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments