Compilation failure when building Maven project - java

I'm trying to build a Maven project using Eclipse, I am using the command "clean install" to build this application, however I got the error shown bellow.
the pom.xml file includes those dependencies:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<groupId>ma.manager.backoffice</groupId>
<artifactId>bookManager</artifactId>
<version>1.0</version>
<relativePath>../bookManager</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>bookManager</artifactId>
<packaging>war</packaging>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
<resource>
<directory>src/main/config/${env}</directory>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.8.1</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-csv</artifactId>
<version>2.8.9</version>
</dependency>
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-convention-plugin</artifactId>
<version>2.5.16</version>
</dependency>
<dependency>
<groupId>com.opensymphony</groupId>
<artifactId>xwork</artifactId>
<version>2.1.3</version>
</dependency>
</dependencies>
</project>
I've tried those steps:
Updating the project;
Clean project then run clean install
Downloading the dependencies manually
Importing the project several times
Checking the java version:
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.956 s
[INFO] Finished at: 2020-07-01T08:40:27+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project bookManager: Compilation failure: Compilation failure:
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/action/MasterAction.java:[5,48] package org.apache.struts2.convention.annotation does not exist
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/action/MasterAction.java:[6,48] package org.apache.struts2.convention.annotation does not exist
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/action/MasterAction.java:[7,38] package org.apache.struts2.interceptor does not exist
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/action/MasterAction.java:[9,31] package com.opensymphony.xwork2 does not exist
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/action/MasterAction.java:[13,32] cannot find symbol
[ERROR] symbol: class ActionSupport
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/action/MasterAction.java:[13,57] cannot find symbol
[ERROR] symbol: class SessionAware
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/action/MasterAction.java:[11,2] cannot find symbol
[ERROR] symbol: class Namespace
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/action/MasterAction.java:[12,2] cannot find symbol
[ERROR] symbol: class ParentPackage
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/action/exception/ExceptionHandler.java:[8,31] package com.opensymphony.xwork2 does not exist
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/action/exception/ExceptionHandler.java:[9,31] package com.opensymphony.xwork2 does not exist
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/action/exception/ExceptionHandler.java:[10,36] package com.opensymphony.xwork2.util does not exist
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/action/exception/ExceptionHandler.java:[12,39] cannot find symbol
[ERROR] symbol: class ActionSupport
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/tag/Category.java:[4,25] package javax.servlet.jsp does not exist
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/tag/Category.java:[5,32] package javax.servlet.jsp.tagext does not exist
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/tag/Category.java:[9,33] cannot find symbol
[ERROR] symbol: class TagSupport
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/tag/Category.java:[16,40] cannot find symbol
[ERROR] symbol: class JspException
[ERROR] location: class ma.manager.backoffice.tag.Category
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/action/WelcomeAction.java:[3,48] package org.apache.struts2.convention.annotation does not exist
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/action/WelcomeAction.java:[4,48] package org.apache.struts2.convention.annotation does not exist
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/action/WelcomeAction.java:[5,48] package org.apache.struts2.convention.annotation does not exist
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/action/WelcomeAction.java:[6,48] package org.apache.struts2.convention.annotation does not exist
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/action/WelcomeAction.java:[8,31] package com.opensymphony.xwork2 does not exist
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/action/WelcomeAction.java:[13,36] cannot find symbol
[ERROR] symbol: class ActionSupport
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/action/WelcomeAction.java:[11,2] cannot find symbol
[ERROR] symbol: class Namespace
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/action/WelcomeAction.java:[12,2] cannot find symbol
[ERROR] symbol: class ParentPackage
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/action/WelcomeAction.java:[22,10] cannot find symbol
[ERROR] symbol: class Action
[ERROR] location: class ma.manager.backoffice.action.WelcomeAction
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/action/WelcomeAction.java:[28,10] cannot find symbol
[ERROR] symbol: class Action
[ERROR] location: class ma.manager.backoffice.action.WelcomeAction
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/action/WelcomeAction.java:[35,10] cannot find symbol
[ERROR] symbol: class Action
[ERROR] location: class ma.manager.backoffice.action.WelcomeAction
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/action/MasterAction.java:[15,9] method does not override or implement a method from a supertype
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/action/exception/ExceptionHandler.java:[21,5] method does not override or implement a method from a supertype
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/action/exception/ExceptionHandler.java:[24,9] cannot find symbol
[ERROR] symbol: class ActionContext
[ERROR] location: class ma.manager.backoffice.action.exception.ExceptionHandler
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/action/exception/ExceptionHandler.java:[24,28] cannot find symbol
[ERROR] symbol: variable ActionContext
[ERROR] location: class ma.manager.backoffice.action.exception.ExceptionHandler
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/action/exception/ExceptionHandler.java:[25,9] cannot find symbol
[ERROR] symbol: class ValueStack
[ERROR] location: class ma.manager.backoffice.action.exception.ExceptionHandler
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/action/exception/ExceptionHandler.java:[30,17] cannot find symbol
[ERROR] symbol: method addActionError(java.lang.String)
[ERROR] location: class ma.manager.backoffice.action.exception.ExceptionHandler
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/action/exception/ExceptionHandler.java:[35,17] cannot find symbol
[ERROR] symbol: method addActionError(java.lang.String)
[ERROR] location: class ma.manager.backoffice.action.exception.ExceptionHandler
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/action/exception/ExceptionHandler.java:[41,25] cannot find symbol
[ERROR] symbol: method addActionError(java.lang.String)
[ERROR] location: class ma.manager.backoffice.action.exception.ExceptionHandler
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/tag/Category.java:[20,25] cannot find symbol
[ERROR] symbol: variable pageContext
[ERROR] location: class ma.manager.backoffice.tag.Category
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/tag/Category.java:[25,35] cannot find symbol
[ERROR] symbol: class JspException
[ERROR] location: class ma.manager.backoffice.tag.Category
[ERROR] /D:/Category/bookManager/src/main/java/ma/manager/backoffice/tag/Category.java:[27,24] cannot find symbol
[ERROR] symbol: variable SKIP_BODY
[ERROR] location: class ma.manager.backoffice.tag.Category
[ERROR] -> [Help 1]

Update:
From the snapshot, it looks like your JRE System library is set to Java SE 1.7 where as the JARs are of version 1.8.0_251. In POM, change the Source and Target versions to 1.8. Also please remove the installed JRE and change that to JDK 1.8.0_251. Do a project clean and rebuild after that.
Click remove and then add library.
Choose the JDK 1.8 which you have
Also check the compiler level:
Probably you are missing some dependencies (as the log says some packages not found)
Do you have these dependencies in your pom.xml?
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-convention-plugin</artifactId>
<version>2.5.22</version>
</dependency>
<dependency>
<groupId>com.opensymphony</groupId>
<artifactId>xwork</artifactId>
<version>2.1.3</version>
</dependency>

Related

Maven Build failure with Cannot find Symbol: class error

I had a working project, when i uploaded into Github, but now when I import that into another system, it shows build failure.
The project was uploaded from Win10 and now I am importing it to Mac. It is a very basic project for Maven, and I know there is some very basic mistake that I am missing to figure.
Please find the dependencies here
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>UI</groupId>
<artifactId>Automation</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>Automation</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-java -->
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java</artifactId>
<version>6.9.1</version>
</dependency>
<!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-junit -->
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-junit</artifactId>
<version>6.9.1</version>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java -->
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.141.59</version>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
After the import it is not recognizing the Hooks class that I am trying to extend to other classes too. And i get Cannot Find Symbol: Class error in the build.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/nehasingh/.p2/pool/plugins/org.eclipse.m2e.maven.runtime.slf4j.simple_1.16.0.20200610-1735/jars/slf4j-simple-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [file:/Users/nehasingh/eclipse/java-2021-032/Eclipse.app/Contents/Eclipse/configuration/org.eclipse.osgi/5/0/.cp/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/nehasingh/.p2/pool/plugins/org.eclipse.m2e.maven.runtime.slf4j.simple_1.16.0.20200610-1735/jars/slf4j-simple-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [file:/Users/nehasingh/eclipse/java-2021-032/Eclipse.app/Contents/Eclipse/configuration/org.eclipse.osgi/5/0/.cp/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------------< UI:Automation >----------------------------
[INFO] Building Automation 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # Automation ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/nehasingh/Downloads/AutomationUI-main/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) # Automation ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to /Users/nehasingh/Downloads/AutomationUI-main/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Users/nehasingh/Downloads/AutomationUI-main/src/main/java/UI/Automation/pageobjects/HomePage.java:[10,29] package UI.Automation.stepdfn does not exist
[ERROR] /Users/nehasingh/Downloads/AutomationUI-main/src/main/java/UI/Automation/pageobjects/HomePage.java:[14,31] cannot find symbol
symbol: class Hooks
[ERROR] /Users/nehasingh/Downloads/AutomationUI-main/src/main/java/UI/Automation/pageobjects/loginPage.java:[3,29] package UI.Automation.stepdfn does not exist
[ERROR] /Users/nehasingh/Downloads/AutomationUI-main/src/main/java/UI/Automation/pageobjects/loginPage.java:[5,32] cannot find symbol
symbol: class Hooks
[ERROR] /Users/nehasingh/Downloads/AutomationUI-main/src/main/java/UI/Automation/pageobjects/HomePage.java:[19,49] cannot find symbol
symbol: variable driver
location: class UI.Automation.pageobjects.HomePage
[ERROR] /Users/nehasingh/Downloads/AutomationUI-main/src/main/java/UI/Automation/pageobjects/HomePage.java:[32,35] cannot find symbol
symbol: variable driver
location: class UI.Automation.pageobjects.HomePage
[ERROR] /Users/nehasingh/Downloads/AutomationUI-main/src/main/java/UI/Automation/pageobjects/loginPage.java:[11,17] cannot find symbol
symbol: variable driver
location: class UI.Automation.pageobjects.loginPage
[INFO] 7 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.837 s
[INFO] Finished at: 2021-04-17T00:03:28-03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project Automation: Compilation failure: Compilation failure:
[ERROR] /Users/nehasingh/Downloads/AutomationUI-main/src/main/java/UI/Automation/pageobjects/HomePage.java:[10,29] package UI.Automation.stepdfn does not exist
[ERROR] /Users/nehasingh/Downloads/AutomationUI-main/src/main/java/UI/Automation/pageobjects/HomePage.java:[14,31] cannot find symbol
[ERROR] symbol: class Hooks
[ERROR] /Users/nehasingh/Downloads/AutomationUI-main/src/main/java/UI/Automation/pageobjects/loginPage.java:[3,29] package UI.Automation.stepdfn does not exist
[ERROR] /Users/nehasingh/Downloads/AutomationUI-main/src/main/java/UI/Automation/pageobjects/loginPage.java:[5,32] cannot find symbol
[ERROR] symbol: class Hooks
[ERROR] /Users/nehasingh/Downloads/AutomationUI-main/src/main/java/UI/Automation/pageobjects/HomePage.java:[19,49] cannot find symbol
[ERROR] symbol: variable driver
[ERROR] location: class UI.Automation.pageobjects.HomePage
[ERROR] /Users/nehasingh/Downloads/AutomationUI-main/src/main/java/UI/Automation/pageobjects/HomePage.java:[32,35] cannot find symbol
[ERROR] symbol: variable driver
[ERROR] location: class UI.Automation.pageobjects.HomePage
[ERROR] /Users/nehasingh/Downloads/AutomationUI-main/src/main/java/UI/Automation/pageobjects/loginPage.java:[11,17] cannot find symbol
[ERROR] symbol: variable driver
[ERROR] location: class UI.Automation.pageobjects.loginPage
[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/MojoFailureException
This was working completely fine in Win10 but not working in MacOS.
Versions:
JAVA:16
Maven: 3.8.1

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1

i am facing issue while compiling my maven project through command prompt , need help
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project Automation: Compilation failure: Compilation failure:
i am using JDK14 and latest eclipse IDE Version: 2020-03 (4.15.0)
Error message :
[ERROR] /C:/work/Automation Learning/Automation-testing-practise/src/main/java/com/kits/sit/Base_Setup/BQUK_Agent_Flow.java:[50,39] unmappable character (0x93) for encoding UTF-8
[ERROR] /C:/work/Automation Learning/Automation-testing-practise/src/main/java/com/kits/sit/Base_Setup/BQUK_Agent_Flow.java:[50,66] unmappable character (0x94) for encoding UTF-8
[ERROR] /C:/work/Automation Learning/Automation-testing-practise/src/main/java/com/qa/ExtentReportListener/AutomationExtentReport.java:[3,18] package org.testng does not exist
[ERROR] /C:/work/Automation Learning/Automation-testing-practise/src/main/java/com/qa/ExtentReportListener/AutomationExtentReport.java:[11,18] package org.testng does not exist
[ERROR] /C:/work/Automation Learning/Automation-testing-practise/src/main/java/com/qa/ExtentReportListener/AutomationExtentReport.java:[12,18] package org.testng does not exist
[ERROR] /C:/work/Automation Learning/Automation-testing-practise/src/main/java/com/qa/ExtentReportListener/AutomationExtentReport.java:[13,18] package org.testng does not exist
[ERROR] /C:/work/Automation Learning/Automation-testing-practise/src/main/java/com/qa/ExtentReportListener/AutomationExtentReport.java:[14,18] package org.testng does not exist
[ERROR] /C:/work/Automation Learning/Automation-testing-practise/src/main/java/com/qa/ExtentReportListener/AutomationExtentReport.java:[15,18] package org.testng does not exist
[ERROR] /C:/work/Automation Learning/Automation-testing-practise/src/main/java/com/qa/ExtentReportListener/AutomationExtentReport.java:[16,18] package org.testng does not exist
[ERROR] /C:/work/Automation Learning/Automation-testing-practise/src/main/java/com/qa/ExtentReportListener/AutomationExtentReport.java:[17,22] package org.testng.xml does not exist
[ERROR] /C:/work/Automation Learning/Automation-testing-practise/src/main/java/com/qa/ExtentReportListener/AutomationExtentReport.java:[23,48] cannot find symbol
[ERROR] symbol: class IReporter
[ERROR] /C:/work/Automation Learning/Automation-testing-practise/src/main/java/com/qa/ExtentReportListener/AutomationExtentReport.java:[31,37] cannot find symbol
[ERROR] symbol: class XmlSuite
[ERROR] location: class com.qa.ExtentReportListener.AutomationExtentReport
[ERROR] /C:/work/Automation Learning/Automation-testing-practise/src/main/java/com/qa/ExtentReportListener/AutomationExtentReport.java:[31,63] cannot find symbol
[ERROR] symbol: class ISuite
[ERROR] location: class com.qa.ExtentReportListener.AutomationExtentReport
[ERROR] /C:/work/Automation Learning/Automation-testing-practise/src/main/java/com/qa/ExtentReportListener/AutomationExtentReport.java:[52,33] cannot find symbol
[ERROR] symbol: class IResultMap
[ERROR] location: class com.qa.ExtentReportListener.AutomationExtentReport
[ERROR] /C:/work/Automation Learning/Automation-testing-practise/src/main/java/com/qa/analyzer/RetryAnalyzer.java:[4,18] package org.testng does not exist
[ERROR] /C:/work/Automation Learning/Automation-testing-practise/src/main/java/com/qa/analyzer/RetryAnalyzer.java:[5,18] package org.testng does not exist
[ERROR] /C:/work/Automation Learning/Automation-testing-practise/src/main/java/com/qa/analyzer/RetryAnalyzer.java:[6,39] cannot find symbol
[ERROR] symbol: class IRetryAnalyzer
[ERROR] /C:/work/Automation Learning/Automation-testing-practise/src/main/java/com/qa/analyzer/RetryAnalyzer.java:[25,30] cannot find symbol
[ERROR] symbol: class ITestResult
[ERROR] location: class com.qa.analyzer.RetryAnalyzer
[ERROR] /C:/work/Automation Learning/Automation-testing-practise/src/main/java/com/qa/analyzer/MyTransformer.java:[6,18] package org.testng does not exist
[ERROR] /C:/work/Automation Learning/Automation-testing-practise/src/main/java/com/qa/analyzer/MyTransformer.java:[7,30] package org.testng.annotations does not exist
[ERROR] /C:/work/Automation Learning/Automation-testing-practise/src/main/java/com/qa/analyzer/MyTransformer.java:[11,39] cannot find symbol
[ERROR] symbol: class IAnnotationTransformer
[ERROR] /C:/work/Automation Learning/Automation-testing-practise/src/main/java/com/qa/analyzer/MyTransformer.java:[13,31] cannot find symbol
[ERROR] symbol: class ITestAnnotation
[ERROR] location: class com.qa.analyzer.MyTransformer
[ERROR] /C:/work/Automation Learning/Automation-testing-practise/src/main/java/com/qa/ExtentReportListener/AutomationExtentReport.java:[36,26] cannot find symbol
[ERROR] symbol: class ISuite
[ERROR] location: class com.qa.ExtentReportListener.AutomationExtentReport
[ERROR] /C:/work/Automation Learning/Automation-testing-practise/src/main/java/com/qa/ExtentReportListener/AutomationExtentReport.java:[37,49] cannot find symbol
[ERROR] symbol: class ISuiteResult
[ERROR] location: class com.qa.ExtentReportListener.AutomationExtentReport
[ERROR] /C:/work/Automation Learning/Automation-testing-practise/src/main/java/com/qa/ExtentReportListener/AutomationExtentReport.java:[39,42] cannot find symbol
[ERROR] symbol: class ISuiteResult
[ERROR] location: class com.qa.ExtentReportListener.AutomationExtentReport
[ERROR] /C:/work/Automation Learning/Automation-testing-practise/src/main/java/com/qa/ExtentReportListener/AutomationExtentReport.java:[40,53] cannot find symbol
[ERROR] symbol: class ITestContext
[ERROR] location: class com.qa.ExtentReportListener.AutomationExtentReport
[ERROR] /C:/work/Automation Learning/Automation-testing-practise/src/main/java/com/qa/ExtentReportListener/AutomationExtentReport.java:[56,42] cannot find symbol
[ERROR] symbol: class ITestResult
[ERROR] location: class com.qa.ExtentReportListener.AutomationExtentReport
[ERROR] -> [Help 1]
POM.xml that i am using :
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.kingfisher</groupId>
<artifactId>Automation</artifactId>
<packaging>jar</packaging>
<version>0.0.1-SNAPSHOT</version>
<name>Maven Quick Start Archetype</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.20.1</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>testng.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<dependencies>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.141.59</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.14.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>3.17</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.8</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.relevantcodes</groupId>
<artifactId>extentreports</artifactId>
<version>2.41.2</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.6</version>
</dependency>
</dependencies>
</project>
First of all remove the unwanted testng dependency from the POM.xml and second you have added the scope as test in the testng dependency. You have also accessed the class file of the testng dependency with the scope test in src/main/java. Please remove the test scope from the dependency and then execute the test again. Let me know if the issue persists even after fixing the above issues.

Issue with maven compile

When trying to build in jenkins an E2E project using selenium wd and testng , I got the following error:
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Users/VickoS/.jenkins/E2EProject/src/main/java/resources/ExtentReporterNG.java:[9,18] package org.testng does not exist
[ERROR] /Users/VickoS/.jenkins/E2EProject/src/main/java/resources/ExtentReporterNG.java:[10,18] package org.testng does not exist
[ERROR] /Users/VickoS/.jenkins/E2EProject/src/main/java/resources/ExtentReporterNG.java:[11,18] package org.testng does not exist
[ERROR] /Users/VickoS/.jenkins/E2EProject/src/main/java/resources/ExtentReporterNG.java:[12,18] package org.testng does not exist
[ERROR] /Users/VickoS/.jenkins/E2EProject/src/main/java/resources/ExtentReporterNG.java:[13,18] package org.testng does not exist
[ERROR] /Users/VickoS/.jenkins/E2EProject/src/main/java/resources/ExtentReporterNG.java:[14,18] package org.testng does not exist
[ERROR] /Users/VickoS/.jenkins/E2EProject/src/main/java/resources/ExtentReporterNG.java:[15,22] package org.testng.xml does not exist
[ERROR] /Users/VickoS/.jenkins/E2EProject/src/main/java/resources/ExtentReporterNG.java:[21,42] cannot find symbol
symbol: class IReporter
[ERROR] /Users/VickoS/.jenkins/E2EProject/src/main/java/resources/ExtentReporterNG.java:[24,37] cannot find symbol
symbol: class XmlSuite
location: class resources.ExtentReporterNG
[ERROR] /Users/VickoS/.jenkins/E2EProject/src/main/java/resources/ExtentReporterNG.java:[24,63] cannot find symbol
symbol: class ISuite
location: class resources.ExtentReporterNG
[ERROR] /Users/VickoS/.jenkins/E2EProject/src/main/java/resources/ExtentReporterNG.java:[43,33] cannot find symbol
symbol: class IResultMap
location: class resources.ExtentReporterNG
[INFO] 11 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.605 s
[INFO] Finished at: 2020-04-03T19:51:37-03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project E2EProject: Compilation failure: Compilation failure:
[ERROR] /Users/VickoS/.jenkins/E2EProject/src/main/java/resources/ExtentReporterNG.java:[9,18] package org.testng does not exist
[ERROR] /Users/VickoS/.jenkins/E2EProject/src/main/java/resources/ExtentReporterNG.java:[10,18] package org.testng does not exist
[ERROR] /Users/VickoS/.jenkins/E2EProject/src/main/java/resources/ExtentReporterNG.java:[11,18] package org.testng does not exist
[ERROR] /Users/VickoS/.jenkins/E2EProject/src/main/java/resources/ExtentReporterNG.java:[12,18] package org.testng does not exist
[ERROR] /Users/VickoS/.jenkins/E2EProject/src/main/java/resources/ExtentReporterNG.java:[13,18] package org.testng does not exist
[ERROR] /Users/VickoS/.jenkins/E2EProject/src/main/java/resources/ExtentReporterNG.java:[14,18] package org.testng does not exist
[ERROR] /Users/VickoS/.jenkins/E2EProject/src/main/java/resources/ExtentReporterNG.java:[15,22] package org.testng.xml does not exist
[ERROR] /Users/VickoS/.jenkins/E2EProject/src/main/java/resources/ExtentReporterNG.java:[21,42] cannot find symbol
[ERROR] symbol: class IReporter
[ERROR] /Users/VickoS/.jenkins/E2EProject/src/main/java/resources/ExtentReporterNG.java:[24,37] cannot find symbol
[ERROR] symbol: class XmlSuite
[ERROR] location: class resources.ExtentReporterNG
[ERROR] /Users/VickoS/.jenkins/E2EProject/src/main/java/resources/ExtentReporterNG.java:[24,63] cannot find symbol
[ERROR] symbol: class ISuite
[ERROR] location: class resources.ExtentReporterNG
[ERROR] /Users/VickoS/.jenkins/E2EProject/src/main/java/resources/ExtentReporterNG.java:[43,33] cannot find symbol
[ERROR] symbol: class IResultMap
[ERROR] location: class resources.ExtentReporterNG
[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/MojoFailureException
This was not happening when running the mvn compile command before, but after updating my POM and re-compiling, it started to show in the terminal too. The project works perfectly fine when running it from the testng.xml in eclipse.
Here's how my POM file looks like
<url>http://maven.apache.org</url>
<build>
<resources>
<resource>
<directory>src/main/java/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M4</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>testng.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.apple</groupId>
<artifactId>AppleJavaExtensions</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.4.0</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>7.1.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.aventstack</groupId>
<artifactId>extentreports</artifactId>
<version>3.0.6</version>
</dependency>
<dependency>
<groupId>com.relevantcodes</groupId>
<artifactId>extentreports</artifactId>
<version>2.41.2</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.8.2</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.8.2</version>
</dependency>
</dependencies>
</project>
Attaching image of how the project looks like:
Project
I was finally able to solve this by updating my POM file doing the following:
Removing the extent report dependency that had the avenstack groupID
<dependency>
<groupId>com.aventstack</groupId>
<artifactId>extentreports</artifactId>
<version>3.0.6</version>
</dependency>
updating the other Extent Report to this v:
<dependency>
<groupId>com.aventstack</groupId>
<artifactId>extentreports</artifactId>
<version>3.1.5</version>
</dependency>
And adding this one too:
<dependency>
<groupId>org.freemarker</groupId>
<artifactId>freemarker</artifactId>
<version>2.3.28</version>
</dependency>

Spring Boot, Java 9 and Maven multi-modules project can't find sibling module + Lombok generated methods

I try to migrate a Spring Boot project which I began to develop without modules, to a Java 9 Jigsaw architecture.
I can't figure why (I tried many solutions and passed a few hours on this problem) but when building my service module, which depends on my common modules, classes of common aren't reachable.
Note: all my module-info.java files are under the src/main/java folder in each module.
Thank you in advance, I don't know what's wrong with my configuration...
Here is what I get when I try to do a mvn clean install ine the project's root folder:
[INFO] 54 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] server 0.0.1-SNAPSHOT .............................. SUCCESS [ 2.449 s]
[INFO] common ............................................. SUCCESS [ 4.242 s]
[INFO] service ............................................ FAILURE [ 3.058 s]
[INFO] api 0.0.1-SNAPSHOT ................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.602 s
[INFO] Finished at: 2018-03-25T18:40:01+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project service: Compilation failure: Compilation failure:
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/common/LastfmApiTrackDto_to_LovedTrackDto_Converter.java:[3,55] package com.lastfm.playlists.server.common.model.lastfm does not exist
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/common/LastfmApiTrackDto_to_LovedTrackDto_Converter.java:[13,103] cannot find symbol
[ERROR] symbol: class LovedTrackDto
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/ConverterFactory.java:[3,48] package com.lastfm.playlists.server.common.utils does not exist
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/ConverterFactory.java:[4,48] package com.lastfm.playlists.server.common.utils does not exist
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/common/LastfmApiTrackDto_to_LovedTrackDto_Converter.java:[19,12] cannot find symbol
[ERROR] symbol: class LovedTrackDto
[ERROR] location: class com.lastfm.playlists.server.service.api.converter.lastfm.common.LastfmApiTrackDto_to_LovedTrackDto_Converter
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/ConverterFactory.java:[22,17] cannot find symbol
[ERROR] symbol: class Pair
[ERROR] location: class com.lastfm.playlists.server.service.api.converter.ConverterFactory
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/LastfmService.java:[3,55] package com.lastfm.playlists.server.common.model.lastfm does not exist
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/LastfmService.java:[4,55] package com.lastfm.playlists.server.common.model.lastfm does not exist
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/LastfmService.java:[31,16] cannot find symbol
[ERROR] symbol: class LovedTracksDto
[ERROR] location: class com.lastfm.playlists.server.service.api.LastfmService
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/LastfmService.java:[37,21] cannot find symbol
[ERROR] symbol: class TagDto
[ERROR] location: class com.lastfm.playlists.server.service.api.LastfmService
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/common/LastfmApiImageDtoList_to_ImageDtoList_Converter.java:[3,55] package com.lastfm.playlists.server.common.model.lastfm does not exist
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/common/LastfmApiImageDtoList_to_ImageDtoList_Converter.java:[15,117] cannot find symbol
[ERROR] symbol: class ImageDto
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/common/LastfmApiImageDtoList_to_ImageDtoList_Converter.java:[21,17] cannot find symbol
[ERROR] symbol: class ImageDto
[ERROR] location: class com.lastfm.playlists.server.service.api.converter.lastfm.common.LastfmApiImageDtoList_to_ImageDtoList_Converter
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/lovedtracks/LastfmApiLovedTracksResponseDto_to_LovedTracksDto_Converter.java:[3,55] package com.lastfm.playlists.server.common.model.lastfm does not exist
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/lovedtracks/LastfmApiLovedTracksResponseDto_to_LovedTracksDto_Converter.java:[4,55] package com.lastfm.playlists.server.common.model.lastfm does not exist
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/lovedtracks/LastfmApiLovedTracksResponseDto_to_LovedTracksDto_Converter.java:[19,139] cannot find symbol
[ERROR] symbol: class LovedTracksDto
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/lovedtracks/LastfmApiLovedTracksResponseDto_to_LovedTracksDto_Converter.java:[25,12] cannot find symbol
[ERROR] symbol: class LovedTracksDto
[ERROR] location: class com.lastfm.playlists.server.service.api.converter.lastfm.lovedtracks.LastfmApiLovedTracksResponseDto_to_LovedTracksDto_Converter
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/lovedtracks/LastfmApiLovedTracksResponseDto_to_LovedTracksDto_Converter.java:[47,18] cannot find symbol
[ERROR] symbol: class LovedTrackDto
[ERROR] location: class com.lastfm.playlists.server.service.api.converter.lastfm.lovedtracks.LastfmApiLovedTracksResponseDto_to_LovedTracksDto_Converter
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/toptags/LastfmApiTrackGetTopTagsResponseDto_to_TagDtoList_Converter.java:[3,55] package com.lastfm.playlists.server.common.model.lastfm does not exist
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/toptags/LastfmApiTrackGetTopTagsResponseDto_to_TagDtoList_Converter.java:[17,142] cannot find symbol
[ERROR] symbol: class TagDto
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/toptags/LastfmApiTrackGetTopTagsResponseDto_to_TagDtoList_Converter.java:[24,17] cannot find symbol
[ERROR] symbol: class TagDto
[ERROR] location: class com.lastfm.playlists.server.service.api.converter.lastfm.toptags.LastfmApiTrackGetTopTagsResponseDto_to_TagDtoList_Converter
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/common/LastfmApiTagDto_to_TagDto_Converter.java:[3,55] package com.lastfm.playlists.server.common.model.lastfm does not exist
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/common/LastfmApiTagDto_to_TagDto_Converter.java:[10,93] cannot find symbol
[ERROR] symbol: class TagDto
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/common/LastfmApiTagDto_to_TagDto_Converter.java:[17,12] cannot find symbol
[ERROR] symbol: class TagDto
[ERROR] location: class com.lastfm.playlists.server.service.api.converter.lastfm.common.LastfmApiTagDto_to_TagDto_Converter
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/common/LastfmApiTrackDto_to_LovedTrackDto_Converter.java:[20,16] cannot find symbol
[ERROR] symbol: variable LovedTrackDto
[ERROR] location: class com.lastfm.playlists.server.service.api.converter.lastfm.common.LastfmApiTrackDto_to_LovedTrackDto_Converter
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/common/LastfmApiTrackDto_to_LovedTrackDto_Converter.java:[21,22] cannot find symbol
[ERROR] symbol: method getMbid()
[ERROR] location: variable t of type com.lastfm.playlists.server.service.api.lastfm.model.user.lovedtracks.LastfmApiTrackDto
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/common/LastfmApiTrackDto_to_LovedTrackDto_Converter.java:[22,46] cannot find symbol
[ERROR] symbol: method getArtist()
[ERROR] location: variable t of type com.lastfm.playlists.server.service.api.lastfm.model.user.lovedtracks.LastfmApiTrackDto
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/common/LastfmApiTrackDto_to_LovedTrackDto_Converter.java:[22,64] invalid method reference
[ERROR] cannot find symbol
[ERROR] symbol: method getName()
[ERROR] location: class com.lastfm.playlists.server.service.api.lastfm.model.common.LastfmApiArtistDto
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/common/LastfmApiTrackDto_to_LovedTrackDto_Converter.java:[23,25] cannot find symbol
[ERROR] symbol: method getName()
[ERROR] location: variable t of type com.lastfm.playlists.server.service.api.lastfm.model.user.lovedtracks.LastfmApiTrackDto
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/common/LastfmApiTrackDto_to_LovedTrackDto_Converter.java:[24,49] cannot find symbol
[ERROR] symbol: method getDate()
[ERROR] location: variable t of type com.lastfm.playlists.server.service.api.lastfm.model.user.lovedtracks.LastfmApiTrackDto
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/common/LastfmApiTrackDto_to_LovedTrackDto_Converter.java:[25,51] cannot find symbol
[ERROR] symbol: method getImage()
[ERROR] location: variable t of type com.lastfm.playlists.server.service.api.lastfm.model.user.lovedtracks.LastfmApiTrackDto
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/ConverterFactory.java:[30,34] cannot find symbol
[ERROR] symbol: variable ClassUtil
[ERROR] location: class com.lastfm.playlists.server.service.api.converter.ConverterFactory
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/ConverterFactory.java:[45,70] cannot find symbol
[ERROR] symbol: class Pair
[ERROR] location: class com.lastfm.playlists.server.service.api.converter.ConverterFactory
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/ConverterFactory.java:[62,34] cannot find symbol
[ERROR] symbol: variable ClassUtil
[ERROR] location: class com.lastfm.playlists.server.service.api.converter.ConverterFactory
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/ConverterFactory.java:[68,40] cannot find symbol
[ERROR] symbol: class Pair
[ERROR] location: class com.lastfm.playlists.server.service.api.converter.ConverterFactory
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/common/LastfmApiImageDtoList_to_ImageDtoList_Converter.java:[25,27] cannot find symbol
[ERROR] symbol: variable ImageDto
[ERROR] location: class com.lastfm.playlists.server.service.api.converter.lastfm.common.LastfmApiImageDtoList_to_ImageDtoList_Converter
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/common/LastfmApiImageDtoList_to_ImageDtoList_Converter.java:[26,35] cannot find symbol
[ERROR] symbol: method getText()
[ERROR] location: variable i of type com.lastfm.playlists.server.service.api.lastfm.model.common.LastfmApiImageDto
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/common/LastfmApiImageDtoList_to_ImageDtoList_Converter.java:[27,36] cannot find symbol
[ERROR] symbol: method getSize()
[ERROR] location: variable i of type com.lastfm.playlists.server.service.api.lastfm.model.common.LastfmApiImageDto
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/lovedtracks/LastfmApiLovedTracksResponseDto_to_LovedTracksDto_Converter.java:[26,9] cannot find symbol
[ERROR] symbol: class LovedTracksDto
[ERROR] location: class com.lastfm.playlists.server.service.api.converter.lastfm.lovedtracks.LastfmApiLovedTracksResponseDto_to_LovedTracksDto_Converter
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/lovedtracks/LastfmApiLovedTracksResponseDto_to_LovedTracksDto_Converter.java:[26,50] cannot find symbol
[ERROR] symbol: class LovedTracksDto
[ERROR] location: class com.lastfm.playlists.server.service.api.converter.lastfm.lovedtracks.LastfmApiLovedTracksResponseDto_to_LovedTracksDto_Converter
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/lovedtracks/LastfmApiLovedTracksResponseDto_to_LovedTracksDto_Converter.java:[34,22] invalid method reference
[ERROR] cannot find symbol
[ERROR] symbol: method getLovedtracks()
[ERROR] location: class com.lastfm.playlists.server.service.api.lastfm.model.user.lovedtracks.LastfmApiUserGetLovedTracksResponseDto
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/lovedtracks/LastfmApiLovedTracksResponseDto_to_LovedTracksDto_Converter.java:[35,22] invalid method reference
[ERROR] cannot find symbol
[ERROR] symbol: method getAttr()
[ERROR] location: class com.lastfm.playlists.server.service.api.lastfm.model.user.lovedtracks.LastfmApiLovedTracksDto
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/lovedtracks/LastfmApiLovedTracksResponseDto_to_LovedTracksDto_Converter.java:[36,22] invalid method reference
[ERROR] cannot find symbol
[ERROR] symbol: method getTotal()
[ERROR] location: class com.lastfm.playlists.server.service.api.lastfm.model.user.lovedtracks.LastfmApiLovedTracksAttributesDto
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/lovedtracks/LastfmApiLovedTracksResponseDto_to_LovedTracksDto_Converter.java:[42,22] invalid method reference
[ERROR] cannot find symbol
[ERROR] symbol: method getLovedtracks()
[ERROR] location: class com.lastfm.playlists.server.service.api.lastfm.model.user.lovedtracks.LastfmApiUserGetLovedTracksResponseDto
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/lovedtracks/LastfmApiLovedTracksResponseDto_to_LovedTracksDto_Converter.java:[43,22] invalid method reference
[ERROR] cannot find symbol
[ERROR] symbol: method getTrack()
[ERROR] location: class com.lastfm.playlists.server.service.api.lastfm.model.user.lovedtracks.LastfmApiLovedTracksDto
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/lovedtracks/LastfmApiLovedTracksResponseDto_to_LovedTracksDto_Converter.java:[50,45] cannot find symbol
[ERROR] symbol: class LovedTrackDto
[ERROR] location: class com.lastfm.playlists.server.service.api.converter.lastfm.lovedtracks.LastfmApiLovedTracksResponseDto_to_LovedTracksDto_Converter
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/toptags/LastfmApiTrackGetTopTagsResponseDto_to_TagDtoList_Converter.java:[25,108] cannot find symbol
[ERROR] symbol: method getToptags()
[ERROR] location: variable lastfmApiTrackGetTopTagsResponseDto of type com.lastfm.playlists.server.service.api.lastfm.model.track.toptags.LastfmApiTrackGetTopTagsResponseDto
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/toptags/LastfmApiTrackGetTopTagsResponseDto_to_TagDtoList_Converter.java:[26,22] invalid method reference
[ERROR] cannot find symbol
[ERROR] symbol: method getTag()
[ERROR] location: class com.lastfm.playlists.server.service.api.lastfm.model.common.LastfmApiTopTagsDto
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/toptags/LastfmApiTrackGetTopTagsResponseDto_to_TagDtoList_Converter.java:[29,48] cannot find symbol
[ERROR] symbol: class TagDto
[ERROR] location: class com.lastfm.playlists.server.service.api.converter.lastfm.toptags.LastfmApiTrackGetTopTagsResponseDto_to_TagDtoList_Converter
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/common/LastfmApiTagDto_to_TagDto_Converter.java:[19,16] cannot find symbol
[ERROR] symbol: variable TagDto
[ERROR] location: class com.lastfm.playlists.server.service.api.converter.lastfm.common.LastfmApiTagDto_to_TagDto_Converter
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/common/LastfmApiTagDto_to_TagDto_Converter.java:[20,42] cannot find symbol
[ERROR] symbol: method getName()
[ERROR] location: variable lastfmApiTagDto of type com.lastfm.playlists.server.service.api.lastfm.model.common.LastfmApiTagDto
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/common/LastfmApiTagDto_to_TagDto_Converter.java:[21,41] cannot find symbol
[ERROR] symbol: method getUrl()
[ERROR] location: variable lastfmApiTagDto of type com.lastfm.playlists.server.service.api.lastfm.model.common.LastfmApiTagDto
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/common/LastfmApiDateDto_to_Date_Converter.java:[32,40] cannot find symbol
[ERROR] symbol: method getText()
[ERROR] location: variable date of type com.lastfm.playlists.server.service.api.lastfm.model.common.LastfmApiDateDto
[ERROR] /D:/lastfm-playlists-workspace/lastfm-playlists-server/service/src/main/java/com/lastfm/playlists/server/service/api/converter/lastfm/common/LastfmApiDateDto_to_Date_Converter.java:[34,69] cannot find symbol
[ERROR] symbol: method getText()
[ERROR] location: variable date of type com.lastfm.playlists.server.service.api.lastfm.model.common.LastfmApiDateDto
[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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :service
Here's my main pom.xml:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.lastfm.playlists</groupId>
<artifactId>server</artifactId>
<version>0.0.1-SNAPSHOT</version>
<modules>
<module>api</module>
<module>service</module>
<module>common</module>
</modules>
<packaging>pom</packaging>
<name>server</name>
<description>Demo project for Spring Boot</description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.0.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.target>1.9</maven.compiler.target>
<maven.compiler.source>1.9</maven.compiler.source>
<java.version>9</java.version>
<lombok.version>1.16.21</lombok.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-mongodb</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok-edge</artifactId>
<version>${lombok.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>com.lastfm.playlists.server.api.Application</mainClass>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>9</source>
<target>9</target>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
</configuration>
</plugin>
</plugins>
</build>
</project>
My common module `pom.xml:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>server</artifactId>
<groupId>com.lastfm.playlists</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>com.lastfm.playlists.server</groupId>
<artifactId>common</artifactId>
<packaging>jar</packaging>
<name>common</name>
</project>
The associated module-info.java:
module common {
requires slf4j.api;
requires jackson.annotations;
requires lombok;
requires spring.data.commons;
requires spring.data.mongodb;
requires java.validation;
requires spring.core;
exports com.lastfm.playlists.server.common.utils;
exports com.lastfm.playlists.server.common.model;
exports com.lastfm.playlists.server.common.model.lastfm;
}
My service module pom.xml:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>server</artifactId>
<groupId>com.lastfm.playlists</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>com.lastfm.playlists.server</groupId>
<artifactId>service</artifactId>
<packaging>jar</packaging>
<name>service</name>
<dependencies>
<dependency>
<groupId>com.lastfm.playlists.server</groupId>
<artifactId>common</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
</dependencies>
</project>
The associated module-info.java:
module com.lastfm.playlists.server.service {
requires slf4j.api;
requires spring.beans;
requires spring.context;
requires spring.core;
requires spring.web;
requires lombok;
requires jackson.annotations;
requires common;
exports com.lastfm.playlists.server.service.api;
exports com.lastfm.playlists.server.service.api.lastfm.exception;
}
And my api module pom.xml:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>server</artifactId>
<groupId>com.lastfm.playlists</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>com.lastfm.playlists.server</groupId>
<artifactId>api</artifactId>
<packaging>jar</packaging>
<name>api</name>
<dependencies>
<dependency>
<groupId>com.lastfm.playlists.server</groupId>
<artifactId>common</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.lastfm.playlists.server</groupId>
<artifactId>service</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
</dependencies>
</project>
The associated module-info.java:
module api {
requires spring.boot;
requires spring.boot.autoconfigure;
requires spring.context;
requires spring.web;
requires spring.beans;
requires spring.data.commons;
requires java.validation;
requires slf4j.api;
requires common;
requires service;
requires spring.data.mongodb;
}

maven can't find dependency basiclti-util

I need to implement LTI Consumer in my E-learning platform
I'm trying to run this code LTI example Java
here is the pom.xml file
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>net.paulgray</groupId>
<artifactId>ExampleLtiApp</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>war</packaging>
<name>MockLtiApp</name>
<properties>
<endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<springVersion>4.0.6.RELEASE</springVersion>
</properties>
<dependencies>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-web-api</artifactId>
<version>7.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${springVersion}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${springVersion}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${springVersion}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-messaging</artifactId>
<version>${springVersion}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-websocket</artifactId>
<version>${springVersion}</version>
</dependency>
<dependency>
<groupId>org.imsglobal</groupId>
<artifactId>basiclti-util</artifactId>
<version>1.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>javax.websocket</groupId>
<artifactId>javax.websocket-api</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.4.1</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.4</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<compilerArguments>
<endorseddirs>${endorsed.dir}</endorseddirs>
</compilerArguments>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.3</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<outputDirectory>${endorsed.dir}</outputDirectory>
<silent>true</silent>
<artifactItems>
<artifactItem>
<groupId>javax</groupId>
<artifactId>javaee-endorsed-api</artifactId>
<version>7.0</version>
<type>jar</type>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
but maven doesn't contain basic-util-1.0.1-SNAPSHOT
so I edit it to
<dependency>
<groupId>org.imsglobal</groupId>
<artifactId>basiclti-util</artifactId>
<version>1.1.1</version>
</dependency>
but it gave me this error
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project ExampleLtiApp: Compilation failure: Compilation failure:
[ERROR] /home/feras/NetBeansProjects/LTIEX/lti-example-java/src/main/java/net/paulgray/exampleltiapp/LtiController.java:[29,30] package org.imsglobal.basiclti does not exist
[ERROR] /home/feras/NetBeansProjects/LTIEX/lti-example-java/src/main/java/net/paulgray/exampleltiapp/LtiController.java:[30,30] package org.imsglobal.basiclti does not exist
[ERROR] /home/feras/NetBeansProjects/LTIEX/lti-example-java/src/main/java/net/paulgray/exampleltiapp/LtiController.java:[74,5] cannot find symbol
[ERROR] symbol: class LtiSigner
[ERROR] location: class net.paulgray.exampleltiapp.LtiController
[ERROR] /home/feras/NetBeansProjects/LTIEX/lti-example-java/src/main/java/net/paulgray/exampleltiapp/LtiController.java:[78,56] cannot find symbol
[ERROR] symbol: class LtiVerificationResult
[ERROR] location: class net.paulgray.exampleltiapp.LtiController
[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/MojoFailureException
how can I solve this problem?
Edit:
I tried basiclti-util-1.0.0 but it gave this error
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project ExampleLtiApp: Compilation failure: Compilation failure:
[ERROR] /home/feras/NetBeansProjects/LTIEX/lti-example-java/src/main/java/net/paulgray/exampleltiapp/JsonReader.java:[5,43] package org.imsglobal.lti2.objects.consumer does not exist
[ERROR] /home/feras/NetBeansProjects/LTIEX/lti-example-java/src/main/java/net/paulgray/exampleltiapp/LtiController.java:[29,30] cannot find symbol
[ERROR] symbol: class LtiSigner
[ERROR] location: package org.imsglobal.basiclti
[ERROR] /home/feras/NetBeansProjects/LTIEX/lti-example-java/src/main/java/net/paulgray/exampleltiapp/LtiController.java:[31,43] package org.imsglobal.lti2.objects.consumer does not exist
[ERROR] /home/feras/NetBeansProjects/LTIEX/lti-example-java/src/main/java/net/paulgray/exampleltiapp/LtiController.java:[32,43] package org.imsglobal.lti2.objects.provider does not exist
[ERROR] /home/feras/NetBeansProjects/LTIEX/lti-example-java/src/main/java/net/paulgray/exampleltiapp/LtiController.java:[33,43] package org.imsglobal.lti2.objects.provider does not exist
[ERROR] /home/feras/NetBeansProjects/LTIEX/lti-example-java/src/main/java/net/paulgray/exampleltiapp/LtiController.java:[34,43] package org.imsglobal.lti2.objects.provider does not exist
[ERROR] /home/feras/NetBeansProjects/LTIEX/lti-example-java/src/main/java/net/paulgray/exampleltiapp/LtiController.java:[74,5] cannot find symbol
[ERROR] symbol: class LtiSigner
[ERROR] location: class net.paulgray.exampleltiapp.LtiController
[ERROR] /home/feras/NetBeansProjects/LTIEX/lti-example-java/src/main/java/net/paulgray/exampleltiapp/LtiController.java:[155,13] cannot find symbol
[ERROR] symbol: class ToolProfile
[ERROR] location: class net.paulgray.exampleltiapp.LtiController
[ERROR] /home/feras/NetBeansProjects/LTIEX/lti-example-java/src/main/java/net/paulgray/exampleltiapp/LtiController.java:[204,13] cannot find symbol
[ERROR] symbol: class SecurityContract
[ERROR] location: class net.paulgray.exampleltiapp.LtiController
[ERROR] /home/feras/NetBeansProjects/LTIEX/lti-example-java/src/main/java/net/paulgray/exampleltiapp/LtiController.java:[116,9] cannot find symbol
[ERROR] symbol: class ToolConsumer
[ERROR] location: class net.paulgray.exampleltiapp.LtiController
[ERROR] /home/feras/NetBeansProjects/LTIEX/lti-example-java/src/main/java/net/paulgray/exampleltiapp/LtiController.java:[116,70] cannot find symbol
[ERROR] symbol: class ToolConsumer
[ERROR] location: class net.paulgray.exampleltiapp.LtiController
[ERROR] /home/feras/NetBeansProjects/LTIEX/lti-example-java/src/main/java/net/paulgray/exampleltiapp/LtiController.java:[122,9] cannot find symbol
[ERROR] symbol: class ToolProxy
[ERROR] location: class net.paulgray.exampleltiapp.LtiController
[ERROR] /home/feras/NetBeansProjects/LTIEX/lti-example-java/src/main/java/net/paulgray/exampleltiapp/LtiController.java:[122,28] cannot find symbol
[ERROR] symbol: class ToolProxy
[ERROR] location: class net.paulgray.exampleltiapp.LtiController
[ERROR] /home/feras/NetBeansProjects/LTIEX/lti-example-java/src/main/java/net/paulgray/exampleltiapp/LtiController.java:[123,23] cannot find symbol
[ERROR] symbol: variable ToolProxy
[ERROR] location: class net.paulgray.exampleltiapp.LtiController
[ERROR] /home/feras/NetBeansProjects/LTIEX/lti-example-java/src/main/java/net/paulgray/exampleltiapp/LtiController.java:[156,9] cannot find symbol
[ERROR] symbol: class ToolProfile
[ERROR] location: class net.paulgray.exampleltiapp.LtiController
[ERROR] /home/feras/NetBeansProjects/LTIEX/lti-example-java/src/main/java/net/paulgray/exampleltiapp/LtiController.java:[156,30] cannot find symbol
[ERROR] symbol: class ToolProfile
[ERROR] location: class net.paulgray.exampleltiapp.LtiController
[ERROR] /home/feras/NetBeansProjects/LTIEX/lti-example-java/src/main/java/net/paulgray/exampleltiapp/LtiController.java:[188,49] package ToolConsumer does not exist
[ERROR] /home/feras/NetBeansProjects/LTIEX/lti-example-java/src/main/java/net/paulgray/exampleltiapp/LtiController.java:[193,47] package ToolConsumer does not exist
[ERROR] /home/feras/NetBeansProjects/LTIEX/lti-example-java/src/main/java/net/paulgray/exampleltiapp/LtiController.java:[205,9] cannot find symbol
[ERROR] symbol: class SecurityContract
[ERROR] location: class net.paulgray.exampleltiapp.LtiController
[ERROR] /home/feras/NetBeansProjects/LTIEX/lti-example-java/src/main/java/net/paulgray/exampleltiapp/LtiController.java:[205,41] cannot find symbol
[ERROR] symbol: class SecurityContract
[ERROR] location: class net.paulgray.exampleltiapp.LtiController
[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/MojoFailureException
lti-example-java was out-of-date, and using an old branch of basiclti-util-java (one where the package structure wasn't compatible with 1.0.0 or 1.0.1).
It's updated and should be working now.
Use
<dependency>
<groupId>org.imsglobal</groupId>
<artifactId>basiclti-util</artifactId>
<version>1.0.0</version>
</dependency>
version 1.0.0 contains the basiclti package.Version 1.1.1 removes the basiclti package

Categories

Resources