content-package-maven-plugin:1.0.2 could not be resolved


Error on installing project via maven command.

Unresolveable build extension: Plugin com.day.jcr.vault:content-package-maven-plugin:1.0.2 or one of its dependencies could not be resolved: Failure to find com.day.jcr.vault:content-package-maven-plugin:jar:1.0.2 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR] Unknown packaging: content-package @ com.abc.aem.dam:abc.ui.content:[unknown-version], C:\Users\aanchalsikka\Projects\ABC\abc-dam\ui.content\pom.xml, line 34, column 16

Fix:

Use profile adobe-public in you maven command.Example: mvn clean install -PautoInstallPackage,adobe-public

A best practice is to add an adobe-public profile to your Maven settings.xml file in order to automatically add repo.adobe.com to the maven build process.

For details on how to configure settings.xml visit link

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s