Jenkins Compilation Error Cannot Find Symbol
Contents |
here for a quick overview of the site Help Center Detailed answers
Maven Compilation Error Cannot Find Symbol
to any questions you might have Meta Discuss the workings maven test compile cannot find symbol and policies of this site About Us Learn more about Stack Overflow the company Business
Maven Cannot Find Symbol Dependency
Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack maven compilation error package does not exist Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Maven throws “Cannot find symbol” in Jenkins up vote 0 down vote favorite I'm creating a local instance for Jenkins and Sonarqube. After creating maven compile error symbol not found project and after configuring the same, I clicked "Build Now". In the console output I can see that Maven starts to download the required meta data and once that is completed it throws Compilation error "Cannot find symbol" for each of the file in the project. Maven is also installed installed in my machine and, I tried downloading the project from GIT and ran maven via command prompt it builds successfully. Only if I build via Jenkins I'm getting this issue. Can someone please help me out with this. Sonar Error [ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.6:sonar (default-cli) on project XXXXXXX: Execution default-cli of goal org.codehaus.mojo:sonar-maven-plugin:2.6:sonar failed: An API incompatibility was encountered while executing org.codehaus.mojo:sonar-maven-plugin:2.6:sonar: java.lang.UnsupportedClassVersionError: org/sonar/api/utils/SonarException : Unsupported major.minor version 51.0 [ERROR] ----------------------------------------------------- [ERROR] realm = plugin>org.codehaus.mojo:sonar-maven-plugin:2.6 [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy [ERROR] urls[0] = file:/C:/Program%20Files%20(x86)/Jenkins/maven-repositories /1/org/codehaus/mojo/sonar-maven-plugin/2.6/sonar-maven-plugin-2.6.jar [ERROR] urls[1] = file:/C:/Program%20Files%20(x86)/Jenkins/maven-repositories/1/org/apache/maven/shared/maven-dependency-tree/2.1/maven-dependency-tree-2.1.jar [ERROR] urls[2] = file:/C:/Program%20Files%20(x86)/Jenkins/maven-repositories/1/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar [ERROR] urls[3] = file:/C:/Program%20Files%20(x86)/Jenkins/maven-repositories/1/org/codehaus/plexus/plexus-interpolation/1.11/plexus-interpolation-1.11.j
here for a quick overview of the site Help
Maven Cannot Find Symbol Method
Center Detailed answers to any questions you might have java compile error cannot find symbol Meta Discuss the workings and policies of this site About Us Learn more about
Jenkins Maven Cannot Find Symbol
Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges http://stackoverflow.com/questions/32605160/maven-throws-cannot-find-symbol-in-jenkins Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up maven compilation failure up vote 17 down vote favorite 11 I have a weird http://stackoverflow.com/questions/1589121/maven-compilation-failure problem - Some class file couldn't be read during maven build. I have a project A and project B. Project B depends on the project A target JAR file. During the project B compilation it is not able to read lib in the project A JAR file - though the part directed to it is perfect. I have also checked and verified the maven script and it is perfect. Error: [INFO] Compiling 137 source files to V:\dhs_tss_build_view\dhs_tssproject\tss\tsscommon-server\target\classes [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Compilation failure V:/dhs_tss_build_view/dhs_tssproject/tss/tsscommon-server/src/main/java/us/mn/state/dhs/tss/common/oblix/da/wsdl/OblixLoginAc cess.java:[51,60] cannot find symbol symbol : class BusinessException location: class us.mn.state.dhs.tss.common.oblix.da.wsdl.OblixLoginAccess V:/dhs_tss_build_view/dhs_tssproject/tss/tsscommon-server/src/main/java/us/mn/state/dhs/tss/common/app/da/ldap/BaseLdapImpl.j ava:[187,14] cannot find symbol symbol : class Phone location: class us.mn.state.dhs.tss.common.app.da.ldap.BaseLdapImpl V:/dhs_tss_build_view/dhs_tssproject/tss/tsscommon-server/src/main/java/us/mn/state/dhs/tss/common/app/da/ldap/BaseLdapImpl.j ava:[204,14] cannot find symbol symbol : class Phone location: class us.mn.state.dhs.tss.common.app.da.ldap.BaseLdapImpl [INFO] ------------------------------------------------------------------------ [DEBUG] Trace org.apache.maven.BuildFailureException: Compilation failure at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:579) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330
here for a quick overview of the site Help Center Detailed answers to any questions http://stackoverflow.com/questions/25158522/jenkins-build-failed-error-cannot-find-symbol you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a cannot find community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Jenkins Build Failed error: cannot find symbol up vote 2 down vote favorite I have done my Automation in java using Junit and push that code to bitbucket and integrated it with jenkins. cannot find symbol But when i am starting build after creating job it start failling and throwing some error. i am not able get that why it is not taking class path and how i can set class path to avoid this issue Here is error coming on console [javac] C:\Program Files\Jenkins\workspace\ABC-first-job\tst\com\cb\abc\ABCTest.java:110: error: cannot find symbol [javac] Assert.assertTrue(response.contains(ABCConstant.DATA_MESSAGE)); [javac] ^ [javac] symbol: variable Assert [javac] location: class ABCTest [javac] 47 errors BUILD FAILED C:\Program Files\Jenkins\workspace\ABC-first-job\build.xml:48: Compile failed; see the compiler error output for details. Total time: 2 seconds Build step 'Invoke Ant' marked build as failure Finished: FAILURE java jenkins bitbucket share|improve this question asked Aug 6 '14 at 10:53 napender 25019 Can you run the same Ant tasks on your development machine successfully? –Raffaele Aug 6 '14 at 10:59 yes its is running successfully on my machine. it start happening when i deployed the code on bibucket and integrate it with jenkins for running test automaticall