[Bug]: Error during executing 'mvn clean install' < method container in class utam.core.framework.base.BasePageObject cannot be applied to given types;
Actual behavior
Getting following error message when executing "mvn clean install" command from project root directory from command line for java: [INFO] Compiling 18 source files to ...\utam-java-recipes\utam-preview\target\classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /.../utam-java-recipes/utam-preview/src/main/java/utam/tests/pageobjects/impl/UtamParentImpl.java:[28,16] method container in class utam.core.framework.base.BasePageObject cannot be applied to given types; required: utam.core.element.BasicElement found: utam.core.element.BasicElement,boolean reason: actual and formal argument lists differ in length [INFO] 1 error [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for utam-java-recipes 1.0-SNAPSHOT: [INFO] [INFO] utam-java-recipes .................................. SUCCESS [ 0.231 s] [INFO] utam-preview ....................................... FAILURE [ 4.333 s] [INFO] utam-tests ......................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.645 s [INFO] [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project utam-preview: Compilation failure [ERROR] /.../utam-java-recipes/utam-preview/src/main/java/utam/tests/pageobjects/impl/UtamParentImpl.java:[28,16] method container in class utam.core.framework.base.BasePageObject cannot be applied to given types; [ERROR] required: utam.core.element.BasicElement [ERROR] found: utam.core.element.BasicElement,boolean [ERROR] reason: actual and formal argument lists differ in length
What is your expected behavior?
Java compilation should be completed successfully without any errors.
Steps to reproduce
- Clone utam-java-recipes project.
- From project root, execute "mvn clean install" (as mentioned in steps in Readme.md file)
- Import as a maven project into Eclipse.
- In main pom.xml file, update version as 4.0.1 for salesforce-pageobjects and utam-core dependencies.
- From project root, on command line, execute 'mvn clean install'
- See that above mentioned error occurs.
With default latest versions (instead of 4.0.1) for both (utam-core and salesforce-pageobjects) dependencies, compilation completed successfully.