I cannot compile the Maven project from the command line.
I am using Maven version :
Apache Maven 3.5.4
This is my stack trace, what I am doing wrong here?
Error:
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for MONTANA:MONTANA:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. # line 13,
column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] -----------------------------------------------------
[INFO] Building MONTANA 1.0-SNAPSHOT
[INFO] --------------------------------[jar]---------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.183 s
[INFO] Finished at: 2018-08-17T10:34:57+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase "inctall". You must specify a valid lifecycle phase or a goal in the format : or
:[:]:.
Available lifecycle phases are: validate, initialize,
generate-sources, process-sources, generate-resources,
process-resources, compile, process-classes, generate-test-sources,
process-test-sources, generate-test-resources,
process-test-resources, test-compile, process-test-classes, test,
prepare-package, package, pre-integration-test, integration-test,
post-integration-test, verify, install, deploy, pre-clean, clean,
post-clean, pre-site, site, post-site, site-deploy. -> [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/LifecyclePhaseNotFoundException
[WARNING] Some problems were
There is my pom.xml (without dependencies):
<?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>MONTANA</groupId>
<artifactId>MONTANA</artifactId>
<version>1.0-SNAPSHOT</version>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
</plugins>
</build
The new stack trace is:
[INFO] Scanning for projects... [WARNING] [WARNING] Some problems were
encountered while building the effective model for
MONTANA:MONTANA:jar:1.0-SNAPSHOT [WARNING]
'build.plugins.plugin.version' for
org.apache.maven.plugins:maven-compiler-plugin is missing. # line 13,
column 21 [WARNING] [WARNING] It is highly recommended to fix these
problems because they threaten the stability of your build. [WARNING]
[WARNING] For this reason, future Maven versions might no longer
support building such malformed projects. [WARNING] [INFO] [INFO]
--------------------------< MONTANA:MONTANA >--------------------------- [INFO] Building MONTANA 1.0-SNAPSHOT [INFO] --------------------------------[ jar
]--------------------------------- [INFO] [INFO] ---
maven-clean-plugin:2.5:clean (default-clean) # MONTANA --- [INFO]
Deleting D:\Documents\Uni\Java\MONTANA\target [INFO] [INFO] ---
maven-resources-plugin:2.6:resources (default-resources) # MONTANA ---
[WARNING] Using platform encoding (Cp1251 actually) to copy filtered
resources, i.e. build is platform dependent! [INFO] Copying 0 resource
[INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile)
# MONTANA --- [INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding
Cp1251, i.e. build is platform dependent! [INFO] Compiling 17 source
files to D:\Documents\Uni\Java\MONTANA\target\classes [INFO]
------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO]
------------------------------------------------------------- [ERROR] /D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Registration.java:[9,21]
package javax.servlet does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Registration.java:[10,32]
package javax.servlet.annotation does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Registration.java:[11,26]
package javax.servlet.http does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Registration.java:[12,26]
package javax.servlet.http does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Registration.java:[13,26]
package javax.servlet.http does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Registration.java:[20,35]
cannot find symbol symbol: class HttpServlet [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Registration.java:[19,2]
cannot find symbol symbol: class WebServlet [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Registration.java:[22,27]
cannot find symbol symbol: class HttpServletRequest location:
class Actions.Registration [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Registration.java:[22,55]
cannot find symbol symbol: class HttpServletResponse location:
class Actions.Registration [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Registration.java:[22,92]
cannot find symbol symbol: class ServletException location:
class Actions.Registration [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Registration.java:[76,26]
cannot find symbol symbol: class HttpServletRequest location:
class Actions.Registration [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Registration.java:[76,54]
cannot find symbol symbol: class HttpServletResponse location:
class Actions.Registration [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Registration.java:[76,91]
cannot find symbol symbol: class ServletException location:
class Actions.Registration [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/Registered.java:[3,21]
package javax.servlet does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/Registered.java:[4,26]
package javax.servlet.http does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/Registered.java:[5,26]
package javax.servlet.http does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/Registered.java:[6,26]
package javax.servlet.http does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/Registered.java:[9,33]
cannot find symbol symbol: class HttpServlet [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/Registered.java:[12,24]
cannot find symbol symbol: class HttpServletRequest location:
class Pages.Registered [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/Registered.java:[12,52]
cannot find symbol symbol: class HttpServletResponse location:
class Pages.Registered [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/Registered.java:[12,89]
cannot find symbol symbol: class ServletException location:
class Pages.Registered [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/Registered.java:[24,23]
cannot find symbol symbol: class HttpServletRequest location:
class Pages.Registered [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/Registered.java:[24,51]
cannot find symbol symbol: class HttpServletResponse location:
class Pages.Registered [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/Registered.java:[24,88]
cannot find symbol symbol: class ServletException location:
class Pages.Registered [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/PageOfUser.java:[3,21]
package javax.servlet does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/PageOfUser.java:[4,32]
package javax.servlet.annotation does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/PageOfUser.java:[5,26]
package javax.servlet.http does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/PageOfUser.java:[6,26]
package javax.servlet.http does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/PageOfUser.java:[7,26]
package javax.servlet.http does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/PageOfUser.java:[11,33]
cannot find symbol symbol: class HttpServlet [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/PageOfUser.java:[10,2]
cannot find symbol symbol: class WebServlet [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/PageOfUser.java:[12,27]
cannot find symbol symbol: class HttpServletRequest location:
class Pages.PageOfUser [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/PageOfUser.java:[12,55]
cannot find symbol symbol: class HttpServletResponse location:
class Pages.PageOfUser [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/PageOfUser.java:[12,92]
cannot find symbol symbol: class ServletException location:
class Pages.PageOfUser [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/PageOfUser.java:[16,26]
cannot find symbol symbol: class HttpServletRequest location:
class Pages.PageOfUser [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/PageOfUser.java:[16,54]
cannot find symbol symbol: class HttpServletResponse location:
class Pages.PageOfUser [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/PageOfUser.java:[16,91]
cannot find symbol symbol: class ServletException location:
class Pages.PageOfUser [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/MessagePage.java:[3,21]
package javax.servlet does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/MessagePage.java:[4,32]
package javax.servlet.annotation does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/MessagePage.java:[5,26]
package javax.servlet.http does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/MessagePage.java:[6,26]
package javax.servlet.http does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/MessagePage.java:[7,26]
package javax.servlet.http does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/MessagePage.java:[11,34]
cannot find symbol symbol: class HttpServlet [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/MessagePage.java:[10,2]
cannot find symbol symbol: class WebServlet [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/MessagePage.java:[12,27]
cannot find symbol symbol: class HttpServletRequest location:
class Pages.MessagePage [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/MessagePage.java:[12,55]
cannot find symbol symbol: class HttpServletResponse location:
class Pages.MessagePage [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/MessagePage.java:[12,92]
cannot find symbol symbol: class ServletException location:
class Pages.MessagePage [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/MessagePage.java:[16,26]
cannot find symbol symbol: class HttpServletRequest location:
class Pages.MessagePage [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/MessagePage.java:[16,54]
cannot find symbol symbol: class HttpServletResponse location:
class Pages.MessagePage [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/MessagePage.java:[16,91]
cannot find symbol symbol: class ServletException location:
class Pages.MessagePage [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Authorization.java:[8,21]
package javax.servlet does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Authorization.java:[9,32]
package javax.servlet.annotation does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Authorization.java:[10,26]
package javax.servlet.http does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Authorization.java:[11,26]
package javax.servlet.http does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Authorization.java:[12,26]
package javax.servlet.http does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Authorization.java:[13,26]
package javax.servlet.http does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Authorization.java:[20,36]
cannot find symbol symbol: class HttpServlet [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Authorization.java:[19,2]
cannot find symbol symbol: class WebServlet [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Authorization.java:[21,27]
cannot find symbol symbol: class HttpServletRequest location:
class Actions.Authorization [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Authorization.java:[21,55]
cannot find symbol symbol: class HttpServletResponse location:
class Actions.Authorization [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Authorization.java:[21,92]
cannot find symbol symbol: class ServletException location:
class Actions.Authorization [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Authorization.java:[55,26]
cannot find symbol symbol: class HttpServletRequest location:
class Actions.Authorization [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Authorization.java:[55,54]
cannot find symbol symbol: class HttpServletResponse location:
class Actions.Authorization [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Authorization.java:[55,91]
cannot find symbol symbol: class ServletException location:
class Actions.Authorization [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/Registered.java:[11,5]
method does not override or implement a method from a supertype
[ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/Registered.java:[23,5]
method does not override or implement a method from a supertype
[ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Authorization.java:[44,13]
cannot find symbol symbol: class Cookie location: class
Actions.Authorization [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Authorization.java:[44,33]
cannot find symbol symbol: class Cookie location: class
Actions.Authorization [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Authorization.java:[57,9]
cannot find symbol symbol: class Cookie location: class
Actions.Authorization [INFO] 69 errors [INFO]
------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO]
------------------------------------------------------------------------ [INFO] Total time: 10.092 s [INFO] Finished at:
2018-08-17T12:11:19+03:00 [INFO]
------------------------------------------------------------------------ [ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.1:compile
(default-compile) on project MONTANA: Compilation failure: Compilation
failure: [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Registration.java:[9,21]
package javax.servlet does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Registration.java:[10,32]
package javax.servlet.annotation does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Registration.java:[11,26]
package javax.servlet.http does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Registration.java:[12,26]
package javax.servlet.http does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Registration.java:[13,26]
package javax.servlet.http does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Registration.java:[20,35]
cannot find symbol [ERROR] symbol: class HttpServlet [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Registration.java:[19,2]
cannot find symbol [ERROR] symbol: class WebServlet [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Registration.java:[22,27]
cannot find symbol [ERROR] symbol: class HttpServletRequest
[ERROR] location: class Actions.Registration [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Registration.java:[22,55]
cannot find symbol [ERROR] symbol: class HttpServletResponse
[ERROR] location: class Actions.Registration [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Registration.java:[22,92]
cannot find symbol [ERROR] symbol: class ServletException [ERROR]
location: class Actions.Registration [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Registration.java:[76,26]
cannot find symbol [ERROR] symbol: class HttpServletRequest
[ERROR] location: class Actions.Registration [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Registration.java:[76,54]
cannot find symbol [ERROR] symbol: class HttpServletResponse
[ERROR] location: class Actions.Registration [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Registration.java:[76,91]
cannot find symbol [ERROR] symbol: class ServletException [ERROR]
location: class Actions.Registration [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/Registered.java:[3,21]
package javax.servlet does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/Registered.java:[4,26]
package javax.servlet.http does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/Registered.java:[5,26]
package javax.servlet.http does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/Registered.java:[6,26]
package javax.servlet.http does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/Registered.java:[9,33]
cannot find symbol [ERROR] symbol: class HttpServlet [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/Registered.java:[12,24]
cannot find symbol [ERROR] symbol: class HttpServletRequest
[ERROR] location: class Pages.Registered [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/Registered.java:[12,52]
cannot find symbol [ERROR] symbol: class HttpServletResponse
[ERROR] location: class Pages.Registered [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/Registered.java:[12,89]
cannot find symbol [ERROR] symbol: class ServletException [ERROR]
location: class Pages.Registered [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/Registered.java:[24,23]
cannot find symbol [ERROR] symbol: class HttpServletRequest
[ERROR] location: class Pages.Registered [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/Registered.java:[24,51]
cannot find symbol [ERROR] symbol: class HttpServletResponse
[ERROR] location: class Pages.Registered [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/Registered.java:[24,88]
cannot find symbol [ERROR] symbol: class ServletException [ERROR]
location: class Pages.Registered [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/PageOfUser.java:[3,21]
package javax.servlet does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/PageOfUser.java:[4,32]
package javax.servlet.annotation does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/PageOfUser.java:[5,26]
package javax.servlet.http does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/PageOfUser.java:[6,26]
package javax.servlet.http does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/PageOfUser.java:[7,26]
package javax.servlet.http does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/PageOfUser.java:[11,33]
cannot find symbol [ERROR] symbol: class HttpServlet [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/PageOfUser.java:[10,2]
cannot find symbol [ERROR] symbol: class WebServlet [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/PageOfUser.java:[12,27]
cannot find symbol [ERROR] symbol: class HttpServletRequest
[ERROR] location: class Pages.PageOfUser [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/PageOfUser.java:[12,55]
cannot find symbol [ERROR] symbol: class HttpServletResponse
[ERROR] location: class Pages.PageOfUser [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/PageOfUser.java:[12,92]
cannot find symbol [ERROR] symbol: class ServletException [ERROR]
location: class Pages.PageOfUser [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/PageOfUser.java:[16,26]
cannot find symbol [ERROR] symbol: class HttpServletRequest
[ERROR] location: class Pages.PageOfUser [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/PageOfUser.java:[16,54]
cannot find symbol [ERROR] symbol: class HttpServletResponse
[ERROR] location: class Pages.PageOfUser [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/PageOfUser.java:[16,91]
cannot find symbol [ERROR] symbol: class ServletException [ERROR]
location: class Pages.PageOfUser [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/MessagePage.java:[3,21]
package javax.servlet does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/MessagePage.java:[4,32]
package javax.servlet.annotation does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/MessagePage.java:[5,26]
package javax.servlet.http does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/MessagePage.java:[6,26]
package javax.servlet.http does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/MessagePage.java:[7,26]
package javax.servlet.http does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/MessagePage.java:[11,34]
cannot find symbol [ERROR] symbol: class HttpServlet [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/MessagePage.java:[10,2]
cannot find symbol [ERROR] symbol: class WebServlet [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/MessagePage.java:[12,27]
cannot find symbol [ERROR] symbol: class HttpServletRequest
[ERROR] location: class Pages.MessagePage [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/MessagePage.java:[12,55]
cannot find symbol [ERROR] symbol: class HttpServletResponse
[ERROR] location: class Pages.MessagePage [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/MessagePage.java:[12,92]
cannot find symbol [ERROR] symbol: class ServletException [ERROR]
location: class Pages.MessagePage [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/MessagePage.java:[16,26]
cannot find symbol [ERROR] symbol: class HttpServletRequest
[ERROR] location: class Pages.MessagePage [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/MessagePage.java:[16,54]
cannot find symbol [ERROR] symbol: class HttpServletResponse
[ERROR] location: class Pages.MessagePage [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/MessagePage.java:[16,91]
cannot find symbol [ERROR] symbol: class ServletException [ERROR]
location: class Pages.MessagePage [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Authorization.java:[8,21]
package javax.servlet does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Authorization.java:[9,32]
package javax.servlet.annotation does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Authorization.java:[10,26]
package javax.servlet.http does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Authorization.java:[11,26]
package javax.servlet.http does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Authorization.java:[12,26]
package javax.servlet.http does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Authorization.java:[13,26]
package javax.servlet.http does not exist [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Authorization.java:[20,36]
cannot find symbol [ERROR] symbol: class HttpServlet [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Authorization.java:[19,2]
cannot find symbol [ERROR] symbol: class WebServlet [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Authorization.java:[21,27]
cannot find symbol [ERROR] symbol: class HttpServletRequest
[ERROR] location: class Actions.Authorization [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Authorization.java:[21,55]
cannot find symbol [ERROR] symbol: class HttpServletResponse
[ERROR] location: class Actions.Authorization [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Authorization.java:[21,92]
cannot find symbol [ERROR] symbol: class ServletException [ERROR]
location: class Actions.Authorization [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Authorization.java:[55,26]
cannot find symbol [ERROR] symbol: class HttpServletRequest
[ERROR] location: class Actions.Authorization [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Authorization.java:[55,54]
cannot find symbol [ERROR] symbol: class HttpServletResponse
[ERROR] location: class Actions.Authorization [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Authorization.java:[55,91]
cannot find symbol [ERROR] symbol: class ServletException [ERROR]
location: class Actions.Authorization [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/Registered.java:[11,5]
method does not override or implement a method from a supertype
[ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Pages/Registered.java:[23,5]
method does not override or implement a method from a supertype
[ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Authorization.java:[44,13]
cannot find symbol [ERROR] symbol: class Cookie [ERROR]
location: class Actions.Authorization [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Authorization.java:[44,33]
cannot find symbol [ERROR] symbol: class Cookie [ERROR]
location: class Actions.Authorization [ERROR]
/D:/Documents/Uni/Java/MONTANA/src/main/java/Actions/Authorization.java:[57,9]
cannot find symbol [ERROR] symbol: class Cookie [ERROR]
location: class Actions.Authorization [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
As Mentioned in the comments you got a typo in Maven command, try
mvn clean install
First Solution --> please enter proper commands "install"* Not "inctall"
According to your screen shot in the Question
Issue is not understandable might you can find the exact issue by running mvn build life cycle commands
first step = mvn validate It will validate the pom.xml file and other dependency's
Second Step = mvn compile It will compile and build the project
Third Step = mvn test it will test all the basic cases
Fourth step = mvn package It will give the jar/war/ear file
Fifth step = mvn verify it will verify the build
Sixth Step = mvn install It will build the project according to our pom
Seventh step = mvn deploy The build will be deployed in specified tom cat server
Then you can find what is the error and where it has to be resolved at the specific situation (while running the mvn build life cycle commands )
Related
Trying to install Apache-Ambari on linux RHEL8 by running the following command:
mvn -B clean install rpm:rpm -DnewVersion=2.7.6.0.0 -DbuildNumber=388e072381e71c7755673b7743531c03a4d61be8 -DskipTests -Dpython.ver="python >= 2.7" -Drat.numUnapprovedLicenses=2000
And I get the following error:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:50 h
[INFO] Finished at: 2022-03-09T11:18:08+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project ambari-server: Compilation failure: Compilation failure:
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/api/services/ComponentService.java:[41,37] cannot find symbol
[ERROR] symbol: class ApiIgnore
[ERROR] location: package org.apache.ambari.annotations
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/api/services/AlertService.java:[32,37] cannot find symbol
[ERROR] symbol: class ApiIgnore
[ERROR] location: package org.apache.ambari.annotations
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/api/services/AlertHistoryService.java:[32,37] cannot find symbol
[ERROR] symbol: class ApiIgnore
[ERROR] location: package org.apache.ambari.annotations
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/api/services/LoggingService.java:[37,37] cannot find symbol
[ERROR] symbol: class ApiIgnore
[ERROR] location: package org.apache.ambari.annotations
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ViewInstanceResourceProvider.java:[50,30] package org.apache.ambari.view does not exist
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ViewInstanceResourceProvider.java:[51,41] package org.apache.ambari.view.validation does not exist
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java:[59,30] package org.apache.ambari.view does not exist
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java:[60,30] package org.apache.ambari.view does not exist
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java:[61,30] package org.apache.ambari.view does not exist
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java:[62,30] package org.apache.ambari.view does not exist
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java:[63,30] package org.apache.ambari.view does not exist
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java:[64,40] package org.apache.ambari.view.migration does not exist
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java:[65,40] package org.apache.ambari.view.migration does not exist
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java:[66,41] package org.apache.ambari.view.validation does not exist
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java:[67,41] package org.apache.ambari.view.validation does not exist
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java:[99,44] cannot find symbol
[ERROR] symbol: class ViewInstanceDefinition
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java:[140,11] cannot find symbol
[ERROR] symbol: class ClusterType
[ERROR] location: class org.apache.ambari.server.orm.entities.ViewInstanceEntity
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewEntity.java:[47,30] package org.apache.ambari.view does not exist
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewEntity.java:[48,30] package org.apache.ambari.view does not exist
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewEntity.java:[49,41] package org.apache.ambari.view.validation does not exist
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewEntity.java:[58,36] cannot find symbol
[ERROR] symbol: class ViewDefinition
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java:[228,36] cannot find symbol
[ERROR] symbol: class ResourceProvider
[ERROR] location: class org.apache.ambari.server.orm.entities.ViewInstanceEntity
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java:[248,11] cannot find symbol
[ERROR] symbol: class ViewDataMigrator
[ERROR] location: class org.apache.ambari.server.orm.entities.ViewInstanceEntity
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java:[357,10] cannot find symbol
[ERROR] symbol: class ViewDefinition
[ERROR] location: class org.apache.ambari.server.orm.entities.ViewInstanceEntity
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java:[469,10] cannot find symbol
[ERROR] symbol: class ClusterType
[ERROR] location: class org.apache.ambari.server.orm.entities.ViewInstanceEntity
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java:[478,30] cannot find symbol
[ERROR] symbol: class ClusterType
[ERROR] location: class org.apache.ambari.server.orm.entities.ViewInstanceEntity
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java:[744,55] cannot find symbol
[ERROR] symbol: class ResourceProvider
[ERROR] location: class org.apache.ambari.server.orm.entities.ViewInstanceEntity
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java:[754,10] cannot find symbol
[ERROR] symbol: class ResourceProvider
[ERROR] location: class org.apache.ambari.server.orm.entities.ViewInstanceEntity
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java:[764,10] cannot find symbol
[ERROR] symbol: class ResourceProvider
[ERROR] location: class org.apache.ambari.server.orm.entities.ViewInstanceEntity
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java:[843,43] cannot find symbol
[ERROR] symbol: class ViewDataMigrationContext
[ERROR] location: class org.apache.ambari.server.orm.entities.ViewInstanceEntity
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java:[843,10] cannot find symbol
[ERROR] symbol: class ViewDataMigrator
[ERROR] location: class org.apache.ambari.server.orm.entities.ViewInstanceEntity
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java:[857,67] cannot find symbol
[ERROR] symbol: class ViewDataMigrator
[ERROR] location: class org.apache.ambari.server.orm.entities.ViewInstanceEntity
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java:[858,57] cannot find symbol
[ERROR] symbol: class ViewContext
[ERROR] location: class org.apache.ambari.server.orm.entities.ViewInstanceEntity
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java:[859,57] cannot find symbol
[ERROR] symbol: class ViewDataMigrationContext
[ERROR] location: class org.apache.ambari.server.orm.entities.ViewInstanceEntity
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java:[857,18] cannot find symbol
[ERROR] symbol: class ViewDataMigrator
[ERROR] location: class org.apache.ambari.server.orm.entities.ViewInstanceEntity
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java:[880,56] package Validator does not exist
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java:[895,91] package Validator does not exist
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/view/validation/InstanceValidationResultImpl.java:[23,41] package org.apache.ambari.view.validation does not exist
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/view/validation/ValidationResultImpl.java:[21,41] package org.apache.ambari.view.validation does not exist
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/view/validation/ValidationResultImpl.java:[26,46] cannot find symbol
[ERROR] symbol: class ValidationResult
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/view/configuration/ViewConfig.java:[31,30] package org.apache.ambari.view does not exist
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/view/configuration/ViewConfig.java:[32,30] package org.apache.ambari.view does not exist
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/view/configuration/ViewConfig.java:[33,40] package org.apache.ambari.view.migration does not exist
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/view/configuration/ViewConfig.java:[34,41] package org.apache.ambari.view.validation does not exist
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/view/configuration/ResourceConfig.java:[29,30] package org.apache.ambari.view does not exist
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewEntity.java:[223,11] cannot find symbol
[ERROR] symbol: class View
[ERROR] location: class org.apache.ambari.server.orm.entities.ViewEntity
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewEntity.java:[229,11] cannot find symbol
[ERROR] symbol: class Validator
[ERROR] location: class org.apache.ambari.server.orm.entities.ViewEntity
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewEntity.java:[235,11] cannot find symbol
[ERROR] symbol: class ViewStatus
[ERROR] location: class org.apache.ambari.server.orm.entities.ViewEntity
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewEntity.java:[324,10] cannot find symbol
[ERROR] symbol: class ViewStatus
[ERROR] location: class org.apache.ambari.server.orm.entities.ViewEntity
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewEntity.java:[765,23] cannot find symbol
[ERROR] symbol: class View
[ERROR] location: class org.apache.ambari.server.orm.entities.ViewEntity
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewEntity.java:[774,10] cannot find symbol
[ERROR] symbol: class View
[ERROR] location: class org.apache.ambari.server.orm.entities.ViewEntity
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewEntity.java:[783,28] cannot find symbol
[ERROR] symbol: class Validator
[ERROR] location: class org.apache.ambari.server.orm.entities.ViewEntity
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewEntity.java:[792,10] cannot find symbol
[ERROR] symbol: class Validator
[ERROR] location: class org.apache.ambari.server.orm.entities.ViewEntity
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewEntity.java:[855,25] cannot find symbol
[ERROR] symbol: class ViewStatus
[ERROR] location: class org.apache.ambari.server.orm.entities.ViewEntity
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/view/validation/InstanceValidationResultImpl.java:[41,29] cannot find symbol
[ERROR] symbol: class ValidationResult
[ERROR] location: class org.apache.ambari.server.view.validation.InstanceValidationResultImpl
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/view/validation/InstanceValidationResultImpl.java:[52,39] cannot find symbol
[ERROR] symbol: class ValidationResult
[ERROR] location: class org.apache.ambari.server.view.validation.InstanceValidationResultImpl
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/view/validation/InstanceValidationResultImpl.java:[52,84] cannot find symbol
[ERROR] symbol: class ValidationResult
[ERROR] location: class org.apache.ambari.server.view.validation.InstanceValidationResultImpl
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/view/validation/InstanceValidationResultImpl.java:[65,22] cannot find symbol
[ERROR] symbol: class ValidationResult
[ERROR] location: class org.apache.ambari.server.view.validation.InstanceValidationResultImpl
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/view/validation/InstanceValidationResultImpl.java:[82,34] cannot find symbol
[ERROR] symbol: class ValidationResult
[ERROR] location: class org.apache.ambari.server.view.validation.InstanceValidationResultImpl
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/view/validation/InstanceValidationResultImpl.java:[82,79] cannot find symbol
[ERROR] symbol: class ValidationResult
[ERROR] location: class org.apache.ambari.server.view.validation.InstanceValidationResultImpl
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/view/validation/InstanceValidationResultImpl.java:[96,35] cannot find symbol
[ERROR] symbol: class ValidationResult
[ERROR] location: class org.apache.ambari.server.view.validation.InstanceValidationResultImpl
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/view/validation/InstanceValidationResultImpl.java:[96,80] cannot find symbol
[ERROR] symbol: class ValidationResult
[ERROR] location: class org.apache.ambari.server.view.validation.InstanceValidationResultImpl
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/view/validation/ValidationResultImpl.java:[74,41] cannot find symbol
[ERROR] symbol: class ValidationResult
[ERROR] location: class org.apache.ambari.server.view.validation.ValidationResultImpl
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/view/validation/ValidationResultImpl.java:[74,17] cannot find symbol
[ERROR] symbol: class ValidationResult
[ERROR] location: class org.apache.ambari.server.view.validation.ValidationResultImpl
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/view/configuration/ViewConfig.java:[111,27] cannot find symbol
[ERROR] symbol: class View
[ERROR] location: class org.apache.ambari.server.view.configuration.ViewConfig
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/view/configuration/ViewConfig.java:[134,27] cannot find symbol
[ERROR] symbol: class ViewDataMigrator
[ERROR] location: class org.apache.ambari.server.view.configuration.ViewConfig
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/view/configuration/ViewConfig.java:[145,27] cannot find symbol
[ERROR] symbol: class Validator
[ERROR] location: class org.apache.ambari.server.view.configuration.ViewConfig
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/view/configuration/ViewConfig.java:[156,27] cannot find symbol
[ERROR] symbol: class Masker
[ERROR] location: class org.apache.ambari.server.view.configuration.ViewConfig
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/view/configuration/ViewConfig.java:[312,26] cannot find symbol
[ERROR] symbol: class View
[ERROR] location: class org.apache.ambari.server.view.configuration.ViewConfig
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/view/configuration/ViewConfig.java:[337,26] cannot find symbol
[ERROR] symbol: class ViewDataMigrator
[ERROR] location: class org.apache.ambari.server.view.configuration.ViewConfig
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/view/configuration/ViewConfig.java:[371,26] cannot find symbol
[ERROR] symbol: class Validator
[ERROR] location: class org.apache.ambari.server.view.configuration.ViewConfig
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/view/configuration/ViewConfig.java:[395,26] cannot find symbol
[ERROR] symbol: class Masker
[ERROR] location: class org.apache.ambari.server.view.configuration.ViewConfig
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/view/configuration/ResourceConfig.java:[74,27] cannot find symbol
[ERROR] symbol: class ResourceProvider
[ERROR] location: class org.apache.ambari.server.view.configuration.ResourceConfig
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/view/configuration/ResourceConfig.java:[170,26] cannot find symbol
[ERROR] symbol: class ResourceProvider
[ERROR] location: class org.apache.ambari.server.view.configuration.ResourceConfig
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/api/services/LogoutService.java:[27,37] cannot find symbol
[ERROR] symbol: class ApiIgnore
[ERROR] location: package org.apache.ambari.annotations
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/api/services/RepositoryService.java:[34,37] cannot find symbol
[ERROR] symbol: class ApiIgnore
[ERROR] location: package org.apache.ambari.annotations
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/api/services/UpgradeGroupService.java:[32,37] cannot find symbol
[ERROR] symbol: class ApiIgnore
[ERROR] location: package org.apache.ambari.annotations
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/api/services/UpgradeItemService.java:[33,37] cannot find symbol
[ERROR] symbol: class ApiIgnore
[ERROR] location: package org.apache.ambari.annotations
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/api/services/TaskService.java:[33,37] cannot find symbol
[ERROR] symbol: class ApiIgnore
[ERROR] location: package org.apache.ambari.annotations
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/controller/ViewInstanceResponse.java:[28,30] package org.apache.ambari.view does not exist
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/controller/ViewInstanceResponse.java:[29,41] package org.apache.ambari.view.validation does not exist
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/controller/ViewInstanceRequest.java:[28,30] package org.apache.ambari.view does not exist
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/controller/ViewInstanceResponse.java:[53,13] cannot find symbol
[ERROR] symbol: class ValidationResult
[ERROR] location: class org.apache.ambari.server.controller.ViewInstanceResponse.ViewInstanceResponseInfo
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/controller/ViewInstanceResponse.java:[54,25] cannot find symbol
[ERROR] symbol: class ValidationResult
[ERROR] location: class org.apache.ambari.server.controller.ViewInstanceResponse.ViewInstanceResponseInfo
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/controller/ViewInstanceResponse.java:[75,94] cannot find symbol
[ERROR] symbol: class ClusterType
[ERROR] location: class org.apache.ambari.server.controller.ViewInstanceResponse.ViewInstanceResponseInfo
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/controller/ViewInstanceResponse.java:[169,12] cannot find symbol
[ERROR] symbol: class ValidationResult
[ERROR] location: class org.apache.ambari.server.controller.ViewInstanceResponse.ViewInstanceResponseInfo
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/controller/ViewInstanceResponse.java:[177,37] cannot find symbol
[ERROR] symbol: class ValidationResult
[ERROR] location: class org.apache.ambari.server.controller.ViewInstanceResponse.ViewInstanceResponseInfo
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/controller/ViewInstanceResponse.java:[186,24] cannot find symbol
[ERROR] symbol: class ValidationResult
[ERROR] location: class org.apache.ambari.server.controller.ViewInstanceResponse.ViewInstanceResponseInfo
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/controller/ViewInstanceResponse.java:[194,58] cannot find symbol
[ERROR] symbol: class ValidationResult
[ERROR] location: class org.apache.ambari.server.controller.ViewInstanceResponse.ViewInstanceResponseInfo
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/controller/ViewInstanceRequest.java:[70,19] cannot find symbol
[ERROR] symbol: class ClusterType
[ERROR] location: class org.apache.ambari.server.controller.ViewInstanceRequest.ViewInstanceRequestInfo
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/controller/ViewInstanceRequest.java:[89,93] cannot find symbol
[ERROR] symbol: class ClusterType
[ERROR] location: class org.apache.ambari.server.controller.ViewInstanceRequest.ViewInstanceRequestInfo
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/controller/ViewInstanceRequest.java:[208,12] cannot find symbol
[ERROR] symbol: class ClusterType
[ERROR] location: class org.apache.ambari.server.controller.ViewInstanceRequest.ViewInstanceRequestInfo
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/api/services/WidgetService.java:[35,37] cannot find symbol
[ERROR] symbol: class ApiIgnore
[ERROR] location: package org.apache.ambari.annotations
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/api/services/views/ViewPermissionService.java:[37,37] cannot find symbol
[ERROR] symbol: class ApiIgnore
[ERROR] location: package org.apache.ambari.annotations
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/api/services/HostComponentService.java:[42,37] cannot find symbol
[ERROR] symbol: class ApiIgnore
[ERROR] location: package org.apache.ambari.annotations
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/api/services/HostComponentService.java:[43,37] cannot find symbol
[ERROR] symbol: class SwaggerPreferredParent
[ERROR] location: package org.apache.ambari.annotations
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/api/services/HostComponentService.java:[65,2] cannot find symbol
[ERROR] symbol: class SwaggerPreferredParent
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/api/services/HostKerberosIdentityService.java:[35,37] cannot find symbol
[ERROR] symbol: class ApiIgnore
[ERROR] location: package org.apache.ambari.annotations
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/api/services/HostStackVersionService.java:[33,37] cannot find symbol
[ERROR] symbol: class ApiIgnore
[ERROR] location: package org.apache.ambari.annotations
[ERROR] /usr/local/apache-ambari-2.7.6-src/ambari-server/src/main/java/org/apache/ambari/server/api/services/RepositoryVersionService.java:[35,37] cannot find symbol
[ERROR] symbol: class ApiIgnore
[ERROR] location: package org.apache.ambari.annotations
Any workaround?
#LMK There are several instance of this question/post. A complete example of one is:
Ambari 2.7.5 installation failure on CentOS 7
I would recommend that you read through that, and look for the others. You are going to need to apply the lessons learned. Its been a long time since i did this, but TL;DR: you need to get the right versions of maven as well as having your build environment and operating system setup as close as possible to the command flow i posted above.
When I am using ANT in eclipse clean+Build, it doesn't give me any error/problems.
However when I build using Maven it gives following error :
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building TFMWithSpark 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # TFMWithSpark ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) # TFMWithSpark ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 35 source files to C:\Users\asoza\SparkWorkspace\TFMWithSpark\target\classes
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING :
[INFO] -------------------------------------------------------------
[WARNING] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java: C:\Users\asoza\SparkWorkspace\TFMWithSpark\src\main\java\com\tfmwithspark\SparkVMACache.java uses or overrides a deprecated API.
[WARNING] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java: Recompile with -Xlint:deprecation for details.
[INFO] 2 warnings
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkBillableChargeDetailVO.java:[8,36] package com.splwg.base.api.datatypes does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkBillableChargeDetailVO.java:[9,74] package com.splwg.ccb.domain.banking.transactionFeed.transactionFeedAgg.vo does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkBillableChargeDetailVO.java:[10,74] package com.splwg.ccb.domain.banking.transactionFeed.transactionFeedAgg.vo does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkBillableChargeDetailVO.java:[11,74] package com.splwg.ccb.domain.banking.transactionFeed.transactionFeedAgg.vo does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkBillableChargeDetailVO.java:[41,13] cannot find symbol
symbol: class Bool
location: class com.tfmwithspark.SparkBillableChargeDetailVO
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkBillableChargeServiceQuantityDetailVO.java:[6,32] package com.splwg.ccb.api.lookup does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkBillableChargeDetailVO.java:[47,18] cannot find symbol
symbol: class BillableChargeLineDetailVO
location: class com.tfmwithspark.SparkBillableChargeDetailVO
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkBillableChargeDetailVO.java:[48,18] cannot find symbol
symbol: class BillableChargeCharacteristicDetailVO
location: class com.tfmwithspark.SparkBillableChargeDetailVO
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkBillableChargeDetailVO.java:[352,12] cannot find symbol
symbol: class Bool
location: class com.tfmwithspark.SparkBillableChargeDetailVO
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkBillableChargeDetailVO.java:[359,32] cannot find symbol
symbol: class Bool
location: class com.tfmwithspark.SparkBillableChargeDetailVO
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkBillableChargeDetailVO.java:[422,17] cannot find symbol
symbol: class BillableChargeLineDetailVO
location: class com.tfmwithspark.SparkBillableChargeDetailVO
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkBillableChargeDetailVO.java:[429,40] cannot find symbol
symbol: class BillableChargeLineDetailVO
location: class com.tfmwithspark.SparkBillableChargeDetailVO
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkBillableChargeDetailVO.java:[436,17] cannot find symbol
symbol: class BillableChargeCharacteristicDetailVO
location: class com.tfmwithspark.SparkBillableChargeDetailVO
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkBillableChargeDetailVO.java:[443,44] cannot find symbol
symbol: class BillableChargeCharacteristicDetailVO
location: class com.tfmwithspark.SparkBillableChargeDetailVO
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestView.java:[22,25] package org.hibernate.cfg does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestView.java:[23,30] package org.hibernate.internal does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestView.java:[25,34] package com.splwg.base.api.service does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestView.java:[26,38] package com.splwg.base.support.context does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestView.java:[27,38] package com.splwg.base.support.context does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestView.java:[28,38] package com.splwg.base.support.context does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestView.java:[29,38] package com.splwg.base.support.context does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestView.java:[30,38] package com.splwg.base.support.context does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestView.java:[31,71] package com.splwg.ccb.domain.banking.transactionFeed.transactionFeedAgg does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestView.java:[32,33] package com.splwg.ccb.domain.util does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestView.java:[33,31] package com.splwg.shared.common does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestView.java:[34,31] package com.splwg.shared.common does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestView.java:[35,32] package com.splwg.shared.context does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestView.java:[36,32] package com.splwg.shared.context does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestView.java:[37,32] package com.splwg.shared.environ does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestView.java:[76,45] cannot find symbol
symbol: class FrameworkSession
location: class com.tfmwithspark.TestView
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkTransactionPriceItemDetailSummaryVO.java:[7,74] package com.splwg.ccb.domain.banking.transactionFeed.transactionFeedAgg.vo does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkTransactionPriceItemDetailSummaryVO.java:[68,13] cannot find symbol
symbol: class ErrorDetailVO
location: class com.tfmwithspark.SparkTransactionPriceItemDetailSummaryVO
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkTransactionPriceItemDetailSummaryVO.java:[90,29] package com.ibm.icu.math does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkTransactionPriceItemDetailSummaryVO.java:[629,12] cannot find symbol
symbol: class ErrorDetailVO
location: class com.tfmwithspark.SparkTransactionPriceItemDetailSummaryVO
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkTransactionPriceItemDetailSummaryVO.java:[636,32] cannot find symbol
symbol: class ErrorDetailVO
location: class com.tfmwithspark.SparkTransactionPriceItemDetailSummaryVO
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkTransactionPriceItemDetailSummaryVO.java:[777,28] package com.ibm.icu.math does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkTransactionPriceItemDetailSummaryVO.java:[784,47] package com.ibm.icu.math does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[24,36] package com.splwg.base.api.datatypes does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[25,57] package com.splwg.base.domain.common.featureConfiguration does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[26,57] package com.splwg.base.domain.common.featureConfiguration does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[27,71] package com.splwg.ccb.domain.banking.transactionFeed.transactionFeedAgg does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[28,71] package com.splwg.ccb.domain.banking.transactionFeed.transactionFeedAgg does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[29,71] package com.splwg.ccb.domain.banking.transactionFeed.transactionFeedAgg does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[30,71] package com.splwg.ccb.domain.banking.transactionFeed.transactionFeedAgg does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[31,71] package com.splwg.ccb.domain.banking.transactionFeed.transactionFeedAgg does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[32,71] package com.splwg.ccb.domain.banking.transactionFeed.transactionFeedAgg does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[33,71] package com.splwg.ccb.domain.banking.transactionFeed.transactionFeedAgg does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[34,74] package com.splwg.ccb.domain.banking.transactionFeed.transactionFeedAgg.vo does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[35,51] package com.splwg.ccb.domain.pricing.priceassign.vo does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[36,46] package com.splwg.ccb.domain.pricing.priceitem does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[37,46] package com.splwg.ccb.domain.pricing.priceitem does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[38,46] package com.splwg.ccb.domain.pricing.priceitem does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[39,46] package com.splwg.ccb.domain.pricing.priceitem does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[40,46] package com.splwg.ccb.domain.pricing.priceparm does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[41,46] package com.splwg.ccb.domain.pricing.priceparm does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[42,46] package com.splwg.ccb.domain.pricing.priceparm does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[130,25] cannot find symbol
symbol: class EffectiveDatedProductParameterDetail
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[132,25] cannot find symbol
symbol: class PriceParm
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[149,25] cannot find symbol
symbol: class TransactionRecordTypeVO
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[151,25] cannot find symbol
symbol: class DivisionCharacteristicDetail
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[154,25] cannot find symbol
symbol: class SQIFragmentDetails
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[157,30] cannot find symbol
symbol: class AlgoParmVO
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[159,25] cannot find symbol
symbol: class DivisionDetailVO
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[161,35] cannot find symbol
symbol: class SchedulePeriodData
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[297,31] cannot find symbol
symbol: class TransactionRecordTypeVO
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[313,31] cannot find symbol
symbol: class DivisionCharacteristicDetail
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[329,31] cannot find symbol
symbol: class SQIFragmentDetails
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[345,41] cannot find symbol
symbol: class SchedulePeriodData
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[350,19] cannot find symbol
symbol: class PriceParm
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[651,17] cannot find symbol
symbol: class EffectiveDatedProductParameterDetail
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[1270,102] package com.splwg.base.api.datatypes does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[1317,31] cannot find symbol
symbol: class DivisionDetailVO
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[1618,24] cannot find symbol
symbol: class PriceItemParm_DTO
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[1626,18] cannot find symbol
symbol: class PriceItemParm_DTO
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[1646,13] cannot find symbol
symbol: class EffectiveDatedProductParameterDetail
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[1645,13] cannot find symbol
symbol: class EffectiveDatedProductParameterDetail
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/BillableChargeAndSQSparkVO.java:[7,46] package com.splwg.ccb.domain.pricing.priceitem does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestMaterializedView.java:[22,30] package org.hibernate.internal does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestMaterializedView.java:[25,34] package com.splwg.base.api.service does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestMaterializedView.java:[26,38] package com.splwg.base.support.context does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestMaterializedView.java:[27,38] package com.splwg.base.support.context does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestMaterializedView.java:[28,38] package com.splwg.base.support.context does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestMaterializedView.java:[29,38] package com.splwg.base.support.context does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestMaterializedView.java:[30,33] package com.splwg.ccb.domain.util does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestMaterializedView.java:[31,32] package com.splwg.shared.context does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestMaterializedView.java:[32,32] package com.splwg.shared.context does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestMaterializedView.java:[33,32] package com.splwg.shared.environ does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestMaterializedView.java:[68,36] cannot find symbol
symbol: class FrameworkSession
location: class com.tfmwithspark.TestMaterializedView
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkPriceAsgnVO.java:[7,36] package com.splwg.base.api.datatypes does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkPriceAsgnVO.java:[8,36] package com.splwg.ccb.domain.pricing does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkPriceAsgnVO.java:[9,54] package com.splwg.ccb.domain.pricing.priceassign.enums does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkPriceAsgnVO.java:[10,54] package com.splwg.ccb.domain.pricing.priceassign.enums does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkPriceAsgnVO.java:[11,46] package com.splwg.ccb.domain.pricing.priceitem does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkPriceAsgnVO.java:[12,46] package com.splwg.ccb.domain.pricing.priceparm does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkPriceAsgnVO.java:[13,47] package com.splwg.ccb.domain.pricing.service.vo does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkPriceAsgnVO.java:[64,13] cannot find symbol
symbol: class Date
location: class com.tfmwithspark.SparkPriceAsgnVO
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkPriceAsgnVO.java:[66,13] cannot find symbol
symbol: class Date
location: class com.tfmwithspark.SparkPriceAsgnVO
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkPriceAsgnVO.java:[68,13] cannot find symbol
symbol: class Date
location: class com.tfmwithspark.SparkPriceAsgnVO
[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
I already checked solutions which asks to check if Java version is correctly mentioned in pom.xml.
I have checked it in my pom.xml and it is correct.
I am not able to understand why this error is occuring.
below my POM.xml
<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.tfmwithspark</groupId>
<artifactId>TFMWithSpark</artifactId>
<version>1.0</version>
<dependencies>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_2.11</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-sql_2.11</artifactId>
<version>2.3.0</version>
</dependency>
</dependencies>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
</project>
I am using Maven - 3.5.3 and java version "1.8.0_211"
You should declare all dependencies in your POM.
I guess that packages starting with com.splwg are neither part of your project nor belongs to Spark.
Those dependency must be someway declared in your POM.
If those jar are not in a public maven repository you either install them locally, or deploy in a private maven repository or (and if neither is possible) reference them with the systemPath property of the dependecy.
You should check maven guide to installing 3rd party JARs.
The only dirty hack which is quick enough to include in this answer is the system path dependency.
<dependency>
<groupId>local.hack</groupId>
<artifactId>com.splwg.base</artifactId>
<version>1.0</version>
<scope>system</scope>
<!-- here you set the local machine path of your jar -->
<systemPath>${basedir}/lib/splwg_base_jar.jar</systemPath>
</dependency>
I would not recommend this approach, but my guess is that you are already using local dependencies in your project, so importing them in maven does not introduce any problem.
Sharing a POM with local dependency with other developers is not a good idea, and you should go for a private maven repository.
A private maven repository is just a dedicated webapp which let you upload jars as maven artifact which then you can include as dependencies in your pom.
It has also the benefit (if you want) to proxy maven repository so you get a local network cache of maven artifact you use.
There are several local artifact repository software like NEXUS or Artifactory, pick one and follow its guide.
I am trying to make an Uber jar in Intellij and have run across this issue with maven shade. I have looked at other solutions but nothing seems to work. My project is to make a plugin for Minecraft, if that helps at all. I run 'mvn package' or 'mvn compile' and it produces the error below.
Error:
C:\Users\luckycosmos\IdeaProjects\discordMC>mvn compile
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------------< me.cosmicluck:discordMC >-----------------------
[INFO] Building discordMC 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # discordMC ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) # discordMC ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 6 source files to C:\Users\luckycosmos\IdeaProjects\discordMC\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/DiscordHandler.java:[1,39] package com.onarandombox.MultiverseCore does not exist
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/Main.java:[1,39] package com.onarandombox.MultiverseCore does not exist
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/DiscordHandler.java:[19,13] cannot find symbol
symbol: class MultiverseCore
location: class DiscordHandler
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/DiscordHandler.java:[21,43] cannot find symbol
symbol: class MultiverseCore
location: class DiscordHandler
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/Main.java:[12,13] cannot find symbol
symbol: class MultiverseCore
location: class Main
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/Main.java:[30,12] cannot find symbol
symbol: class MultiverseCore
location: class Main
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/Main.java:[52,12] cannot find symbol
symbol: class MultiverseCore
location: class Main
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/MVManager.java:[1,39] package com.onarandombox.MultiverseCore does not exist
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/MVManager.java:[2,43] package com.onarandombox.MultiverseCore.api does not exist
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/MVManager.java:[3,43] package com.onarandombox.MultiverseCore.api does not exist
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/MVManager.java:[13,13] cannot find symbol
symbol: class MultiverseCore
location: class MVManager
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/MVManager.java:[16,15] cannot find symbol
symbol: class MultiverseCore
location: class MVManager
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/MVManager.java:[21,12] cannot find symbol
symbol: class MVWorldManager
location: class MVManager
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/MVManager.java:[25,50] cannot find symbol
symbol: class MVWorldManager
location: class MVManager
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/MVManager.java:[25,23] cannot find symbol
symbol: class MultiverseWorld
location: class MVManager
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/MVManager.java:[29,49] cannot find symbol
symbol: class MultiverseWorld
location: class MVManager
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/Main.java:[33,31] cannot find symbol
symbol: class MultiverseCore
location: class Main
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/Main.java:[34,21] cannot find symbol
symbol: class MultiverseCore
location: class Main
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/MVManager.java:[31,13] cannot find symbol
symbol: class MultiverseWorld
location: class MVManager
[INFO] 19 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.685 s
[INFO] Finished at: 2018-06-23T20:28:39-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project discordMC: Compilation failure: Compilation failure:
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/DiscordHandler.java:[1,39] package com.onarandombox.MultiverseCore does not exist
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/Main.java:[1,39] package com.onarandombox.MultiverseCore does not exist
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/DiscordHandler.java:[19,13] cannot find symbol
[ERROR] symbol: class MultiverseCore
[ERROR] location: class DiscordHandler
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/DiscordHandler.java:[21,43] cannot find symbol
[ERROR] symbol: class MultiverseCore
[ERROR] location: class DiscordHandler
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/Main.java:[12,13] cannot find symbol
[ERROR] symbol: class MultiverseCore
[ERROR] location: class Main
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/Main.java:[30,12] cannot find symbol
[ERROR] symbol: class MultiverseCore
[ERROR] location: class Main
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/Main.java:[52,12] cannot find symbol
[ERROR] symbol: class MultiverseCore
[ERROR] location: class Main
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/MVManager.java:[1,39] package com.onarandombox.MultiverseCore does not exist
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/MVManager.java:[2,43] package com.onarandombox.MultiverseCore.api does not exist
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/MVManager.java:[3,43] package com.onarandombox.MultiverseCore.api does not exist
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/MVManager.java:[13,13] cannot find symbol
[ERROR] symbol: class MultiverseCore
[ERROR] location: class MVManager
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/MVManager.java:[16,15] cannot find symbol
[ERROR] symbol: class MultiverseCore
[ERROR] location: class MVManager
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/MVManager.java:[21,12] cannot find symbol
[ERROR] symbol: class MVWorldManager
[ERROR] location: class MVManager
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/MVManager.java:[25,50] cannot find symbol
[ERROR] symbol: class MVWorldManager
[ERROR] location: class MVManager
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/MVManager.java:[25,23] cannot find symbol
[ERROR] symbol: class MultiverseWorld
[ERROR] location: class MVManager
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/MVManager.java:[29,49] cannot find symbol
[ERROR] symbol: class MultiverseWorld
[ERROR] location: class MVManager
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/Main.java:[33,31] cannot find symbol
[ERROR] symbol: class MultiverseCore
[ERROR] location: class Main
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/Main.java:[34,21] cannot find symbol
[ERROR] symbol: class MultiverseCore
[ERROR] location: class Main
[ERROR] /C:/Users/luckycosmos/IdeaProjects/discordMC/src/main/java/MVManager.java:[31,13] cannot find symbol
[ERROR] symbol: class MultiverseWorld
[ERROR] location: class MVManager
[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
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>me.cosmicluck</groupId>
<artifactId>discordMC</artifactId>
<version>1.0-SNAPSHOT</version>
<repositories>
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
<repository>
<id>jcenter</id>
<name>jcenter-bintray</name>
<url>http://jcenter.bintray.com</url>
</repository>
</repositories>
<dependencies>
<!--Spigot API-->
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.12.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<!--Bukkit API-->
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
<version>1.12.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.dv8tion</groupId>
<artifactId>JDA</artifactId>
<version>3.6.0_365</version>
</dependency>
</dependencies>
<build>
<plugins>
<!-- Maven Shade Plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.3</version>
<executions>
<!-- Run shade goal on package phase -->
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
I checked my JDK home, everything is correct. I am confused as to why this is happening, I have never seen this happen before. Hopefully I can get some enlightenment on this.
I am new to maven. Please help!
Even if I have included all the dependencies in POM.xml, I am getting symbol not found error while "mvn install".
Here is the complete stack trace for your reference-
[INFO] Scanning for projects...
[INFO] Building XDMS Automation 0.0.1-SNAPSHOT
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # XDMS ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) # XDMS ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 6 source files to C:\JavaProgs\xdms\target\classes
[INFO] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java: Some input files use unchecked or unsafe operations.
[INFO] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java: Recompile with -Xlint:unchecked for details.
[ERROR] COMPILATION ERROR :
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[7,22] package io.restassured does not exist
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[8,29] package io.restassured.config does not exist
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[10,30] package io.restassured.parsing does not exist
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[13,31] package io.restassured.response does not exist
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[14,31] package io.restassured.response does not exist
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[15,31] package io.restassured.response does not exist
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[17,29] cannot find symbol
symbol: class RestAssured
location: package io.restassured
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[17,1] static import only from classes and interfaces
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[27,18] package org.testng does not exist
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[28,18] package org.testng does not exist
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[32,26] package org.testng.asserts does not exist
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[12,30] package org.testng.annotations does not exist
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[15,22] cannot find symbol
symbol: class RestAssured
location: package io.restassured
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[21,1] static import only from classes and interfaces
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[23,1] package io.restassured.RestAssured does not exist
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[25,1] package org.hamcrest.Matchers does not exist
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[45,29] cannot find symbol
symbol: class ITestResult
location: class restprograms.SmokeTest
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[151,12] cannot find symbol
symbol: class Response
location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/resources/TestNGPagefactoryRunnerTest.java:[3,24] package org.junit.runner does not exist
[ERROR] /C:/..../TestNGPagefactoryRunnerTest.java:[6,26] package cucumber.api.junit does not exist
[ERROR] /C:/../TestNGPagefactoryRunnerTest.java:[9,2] cannot find symbol
symbol: class RunWith
[ERROR] /C:/.../CommonFunctions.java:[8,30] package org.testng.annotations does not exist
[ERROR] /C:/JavaProgs/xdms/src/resources/StepDefCommon.java:[5,30] package org.testng.annotations does not exist
[ERROR] /C:/JavaProgs/xdms/src/resources/StepDefCommon.java:[8,31] package io.restassured.response does not exist
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[44,10] cannot find symbol
symbol: class AfterMethod
location: class restprograms.SmokeTest
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[59,10] cannot find symbol
symbol: class Test
location: class restprograms.SmokeTest
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[69,10] cannot find symbol
symbol: class Test
location: class restprograms.SmokeTest
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[82,6] cannot find symbol
symbol: class Test
location: class restprograms.SmokeTest
[ERROR] /C:/.../SmokeTest.java:[104,6] cannot find symbol
symbol: class Test
location: class restprograms.SmokeTest
[ERROR] /C:/.../SmokeTest.java:[119,6] cannot find symbol
symbol: class Test
location: class restprograms.SmokeTest
[ERROR] /C:/.../SmokeTest.java:[135,6] cannot find symbol
symbol: class Test
location: class restprograms.SmokeTest
[ERROR] /C:/JavaProgs/.../SmokeTest.java:[156,6] cannot find symbol
symbol: class Test
location: class restprograms.SmokeTest
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[166,6] cannot find symbol
symbol: class Test
location: class restprograms.SmokeTest
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[184,6] cannot find symbol
symbol: class Test
location: class restprograms.SmokeTest
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[207,6] cannot find symbol
symbol: class Test
location: class restprograms.SmokeTest
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[236,6] cannot find symbol
symbol: class Test
location: class restprograms.SmokeTest
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[244,6] cannot find symbol
symbol: class Test
location: class restprograms.SmokeTest
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[252,6] cannot find symbol
symbol: class Test
location: class restprograms.SmokeTest
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[269,6] cannot find symbol
symbol: class Test
location: class restprograms.SmokeTest
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[276,6] cannot find symbol
symbol: class Test
location: class restprograms.SmokeTest
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[283,6] cannot find symbol
symbol: class Test
location: class restprograms.SmokeTest
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[304,6] cannot find symbol
symbol: class Test
location: class restprograms.SmokeTest
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[43,10] cannot find symbol
symbol: class BeforeSuite
location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[103,32] cannot find symbol
symbol: method given()
location: class restprograms.GrpUpdates
location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[154,11] cannot find symbol
symbol: variable RestAssured
location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[155,11] cannot find symbol
symbol: class Response
location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[155,26] cannot find symbol
symbol: method given()
location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[168,17] cannot find symbol
symbol: class Response
location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[170,78] cannot find symbol
symbol: variable XmlConfig
location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[170,47] cannot find symbol
symbol: variable RestAssured
location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[168,32] cannot find symbol
symbol: method given()
location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[179,17] cannot find symbol
symbol: class Response
location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[179,32] cannot find symbol
symbol: method given()
location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[189,17] cannot find symbol
symbol: class Response
location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[196,40] cannot find symbol
symbol: method given()
location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[211,25] cannot find symbol
symbol: class Response
location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[213,92] cannot find symbol
symbol: variable XmlConfig
location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[213,55] cannot find symbol
symbol: variable RestAssuredConfig
location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[211,40] cannot find symbol
symbol: method given()
location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[228,17] cannot find symbol
symbol: class Response
location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[228,32] cannot find symbol
symbol: method given()
location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[243,17] cannot find symbol
symbol: class Response
location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[243,32] cannot find symbol
symbol: method given()
location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[254,17] cannot find symbol
symbol: class Response
location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[254,32] cannot find symbol
symbol: method given()
location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[272,17] cannot find symbol
symbol: class Response
location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[272,32] cannot find symbol
symbol: method given()
location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[284,17] cannot find symbol
symbol: class Response
location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[284,32] cannot find symbol
symbol: method given()
location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[294,17] cannot find symbol
symbol: class Response
location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[294,32] cannot find symbol
symbol: method given()
location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[304,17] cannot find symbol
symbol: class Response
location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[306,17] cannot find symbol
symbol: class Response
location: class restprograms.GrpUpdates
[INFO] 100 errors
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project XDMS: Compilation failure: Compilation failure:
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[7,22] package io.restassured does not exist
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[8,29] package io.restassured.config does not exist
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[10,30] package io.restassured.parsing does not exist
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[13,31] package io.restassured.response does not exist
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[14,31] package io.restassured.response does not exist
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[15,31] package io.restassured.response does not exist
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[17,29] cannot find symbol
[ERROR] symbol: class RestAssured
[ERROR] location: package io.restassured
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[17,1] static import only from classes and interfaces
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[27,18] package org.testng does not exist
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[28,18] package org.testng does not exist
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[29,30] package org.testng.annotations does not exist
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[31,30] package org.testng.annotations does not exist
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[32,26] package org.testng.asserts does not exist
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[12,30] package org.testng.annotations does not exist
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[13,30] package org.testng.annotations does not exist
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[14,30] package org.testng.annotations does not exist
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[15,22] cannot find symbol
[ERROR] symbol: class RestAssured
[ERROR] location: package io.restassured
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[16,29] package io.restassured.config does not exist
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[17,29] package io.restassured.config does not exist
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[19,31] package io.restassured.response does not exist
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[21,29] cannot find symbol
[ERROR] symbol: class RestAssured
[ERROR] location: package io.restassured
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[21,1] static import only from classes and interfaces
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[23,1] package io.restassured.RestAssured does not exist
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[24,1] package io.restassured.matcher.RestAssuredMatchers does not exist
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[25,1] package org.hamcrest.Matchers does not exist
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[45,29] cannot find symbol
[ERROR] symbol: class ITestResult
[ERROR] location: class restprograms.SmokeTest
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[151,12] cannot find symbol
[ERROR] symbol: class Response
[ERROR] location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[166,16] cannot find symbol
[ERROR] symbol: class Response
[ERROR] location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[177,16] cannot find symbol
[ERROR] symbol: class Response
[ERROR] location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[207,16] cannot find symbol
[ERROR] symbol: class Response
[ERROR] location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[222,16] cannot find symbol
[ERROR] symbol: class Response
[ERROR] location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[240,16] cannot find symbol
[ERROR] symbol: class Response
[ERROR] location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[251,16] cannot find symbol
[ERROR] symbol: class Response
[ERROR] location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[263,16] cannot find symbol
[ERROR] symbol: class Response
[ERROR] location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[282,16] cannot find symbol
[ERROR] symbol: class Response
[ERROR] location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[292,16] cannot find symbol
[ERROR] symbol: class Response
[ERROR] location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[302,16] cannot find symbol
[ERROR] symbol: class Response
[ERROR] location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[335,16] cannot find symbol
[ERROR] symbol: class Response
[ERROR] location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[345,16] cannot find symbol
[ERROR] symbol: class Response
[ERROR] location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[355,16] cannot find symbol
[ERROR] symbol: class Response
[ERROR] location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[368,16] cannot find symbol
[ERROR] symbol: class Response
[ERROR] location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[378,16] cannot find symbol
[ERROR] symbol: class Response
[ERROR] location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/resources/TestNGPagefactoryRunnerTest.java:[3,24] package org.junit.runner does not exist
[ERROR] /C:/JavaProgs/xdms/src/resources/TestNGPagefactoryRunnerTest.java:[6,26] package cucumber.api.junit does not exist
[ERROR] /C:/JavaProgs/xdms/src/resources/TestNGPagefactoryRunnerTest.java:[9,2] cannot find symbol
[ERROR] symbol: class RunWith
[ERROR] /C:/JavaProgs/xdms/src/restprograms/CommonFunctions.java:[8,30] package org.testng.annotations does not exist
[ERROR] /C:/JavaProgs/xdms/src/resources/StepDefCommon.java:[5,30] package org.testng.annotations does not exist
[ERROR] /C:/JavaProgs/xdms/src/resources/StepDefCommon.java:[8,31] package io.restassured.response does not exist
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[44,10] cannot find symbol
[ERROR] symbol: class AfterMethod
[ERROR] location: class restprograms.SmokeTest
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[59,10] cannot find symbol
[ERROR] symbol: class Test
[ERROR] location: class restprograms.SmokeTest
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[69,10] cannot find symbol
[ERROR] symbol: class Test
[ERROR] location: class restprograms.SmokeTest
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[82,6] cannot find symbol
[ERROR] symbol: class Test
[ERROR] location: class restprograms.SmokeTest
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[104,6] cannot find symbol
[ERROR] symbol: class Test
[ERROR] location: class restprograms.SmokeTest
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[119,6] cannot find symbol
[ERROR] symbol: class Test
[ERROR] location: class restprograms.SmokeTest
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[135,6] cannot find symbol
[ERROR] symbol: class Test
[ERROR] location: class restprograms.SmokeTest
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[156,6] cannot find symbol
[ERROR] symbol: class Test
[ERROR] location: class restprograms.SmokeTest
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[166,6] cannot find symbol
[ERROR] symbol: class Test
[ERROR] location: class restprograms.SmokeTest
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[184,6] cannot find symbol
[ERROR] symbol: class Test
[ERROR] location: class restprograms.SmokeTest
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[207,6] cannot find symbol
[ERROR] symbol: class Test
[ERROR] location: class restprograms.SmokeTest
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[236,6] cannot find symbol
[ERROR] symbol: class Test
[ERROR] location: class restprograms.SmokeTest
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[244,6] cannot find symbol
[ERROR] symbol: class Test
[ERROR] location: class restprograms.SmokeTest
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[252,6] cannot find symbol
[ERROR] symbol: class Test
[ERROR] location: class restprograms.SmokeTest
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[269,6] cannot find symbol
[ERROR] symbol: class Test
[ERROR] location: class restprograms.SmokeTest
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[276,6] cannot find symbol
[ERROR] symbol: class Test
[ERROR] location: class restprograms.SmokeTest
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[283,6] cannot find symbol
[ERROR] symbol: class Test
[ERROR] location: class restprograms.SmokeTest
[ERROR] /C:/JavaProgs/xdms/src/restprograms/SmokeTest.java:[304,6] cannot find symbol
[ERROR] symbol: class Test
[ERROR] location: class restprograms.SmokeTest
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[43,10] cannot find symbol
[ERROR] symbol: class BeforeSuite
[ERROR] location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[103,17] cannot find symbol
[ERROR] symbol: class Response
[ERROR] location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[103,32] cannot find symbol
[ERROR] symbol: method given()
[ERROR] location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[119,17] cannot find symbol
[ERROR] symbol: class Response
[ERROR] location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[119,32] cannot find symbol
[ERROR] symbol: method given()
[ERROR] location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[154,11] cannot find symbol
[ERROR] symbol: variable RestAssured
[ERROR] location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[155,11] cannot find symbol
[ERROR] symbol: class Response
[ERROR] location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[155,26] cannot find symbol
[ERROR] symbol: method given()
[ERROR] location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[168,17] cannot find symbol
[ERROR] symbol: class Response
[ERROR] location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[170,78] cannot find symbol
[ERROR] symbol: variable XmlConfig
[ERROR] location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[170,47] cannot find symbol
[ERROR] symbol: variable RestAssured
[ERROR] location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[168,32] cannot find symbol
[ERROR] symbol: method given()
[ERROR] location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[179,17] cannot find symbol
[ERROR] symbol: class Response
[ERROR] location: class restprograms.GrpUpdates
[ERROR] /C:/JavaProgs/xdms/src/restprograms/GrpUpdates.java:[179,32] cannot find symbol
[ERROR] symbol: method given()
[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
Here is my POM.xml -
<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>MyProject</groupId>
<artifactId>MyProject</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>MyProject Automation</name>
<description>MyProject Automation with Rest Assured</description>
<build>
<sourceDirectory>src</sourceDirectory>
<resources>
<resource>
<directory>src</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.20</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>testng.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<!-- https://mvnrepository.com/artifact/io.rest-assured/rest-assured -->
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>rest-assured</artifactId>
<version>3.0.3</version>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/io.rest-assured/xml-path -->
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>xml-path</artifactId>
<version>3.0.3</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.testng/testng -->
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.11</version>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/junit/junit -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/info.cukes/cucumber-testng -->
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-testng</artifactId>
<version>1.2.5</version>
</dependency>
<!-- https://mvnrepository.com/artifact/info.cukes/cucumber-junit -->
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-junit</artifactId>
<version>1.2.5</version>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/info.cukes/cucumber-java -->
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-java</artifactId>
<version>1.2.5</version>
</dependency>
<!-- https://mvnrepository.com/artifact/info.cukes/cucumber-core -->
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-core</artifactId>
<version>1.2.5</version>
</dependency>
<!-- https://mvnrepository.com/artifact/info.cukes/cucumber-picocontainer -->
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-picocontainer</artifactId>
<version>1.2.5</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
I am stuck with this since last week. Tried everything for the same error description on stackoverflow! Still no luck, hence posting the question.
Thanks for your help!
You better follow standard Maven directory layout like src/main/java, src/test/java etc.
The problem in this case is probably that you're including
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>rest-assured</artifactId>
<version>3.0.3</version>
<scope>test</scope>
</dependency>
in test scope but use it in what appears to be "main" code.
Another way to fix this is to
1.Open POM.xml
2.Navigate to dependencies tab
3.select rest assured click on properties button
4.In the scope field, change the value from test
to compile.
5.Save it and run again.
Thanks "lexicore" for the suggestion. Even if I created the directory structure and copied files as per your suggestion, I was still getting error.
This error disappeared and I was able to run "maven install" through eclipse when I commented following line in POM.xml
<build>
<!-- <sourceDirectory>src</sourceDirectory> -->
<resources>
<resource>
<directory>src/main/java</directory>
<excludes>
<exclude>**/*.java</exclude>
I was facing the same issue. I commented out the scope test part of it,
since was using the standard Maven directory layout like src/main/java, src/test/java etc.
I followed this: https://mahout.apache.org/users/recommender/userbased-5-minutes.html
and my codes :
pom.xml
Note that my <groupId> is also org.apche.mahout
<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>org.apache.mahout</groupId>
<artifactId>first</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>first</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>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.mahout</groupId>
<artifactId>mahout-mr</artifactId>
<version>0.9</version>
</dependency>
</dependencies>
</project>
SampleRecommender.java
package org.apache.mahout;
public class SampleRecommender
{
public static void main(String[] args)
{
DataModel model = new FileDataModel(new File("dataset.csv"));
UserSimilarity similarity = new PearsonCorrelationSimilarity(model);
UserNeighborhood neighborhood = new ThresholdUserNeighborhood(0.1, similarity, model);
UserBasedRecommender recommender = new GenericUserBasedRecommender(model, neighborhood, similarity);
List recommendations = recommender.recommend(2, 3);
for (RecommendedItem recommendation : recommendations)
System.out.println(recommendation);
}
}
When I entered mvn compile, these errors occur:
...After downloading some .jar files...
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # first ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/[username]/Desktop/ferrari_project/mahout-test/first/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) # first ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /Users/[username]/Desktop/ferrari_project/mahout-test/first/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Users/[username]/Desktop/ferrari_project/mahout-test/first/src/main/java/org/apache/mahout/SampleRecommender.java:[7,17] cannot find symbol
symbol: class DataModel
location: class org.apache.mahout.SampleRecommender
[ERROR] /Users/[username]/Desktop/ferrari_project/mahout-test/first/src/main/java/org/apache/mahout/SampleRecommender.java:[7,39] cannot find symbol
symbol: class FileDataModel
location: class org.apache.mahout.SampleRecommender
[ERROR] /Users/[username]/Desktop/ferrari_project/mahout-test/first/src/main/java/org/apache/mahout/SampleRecommender.java:[7,57] cannot find symbol
symbol: class File
location: class org.apache.mahout.SampleRecommender
[ERROR] /Users/[username]/Desktop/ferrari_project/mahout-test/first/src/main/java/org/apache/mahout/SampleRecommender.java:[8,17] cannot find symbol
symbol: class UserSimilarity
location: class org.apache.mahout.SampleRecommender
[ERROR] /Users/[username]/Desktop/ferrari_project/mahout-test/first/src/main/java/org/apache/mahout/SampleRecommender.java:[8,49] cannot find symbol
symbol: class PearsonCorrelationSimilarity
location: class org.apache.mahout.SampleRecommender
[ERROR] /Users/[username]/Desktop/ferrari_project/mahout-test/first/src/main/java/org/apache/mahout/SampleRecommender.java:[9,17] cannot find symbol
symbol: class UserNeighborhood
location: class org.apache.mahout.SampleRecommender
[ERROR] /Users/[username]/Desktop/ferrari_project/mahout-test/first/src/main/java/org/apache/mahout/SampleRecommender.java:[9,53] cannot find symbol
symbol: class ThresholdUserNeighborhood
location: class org.apache.mahout.SampleRecommender
[ERROR] /Users/[username]/Desktop/ferrari_project/mahout-test/first/src/main/java/org/apache/mahout/SampleRecommender.java:[11,17] cannot find symbol
symbol: class UserBasedRecommender
location: class org.apache.mahout.SampleRecommender
[ERROR] /Users/[username]/Desktop/ferrari_project/mahout-test/first/src/main/java/org/apache/mahout/SampleRecommender.java:[11,56] cannot find symbol
symbol: class GenericUserBasedRecommender
location: class org.apache.mahout.SampleRecommender
[ERROR] /Users/[username]/Desktop/ferrari_project/mahout-test/first/src/main/java/org/apache/mahout/SampleRecommender.java:[13,17] cannot find symbol
symbol: class List
location: class org.apache.mahout.SampleRecommender
[ERROR] /Users/[username]/Desktop/ferrari_project/mahout-test/first/src/main/java/org/apache/mahout/SampleRecommender.java:[14,22] cannot find symbol
symbol: class RecommendedItem
location: class org.apache.mahout.SampleRecommender
[INFO] 11 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 22.228 s
[INFO] Finished at: 2016-10-10T09:57:14+09:00
[INFO] Final Memory: 24M/149M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project first: Compilation failure: Compilation failure:
[ERROR] /Users/[username]/Desktop/ferrari_project/mahout-test/first/src/main/java/org/apache/mahout/SampleRecommender.java:[7,17] cannot find symbol
[ERROR] symbol: class DataModel
[ERROR] location: class org.apache.mahout.SampleRecommender
[ERROR] /Users/[username]/Desktop/ferrari_project/mahout-test/first/src/main/java/org/apache/mahout/SampleRecommender.java:[7,39] cannot find symbol
[ERROR] symbol: class FileDataModel
[ERROR] location: class org.apache.mahout.SampleRecommender
[ERROR] /Users/[username]/Desktop/ferrari_project/mahout-test/first/src/main/java/org/apache/mahout/SampleRecommender.java:[7,57] cannot find symbol
[ERROR] symbol: class File
[ERROR] location: class org.apache.mahout.SampleRecommender
[ERROR] /Users/[username]/Desktop/ferrari_project/mahout-test/first/src/main/java/org/apache/mahout/SampleRecommender.java:[8,17] cannot find symbol
[ERROR] symbol: class UserSimilarity
[ERROR] location: class org.apache.mahout.SampleRecommender
[ERROR] /Users/[username]/Desktop/ferrari_project/mahout-test/first/src/main/java/org/apache/mahout/SampleRecommender.java:[8,49] cannot find symbol
[ERROR] symbol: class PearsonCorrelationSimilarity
[ERROR] location: class org.apache.mahout.SampleRecommender
[ERROR] /Users/[username]/Desktop/ferrari_project/mahout-test/first/src/main/java/org/apache/mahout/SampleRecommender.java:[9,17] cannot find symbol
[ERROR] symbol: class UserNeighborhood
[ERROR] location: class org.apache.mahout.SampleRecommender
[ERROR] /Users/[username]/Desktop/ferrari_project/mahout-test/first/src/main/java/org/apache/mahout/SampleRecommender.java:[9,53] cannot find symbol
[ERROR] symbol: class ThresholdUserNeighborhood
[ERROR] location: class org.apache.mahout.SampleRecommender
[ERROR] /Users/[username]/Desktop/ferrari_project/mahout-test/first/src/main/java/org/apache/mahout/SampleRecommender.java:[11,17] cannot find symbol
[ERROR] symbol: class UserBasedRecommender
[ERROR] location: class org.apache.mahout.SampleRecommender
[ERROR] /Users/[username]/Desktop/ferrari_project/mahout-test/first/src/main/java/org/apache/mahout/SampleRecommender.java:[11,56] cannot find symbol
[ERROR] symbol: class GenericUserBasedRecommender
[ERROR] location: class org.apache.mahout.SampleRecommender
[ERROR] /Users/[username]/Desktop/ferrari_project/mahout-test/first/src/main/java/org/apache/mahout/SampleRecommender.java:[13,17] cannot find symbol
[ERROR] symbol: class List
[ERROR] location: class org.apache.mahout.SampleRecommender
[ERROR] /Users/[username]/Desktop/ferrari_project/mahout-test/first/src/main/java/org/apache/mahout/SampleRecommender.java:[14,22] cannot find symbol
[ERROR] symbol: class RecommendedItem
[ERROR] location: class org.apache.mahout.SampleRecommender
[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
Is there any thing wrong in my code?
Why do they say cannot find symbol?
You are missing mahout-core as your dependency. Please add below ,it should work.
<dependency>
<groupId>org.apache.mahout</groupId>
<artifactId>mahout-core</artifactId>
<version>0.9</version>
</dependency>
Check for the version compatibility and add the respective version if the above doesn't work.