During using mvn install or mvn compile i got error that maven can not find symbol with different methods and variables in mozilla rhino classes. I made exclusions everywhere where it is possible and said to use 7r5 build for rhino. Also i decompiled jar and got sure that mentioned classes and methods in maven were in that classes. I had pom deps and i couldnt exclude all 3d libraries. So in classpath i saw also path to rhino 6r5 library. I thought that problem was there. So i also decompiled that jar but i saw that methods in the error were also there. My question is how i can debug maven and see what library or class it is using for compiling class. All mozilla rhino libraries which are set in classpath have that methods.
PS: I wanted to mention that mvn eclipse:eclipse works fine and i have no errors in eclipse.
[ERROR] ...path_to_class...:[264,65] cannot find symbol
[ERROR] symbol: method getLength()
[ERROR] location: class org.mozilla.javascript.NativeArray
[ERROR] ...path_to_class...:[288,18] cannot find symbol
[ERROR] symbol: method getWrapFactory()
[ERROR] location: variable cx of type org.mozilla.javascript.Context
[ERROR] ...path_to_class...:[322,49] cannot find symbol
[ERROR] symbol: method getLength()
[ERROR] location: variable array of type org.mozilla.javascript.NativeArray
Related
I have a maven project that works perfectly fine locally but after I've pushed it to a remote repository on GitHub and cloned it somewhere else (even to a new location on the same computer), one of the imports does not work because
Cannot resolve symbol 'DefaultMouseManager'
and of course maven install is failing with a lot of compilation errors like this one:
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /C:/Users/.../CustomMouseManager2.java:[6,36] cannot find symbol
symbol: class DefaultMouseManager
location: package org.graphstream.ui.view.util
Is there anything I should check that may cause this problem?
Is the problem the class DefaultMouseManager or is it something more general?
Javadoc says package doesnt exist in all the imports. This same setup worked for Java1.8 but with java 11 it has this issue
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.9:jar (attach-javadocs) on project esymac: MavenReportException: Error while creating archive:
[ERROR] Exit code: 1 - /home/JDK/com/SelfMonServiceLocator.java:23: error: package com does not exist
[ERROR] import com.SelfMonConstants;
[ERROR] ^
It was working in java1.8 properly with the same classes and pom.xml. But with java11 it fails to find packages.
I run maven using mvn clean verify -U -e -DskipITs=true
and get the following compilation error. When I run with the debug option -X it points me to the https://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException but I cannot find the underling problem.
These packages are part of the magnolia-pages-app-5.6.4.jar with is
in my .m2 directory under
/Users/asusti/.m2/repository/info/magnolia/pages/magnolia-pages-app/5.6.4/magnolia-pages-app-5.6.4.jar
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Users/asusti/Projects/xxx-wcms/xxx-module-versioning/src/main/java/ch/xxx/module/versioning/VersionSelector.java:[5,38] package info.magnolia.pages.app.editor does not exist
[ERROR] /Users/asusti/Projects/xxx-wcms/xxx-module-versioning/src/main/java/ch/xxx/module/versioning/VersionSelector.java:[6,48] package info.magnolia.pages.app.editor.extension does not exist
[ERROR] /Users/asusti/Projects/xxx-wcms/xxx-module-versioning/src/main/java/ch/xxx/module/versioning/VersionSelector.java:[12,38] cannot find symbol
symbol: class AbstractExtension
[ERROR] /Users/asusti/Projects/xxx-wcms/xxx-module-versioning/src/main/java/ch/xxx/module/versioning/VersionSelector.java:[15,17] cannot find symbol
symbol: class PageEditorPresenter
location: class ch.xxx.module.versioning.VersionSelector
[ERROR] /Users/asusti/Projects/xxx-wcms/xxx-module-versioning/src/main/java/ch/xxx/module/versioning/VersionSelector.java:[18,83] cannot find symbol
symbol: class PageEditorPresenter
location: class ch.xxx.module.versioning.VersionSelector
I added this into my module's pom file and after that maven worked:
<!-- magnolia pages extensions for pagebar functionality -->
<dependency>
<groupId>info.magnolia.pages</groupId>
<artifactId>magnolia-pages-app</artifactId>
<version>5.6.4</version>
</dependency>
I added a project A into the build path of another project B so that I could use some of the Objects present in project A. I compiled Project B using Clean Build in Eclipse but while running maven install I get `COMPILATION ERROR'.In some of the answers I found that Maven doesn't know about the build path if this is the case then how can I get rid of this issue. It complaints for the Class which is in project A and I am using it in Project B.
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /C:/ClearCase/ssadat_ESign1_Dev01/MercGlobal/ESign1/ESignature/src/com/mercuryinsurance/esignature/integration/dao/uiintegration/IUiIntegrationDao.java:[7,63] package com.mercuryinsurance.esignature.integration.interceptor does not exist
[ERROR] /C:/ClearCase/ssadat_ESign1_Dev01/MercGlobal/ESign1/ESignature/src/com/mercuryinsurance/esignature/integration/dao/uiintegration/IUiIntegrationDao.java:[33,59] cannot find symbol
symbol: class ESignatureIntegrationConfig
location: interface com.mercuryinsurance.esignature.integration.dao.uiintegration.IUiIntegrationDao
[ERROR] /C:/ClearCase/ssadat_ESign1_Dev01/MercGlobal/ESign1/ESignature/src/com/mercuryinsurance/esignature/integration/manager/uiintegration/IUiIntegrationManager.java:[12,63] package com.mercuryinsurance.esignature.integration.interceptor does not exist
[ERROR] /C:/ClearCase/ssadat_ESign1_Dev01/MercGlobal/ESign1/ESignature/src/com/mercuryinsurance/esignature/integration/manager/uiintegration/IUiIntegrationManager.java:[44,61] cannot find symbol
symbol: class ESignatureIntegrationConfig
location: interface com.mercuryinsurance.esignature.integration.manager.uiintegration.IUiIntegrationManager
[ERROR] /C:/ClearCase/ssadat_ESign1_Dev01/MercGlobal/ESign1/ESignature/src/com/mercuryinsurance/esignature/integration/manager/uiintegration/UiIntegrationManager.java:[41,63] package com.mercuryinsurance.esignature.integration.interceptor does not exist
[ERROR] /C:/ClearCase/ssadat_ESign1_Dev01/MercGlobal/ESign1/ESignature/src/com/mercuryinsurance/esignature/integration/manager/uiintegration/UiIntegrationManager.java:[220,68] cannot find symbol
symbol: class ESignatureIntegrationConfig
location: class com.mercuryinsurance.esignature.integration.manager.uiintegration.UiIntegrationManager
[ERROR] /C:/ClearCase/ssadat_ESign1_Dev01/MercGlobal/ESign1/ESignature/src/com/mercuryin surance/esignature/integration/dao/uiintegration/UiIntegrationDao.java:[15,63] package com.mercuryinsurance.esignature.integration.interceptor does not exist
[ERROR] /C:/ClearCase/ssadat_ESign1_Dev01/MercGlobal/ESign1/ESignature/src/com/mercuryin surance/esignature/integration/dao/uiintegration/UiIntegrationDao.java:[86,72] cannot find symbol
symbol: class ESignatureIntegrationConfig
location: class com.mercuryinsurance.esignature.integration.dao.uiintegration.UiIntegrationDao
I am trying to "Mavenize" our existing Commerce solution. However, I am getting a weird error when I try to run mvn compile I get the following error.
[ERROR] /home/user/tmp/IBM/WCDE_ENT70/workspace/WebSphereCommerceServerExtensionsData/ejbModule/org/ecommerce/wcs/changerequest/ChangeRequestAccessBean.java:[347,32] cannot find symbol
[ERROR] symbol : method createAccessBeans(java.util.Collection)
[ERROR] location: class org.ecommerce.wcs.changerequest.ChangeRequestAccessBean
When I check the class it is related to the com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean class which IBM has neglected to include JavaDoc for anywhere. I look into eclipse and it shows me the method in question was correct using code complete, however, it still fails with maven.
I am wondering if it isn't a customisation to the IBM jre (I am not using that for this POC) and if there is no way around it (short of extending the class and reimplementing).
Anyone?
Problem had to do with multiple imports of different versions of the same dependency. Now this has been resolved.