custom liveaction implementation using BaseAction and BaseActionFactory | Community
Skip to main content
mohanb
Level 4
Nov 1, 2016 1:39 AM UTC
Solved

custom liveaction implementation using BaseAction and BaseActionFactory

Hi,

I am trying to implement custom liveaction as per the steps mentioned in http://suryakand-shinde.blogspot.com/2015/01/custom-synchronisation-or-rollout.html article. when i run mvn, build fails miserably with following exception. i've referred some of forum discussion but not much useful in resolving this aspect. any pointers will be really helpful

INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 3.473 s

[INFO] Finished at: 2016-10-31T18:38:09-07:00

[INFO] Final Memory: 42M/385M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.felix:maven-scr-plugin:1.20.0:scr (generate-scr-scrdescriptor) on project legal.core: Execution generate-scr-scrdescriptor of goal org.apache.felix:maven-scr-plugin:1.20.0:scr failed: An API incompatibility was encountered while executing org.apache.felix:maven-scr-plugin:1.20.0:scr: java.lang.VerifyError: (class: com/day/cq/wcm/msm/commons/BaseActionFactory, method: <init> signature: ()V) Constructor must call super() or this()

[ERROR] -----------------------------------------------------

[ERROR] realm =    plugin>org.apache.felix:maven-scr-plugin:1.20.0

[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy

[ERROR] urls[0] = file:/Users/mohan_basavarajappa/.m2/repository/org/apache/felix/maven-scr-plugin/1.20.0/maven-scr-plugin-1.20.0.jar

[ERROR] urls[1] = file:/Users/mohan_basavarajappa/.m2/repository/org/slf4j/slf4j-simple/1.5.11/slf4j-simple-1.5.11.jar

[ERROR] urls[2] = file:/Users/mohan_basavarajappa/.m2/repository/org/slf4j/slf4j-api/1.5.11/slf4j-api-1.5.11.jar

[ERROR] urls[3] = file:/Users/mohan_basavarajappa/.m2/repository/org/apache/maven/maven-archiver/2.2/maven-archiver-2.2.jar

[ERROR] urls[4] = file:/Users/mohan_basavarajappa/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar

[ERROR] urls[5] = file:/Users/mohan_basavarajappa/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar

[ERROR] urls[6] = file:/Users/mohan_basavarajappa/.m2/repository/org/apache/felix/org.apache.felix.scr.generator/1.12.0/org.apache.felix.scr.generator-1.12.0.jar

[ERROR] urls[7] = file:/Users/mohan_basavarajappa/.m2/repository/org/ow2/asm/asm-all/5.0.2/asm-all-5.0.2.jar

[ERROR] urls[8] = file:/Users/mohan_basavarajappa/.m2/repository/org/osgi/org.osgi.core/4.2.0/org.osgi.core-4.2.0.jar

[ERROR] urls[9] = file:/Users/mohan_basavarajappa/.m2/repository/org/osgi/org.osgi.compendium/4.2.0/org.osgi.compendium-4.2.0.jar

[ERROR] urls[10] = file:/Users/mohan_basavarajappa/.m2/repository/org/sonatype/plexus/plexus-build-api/0.0.7/plexus-build-api-0.0.7.jar

[ERROR] urls[11] = file:/Users/mohan_basavarajappa/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.8/plexus-utils-1.5.8.jar

[ERROR] Number of foreign imports: 1

[ERROR] import: Entry[import  from realm ClassRealm[project>com.apple.cmscoe:legal.core:0.0.1-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]

[ERROR] 

[ERROR] -----------------------------------------------------

[ERROR] -> [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/PluginContainerException

[ERROR] 

[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn <goals> -rf :legal.core

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
mohanb
mohanbAccepted solution
Level 4
Nov 7, 2016 6:26 PM UTC

I am able to resolve this exception during maven build by explicit manual addition of cq-msm-commons jar file to (local) maven repository. You can download this jar from AEM environment and add it to your maven repository using command mentioned below.

mvn install:install-file -DgroupId=com.day.cq.wcm -DartifactId=cq-msm-commons -Dversion=1.1.2 -Dpackaging=jar -Dfile=<jar file location>

after adding this jar to your maven repo, mvn build and package installation will work as expected.

12 replies

smacdonald2008
Level 10
Nov 1, 2016 2:10 PM UTC

Have you tried using Maven Archetype 10 and AEM urber Jar? 

Translate
kautuk_sahni
Employee
Nov 1, 2016 10:48 AM UTC

Please have a look at these links:- 

Link:- http://labs.6dglobal.com/blog/2015-09-14/felix-scr-plugin-compatibility-chart/

// It talks about  the compatible versions of the Apache Felix SCR Annotations and Apache Felix Maven SCR Plugin:

                                                                                                                                                                                                                                                                                                                                                                                                               
 maven-scr-plugin Versions
org.apache.felix.scr.annotations Versions 1.21.01.20.01.19.01.17.01.16.01.15.01.14.01.13.01.12.01.11.01.10.01.9.01.8.01.7.41.7.21.7.01.6.01.4.41.4.21.4.0
1.9.12TTTTTTTTTTFTTFFFFTTF
1.9.10TTTTTTTTTTFTTFFFFTTF
1.9.8TTTTTTFTTTFTTFFFFTTF
1.9.6TTTTTTTTTTFTTFFFFTTF
1.9.4TTTTTTTTTTFTTFFFFTTF
1.9.2TTTTTTTTTTFTTFFFFTTF
1.9.0TFTTTTTTTTFTTFFFFTTF
1.8.0FFFFFFFFFFFTTFFFFTTF
1.7.0FFFFFFFFFFFTTFFFFTTF
1.6.0FFFFFFFFFFFFFTTFFTTF
1.5.0FFFFFFFFFFFFFFFFFTTF
1.4.0FFFFFFFFFFFFFFFTTTTF
1.3.0FFFFFFFFFFFFFFFFFTTF
1.2.0FFFFFFFFFFFFFFFFFTTF
1.0.0FFFFFFFFFFFFFFFFFTTF
0.9.0FFFFFFFFFFFFFFFFFTTF

Link:- https://github.com/Adobe-Consulting-Services/lazybones-aem-templates/issues/8

Link:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__vski-hi_we_are_trying.html

I hope this would help you.

~kautuk

Translate
Kautuk Sahni