I am getting following error when I do autoInstallBundle for maven archetype 14
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.sling:maven-sling-plugin:2.2.0:install (default) on project component-marketplace.core: Execution default of goal org.apache.sling:maven-sling-plugin:2.2.0:install failed: A required class was missing while executing org.apache.sling:maven-sling-plugin:2.2.0:install: org/slf4j/spi/LocationAwareLogger
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.apache.sling:maven-sling-plugin:2.2.0
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/Users/remo/.m2/repository/org/apache/sling/maven-sling-plugin/2.2.0/maven-sling-plugin-2.2.0.jar
[ERROR] urls[1] = file:/Users/remo/.m2/repository/org/apache/commons/commons-lang3/3.5/commons-lang3-3.5.jar
[ERROR] urls[2] = file:/Users/remo/.m2/repository/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar
[ERROR] urls[3] = file:/Users/remo/.m2/repository/commons-codec/commons-codec/1.2/commons-codec-1.2.jar
[ERROR] urls[4] = file:/Users/remo/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar
[ERROR] urls[5] = file:/Users/remo/.m2/repository/commons-io/commons-io/2.5/commons-io-2.5.jar
[ERROR] urls[6] = file:/Users/remo/.m2/repository/org/apache/johnzon/johnzon-core/1.0.0/johnzon-core-1.0.0.jar
[ERROR] urls[7] = file:/Users/remo/.m2/repository/org/apache/geronimo/specs/geronimo-json_1.0_spec/1.0-alpha-1/geronimo-json_1.0_spec-1.0-alpha-1.jar
[ERROR] urls[8] = file:/Users/remo/.m2/repository/org/apache/jackrabbit/vault/org.apache.jackrabbit.vault/3.1.18/org.apache.jackrabbit.vault-3.1.18.jar
[ERROR] urls[9] = file:/Users/remo/.m2/repository/javax/jcr/jcr/2.0/jcr-2.0.jar
[ERROR] urls[10] = file:/Users/remo/.m2/repository/org/apache/sling/org.apache.sling.commons.osgi/2.4.0/org.apache.sling.commons.osgi-2.4.0.jar
[ERROR] urls[11] = file:/Users/remo/.m2/repository/org/apache/maven/maven-archiver/2.6/maven-archiver-2.6.jar
[ERROR] urls[12] = file:/Users/remo/.m2/repository/org/slf4j/slf4j-jdk14/1.5.6/slf4j-jdk14-1.5.6.jar
[ERROR] urls[13] = file:/Users/remo/.m2/repository/org/slf4j/jcl-over-slf4j/1.5.6/jcl-over-slf4j-1.5.6.jar
[ERROR] urls[14] = file:/Users/remo/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.2.1/maven-reporting-api-2.2.1.jar
[ERROR] urls[15] = file:/Users/remo/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.1/doxia-sink-api-1.1.jar
[ERROR] urls[16] = file:/Users/remo/.m2/repository/org/apache/maven/doxia/doxia-logging-api/1.1/doxia-logging-api-1.1.jar
[ERROR] urls[17] = file:/Users/remo/.m2/repository/commons-cli/commons-cli/1.2/commons-cli-1.2.jar
[ERROR] urls[18] = file:/Users/remo/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar
[ERROR] urls[19] = file:/Users/remo/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar
[ERROR] urls[20] = file:/Users/remo/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[21] = file:/Users/remo/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[22] = file:/Users/remo/.m2/repository/org/apache/maven/shared/maven-shared-utils/0.7/maven-shared-utils-0.7.jar
[ERROR] urls[23] = file:/Users/remo/.m2/repository/org/codehaus/plexus/plexus-archiver/2.8.1/plexus-archiver-2.8.1.jar
[ERROR] urls[24] = file:/Users/remo/.m2/repository/org/codehaus/plexus/plexus-io/2.3.2/plexus-io-2.3.2.jar
[ERROR] urls[25] = file:/Users/remo/.m2/repository/org/apache/commons/commons-compress/1.9/commons-compress-1.9.jar
[ERROR] urls[26] = file:/Users/remo/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.20/plexus-utils-3.0.20.jar
[ERROR] urls[27] = file:/Users/remo/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.21/plexus-interpolation-1.21.jar
[ERROR] urls[28] = file:/Users/remo/.m2/repository/net/sf/scannotation/scannotation/1.0.2/scannotation-1.0.2.jar
[ERROR] urls[29] = file:/Users/remo/.m2/repository/javassist/javassist/3.6.0.GA/javassist-3.6.0.GA.jar
[ERROR] urls[30] = file:/Users/remo/.m2/repository/org/apache/sling/adapter-annotations/1.0.0/adapter-annotations-1.0.0.jar
[ERROR] urls[31] = file:/Users/remo/.m2/repository/asm/asm-all/3.3.1/asm-all-3.3.1.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[project>com.company:component-marketplace.core:1.0, parent: ClassRealm[maven.api, parent: null]]]
[ERROR]
[ERROR] -----------------------------------------------------: org.slf4j.spi.LocationAwareLogger
[ERROR] -> [Help 1]
[ERROR]
Any help?
Thanks,
Sri
Views
Replies
Total Likes
Hi Sreenu,
I get this working. I have used Maven Archetype 14 and built the project. Below is the screenshot.
Also did you used the same plugin i.e., mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeGroupId=com.adobe.granite.archetypes -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=14 -DarchetypeCatalog=https://repo.adobe.com/nexus/content/groups/public/ and once the project is created did you built using this command - mvn -PautoInstallBundle install.
Also, make sure to include the POM in Parent and as well as child i.e.,
In parent POM:
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>uber-jar</artifactId>
<version>6.4.0</version>
<!-- for AEM6.1 use this version : <version>6.1.0</version> -->
<!-- for AEM6.1 SP1 use this version : <version>6.1.0-SP1-B0001</version> -->
<!-- for AEM6.1 SP2 use this version : <version>6.1.0-SP2</version> -->
<!-- for AEM6.2 use this version : <version>6.2.0</version> -->
<classifier>obfuscated-apis</classifier>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-atinject_1.0_spec</artifactId>
<version>1.0</version>
<scope>provided</scope>
</dependency>
In child POM:
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>uber-jar</artifactId>
<classifier>apis</classifier>
</dependency>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-atinject_1.0_spec</artifactId>
</dependency>
Since there is no HELPX article on Maven 14, me and smacdonald2008 will create the new HELPX article on this!!
Thanks,
Ratna Kumar.
Views
Replies
Total Likes
We will put Maven Archetype 14 on the list of community articles to write. If 14 does not work - then revert back to 13 for now.
Views
Replies
Total Likes
Hi,
Try below if helps:
Views
Replies
Total Likes
Views
Likes
Replies