Build error in Maven while building custom action in HP OO 10.60
I am following the Action Developers Guide and have imported the project into Eclipse. Now when I clean and Compile or install the project, I am getting the below error:
Caused by: org.apache.maven.plugin.PluginContainerException: An API incompatibility was encountered while executing com.hp.oo.sdk:oo-contentpack-maven-plugin:10.60.00-RC9:generate-contentpack: java.lang.NoSuchMethodError: org.apache.maven.execution.MavenSession.getRepositorySession()Lorg/eclipse/aether/RepositorySystemSession;
The below is the compiler version in my pom.xml
Is this the problem with the compiler version? I am using Maven 3.2.1 as instructed in the guide. Kindly help me.
My suggestion would be to grab the latest SDK and follow these steps: https://docs.microfocus.com/OO/10.80/Content/Develop/developing_plugins_java_actions.htm (this is what you already followed for 10.60 right?)
Thank you for your suggestion. Yes, it is the same. I am not able to resolve this. But I made a work around : Instead of compiling from the IDE, I just build it from the command prompt with the command: "mvn -X clean install" and it went fine.