Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Getting error while building Archetype project in AEM version 6.4.0

Avatar

Avatar
Validate 1
Level 2
jadhavni3
Level 2

Likes

6 likes

Total Posts

45 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Validate 1
Level 2
jadhavni3
Level 2

Likes

6 likes

Total Posts

45 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile
jadhavni3
Level 2

07-10-2020

Hi,

I'm getting below error while installing command as "mvn clean install -PautoInstallAll" to integrate Magento with AEM. 

[INFO] acme-store ......................................... SUCCESS [ 1.934 s]
[INFO] Acme Store - Core .................................. SUCCESS [01:20 min]
[INFO] Acme Store - UI apps ............................... SUCCESS [ 25.059 s]
[INFO] Acme Store - UI content ............................ FAILURE [ 1.365 s]
[INFO] Acme Store - Sample Content ........................ SKIPPED
[INFO] Acme Store - All-in-one package .................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:52 min
[INFO] Finished at: 2020-10-08T09:36:22+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:3.0.0:clean (default-clean) on project acme-store.ui.content: Failed to clean project: Failed to delete C:\Users\Administrator\Desktop\Nitin\Integration\acme-store\ui.content\target\vault-work\META-INF\vault\properties.xml -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :acme-store.ui.content.

For reference please find attached screenshot.

 

jadhavni3_0-1602130435290.png

 

Please suggest.

 

Thank you.

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
MVP
santhosh_kumark
MVP

Likes

98 likes

Total Posts

111 posts

Correct Reply

38 solutions
Top badges earned
Validate 1
Give Back 3
Give Back
Boost 50
Boost 5
View profile

Avatar
Validate 1
MVP
santhosh_kumark
MVP

Likes

98 likes

Total Posts

111 posts

Correct Reply

38 solutions
Top badges earned
Validate 1
Give Back 3
Give Back
Boost 50
Boost 5
View profile
santhosh_kumark
MVP

08-10-2020

Hi @jadhavni3 ,

 

This could happen some time (mostly when another process open the location) try deleting C:\Users\Administrator\Desktop\Nitin\Integration\acme-store\ui.content\target\vault-work\META-INF\vault\properties.xml manually and build project again. 

because  eclipse gets lock on some files and maven cannot delete them. Try to exit eclipse and run maven from command line. Then start eclipse again, this may helps you.

 

Regards,

Santosh

jadhavni3
Hi @santhosh_kumark, Getting below error : [ERROR] Bundle com.acme.cif:acme-store.core:bundle:0.0.1-SNAPSHOT : Got unexpected exception while analyzing:java.lang.NoClassDefFoundError: com/day/cq/search/impl/util/InvalidDateException at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) at java.lang.Class.getDeclaredMethod(Class.java:2128) at org.apache.felix.scrplugin.helper.Validator.getMethod(Validator.java:597) at org.apache.felix.scrplugin.helper.Validator.getMethod(Validator.java:226) at org.apache.felix.scrplugin.helper.Validator.findLifecycleMethod(Validator.java:246) at org.apache.felix.scrplugin.SCRDescriptorGenerator.createComponent(SCRDescriptorGenerator.java:437) at org.apache.felix.scrplugin.SCRDescriptorGenerator.execute(SCRDescriptorGenerator.java:161) at org.apache.felix.scrplugin.bnd.SCRDescriptorBndPlugin.analyzeJar(SCRDescriptorBndPlugin.java:178) at aQute.bnd.osgi.Analyzer.doPlugins(Analyzer.java:928) at aQute.bnd.osgi.Analyzer.analyze(Analyzer.java:247) at aQute.bnd.osgi.Builder.analyze(Builder.java:439) at aQute.bnd.osgi.Analyzer.calcManifest(Analyzer.java:958) at aQute.bnd.osgi.Builder.build(Builder.java:123) at org.apache.felix.bundleplugin.BundlePlugin.buildOSGiBundle(BundlePlugin.java:948) at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:450) at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:371) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:957) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289) at org.apache.maven.cli.MavenCli.main(MavenCli.java:193) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347) Caused by: java.lang.ClassNotFoundException: com.day.cq.search.impl.util.InvalidDateException at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ... 39 more [ERROR] Error(s) found in bundle configuration [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for acme-store 0.0.1-SNAPSHOT: [INFO] [INFO] acme-store ......................................... SUCCESS [ 1.774 s] [INFO] Acme Store - Core .................................. FAILURE [ 37.638 s] [INFO] Acme Store - UI apps ............................... SKIPPED [INFO] Acme Store - UI content ............................ SKIPPED [INFO] Acme Store - Sample Content ........................ SKIPPED [INFO] Acme Store - All-in-one package .................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 46.067 s [INFO] Finished at: 2020-10-08T16:12:20+05:30 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.felix:maven-bundle-plugin:5.1.1:bundle (default-bundle) on project acme-store.core: Error(s) found in bundle configuration -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <args> -rf :acme-store.core Please suggest. Thank you.

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
MVP
Nikhil-Kumar
MVP

Likes

240 likes

Total Posts

253 posts

Correct Reply

38 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Validate 1
MVP
Nikhil-Kumar
MVP

Likes

240 likes

Total Posts

253 posts

Correct Reply

38 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile
Nikhil-Kumar
MVP

08-10-2020

@jadhavni3 - 
Try doing mvn clean alone first, and then build your project again.

Thanks,
Nikhil

 

jadhavni3
Hi @Nikhil-Kumar, Yes, tried it but getting below error: [ERROR] Bundle com.acme.cif:acme-store.core:bundle:0.0.1-SNAPSHOT : Got unexpected exception while analyzing:java.lang.NoClassDefFoundError: com/day/cq/search/impl/util/InvalidDateException at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) at java.lang.Class.getDeclaredMethod(Class.java:2128) at org.apache.felix.scrplugin.helper.Validator.getMethod(Validator.java:597) at org.apache.felix.scrplugin.helper.Validator.getMethod(Validator.java:226) at org.apache.felix.scrplugin.helper.Validator.findLifecycleMethod(Validator.java:246) at org.apache.felix.scrplugin.SCRDescriptorGenerator.createComponent(SCRDescriptorGenerator.java:437) at org.apache.felix.scrplugin.SCRDescriptorGenerator.execute(SCRDescriptorGenerator.java:161) at org.apache.felix.scrplugin.bnd.SCRDescriptorBndPlugin.analyzeJar(SCRDescriptorBndPlugin.java:178) at aQute.bnd.osgi.Analyzer.doPlugins(Analyzer.java:928) at aQute.bnd.osgi.Analyzer.analyze(Analyzer.java:247) at aQute.bnd.osgi.Builder.analyze(Builder.java:439) at aQute.bnd.osgi.Analyzer.calcManifest(Analyzer.java:958) at aQute.bnd.osgi.Builder.build(Builder.java:123) at org.apache.felix.bundleplugin.BundlePlugin.buildOSGiBundle(BundlePlugin.java:948) at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:450) at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:371) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:957) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289) at org.apache.maven.cli.MavenCli.main(MavenCli.java:193) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347) Caused by: java.lang.ClassNotFoundException: com.day.cq.search.impl.util.InvalidDateException at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ... 39 more [ERROR] Error(s) found in bundle configuration [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for acme-store 0.0.1-SNAPSHOT: [INFO] [INFO] acme-store ......................................... SUCCESS [ 1.774 s] [INFO] Acme Store - Core .................................. FAILURE [ 37.638 s] [INFO] Acme Store - UI apps ............................... SKIPPED [INFO] Acme Store - UI content ............................ SKIPPED [INFO] Acme Store - Sample Content ........................ SKIPPED [INFO] Acme Store - All-in-one package .................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 46.067 s [INFO] Finished at: 2020-10-08T16:12:20+05:30 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.felix:maven-bundle-plugin:5.1.1:bundle (default-bundle) on project acme-store.core: Error(s) found in bundle configuration -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <args> -rf :acme-store.core Please suggest. Thank you.