autoInstallBundle failing - maven archetype 14

Avatar

Avatar
Validate 10
Level 4
sreenu539
Level 4

Likes

7 likes

Total Posts

158 posts

Correct reply

1 solution
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 20
View profile

Avatar
Validate 10
Level 4
sreenu539
Level 4

Likes

7 likes

Total Posts

158 posts

Correct reply

1 solution
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 20
View profile
sreenu539
Level 4

30-08-2018

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

Replies

Avatar

Avatar
Validate 25
MVP
Ratna_Kumar
MVP

Likes

159 likes

Total Posts

755 posts

Correct reply

134 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give Back 50
Give Back 5
View profile

Avatar
Validate 25
MVP
Ratna_Kumar
MVP

Likes

159 likes

Total Posts

755 posts

Correct reply

134 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give Back 50
Give Back 5
View profile
Ratna_Kumar
MVP

31-08-2018

Hi Sreenu,

I get this working. I have used Maven Archetype 14 and built the project. Below is the screenshot.

Maven14.PNG

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.

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,444 likes

Total Posts

3,328 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,444 likes

Total Posts

3,328 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

31-08-2018

Hi,

Try below if helps:

  • Remove .m2\repository\org\apache\maven\plugins\maven-jar-plugin folder on your file system. Your plugin jar might be corrupted.
  • try with latest maven Maven 3.3+

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

31-08-2018

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.