Maven error - cannot find symbol - on multimodule project - java

I downloaded the calendar from exoplatform from this link: https://github.com/exoplatform/calendar and I've trying to generate its war through the command mvn compile war:war. If I run mvn package or mvn install it works fine, but when I add the war:war, compile fails.
Here are the errors:
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[48,38] package org.exoplatform.calendar.model does not exist
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[49,40] package org.exoplatform.calendar.service does not exist
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[50,40] package org.exoplatform.calendar.service does not exist
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[51,40] package org.exoplatform.calendar.service does not exist
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[52,40] package org.exoplatform.calendar.service does not exist
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[53,40] package org.exoplatform.calendar.service does not exist
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[54,40] package org.exoplatform.calendar.service does not exist
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[55,40] package org.exoplatform.calendar.service does not exist
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[56,40] package org.exoplatform.calendar.service does not exist
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[57,40] package org.exoplatform.calendar.service does not exist
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[58,40] package org.exoplatform.calendar.service does not exist
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[59,40] package org.exoplatform.calendar.service does not exist
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[115,18] cannot find symbol
[ERROR] symbol: class CalendarService
[ERROR] location: class org.exoplatform.webservice.cs.calendar.CalendarWebservice
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[116,11] cannot find symbol
[ERROR] symbol: class ExtendedCalendarService
[ERROR] location: class org.exoplatform.webservice.cs.calendar.CalendarWebservice
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[120,17] cannot find symbol
[ERROR] symbol: class CalendarService
[ERROR] location: class org.exoplatform.webservice.cs.calendar.CalendarWebservice
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[134,29] cannot find symbol
[ERROR] symbol: class ExtendedCalendarService
[ERROR] location: class org.exoplatform.webservice.cs.calendar.CalendarWebservice
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[330,49] cannot find symbol
[ERROR] symbol: class CalendarEvent
[ERROR] location: class org.exoplatform.webservice.cs.calendar.CalendarWebservice
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[330,72] cannot find symbol
[ERROR] symbol: class FeedData
[ERROR] location: class org.exoplatform.webservice.cs.calendar.CalendarWebservice
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[630,39] cannot find symbol
[ERROR] symbol: class CalendarSetting
[ERROR] location: class org.exoplatform.webservice.cs.calendar.CalendarWebservice
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[630,67] cannot find symbol
[ERROR] symbol: class CalendarEvent
[ERROR] location: class org.exoplatform.webservice.cs.calendar.CalendarWebservice
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/calendar/ws/CalendarRestApi.java:[31,1] package org.exoplatform.calendar.service does not exist
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/calendar/ws/CalendarRestApi.java:[32,40] package org.exoplatform.calendar.service does not exist
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/calendar/ws/CalendarRestApi.java:[33,49] package org.exoplatform.calendar.service.Calendar does not exist
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/calendar/ws/CalendarRestApi.java:[34,45] package org.exoplatform.calendar.service.impl does not exist
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/calendar/ws/bean/CategoryResource.java:[22,40] package org.exoplatform.calendar.service does not exist
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/calendar/ws/bean/CategoryResource.java:[33,33] cannot find symbol
[ERROR] symbol: class EventCategory
[ERROR] location: class org.exoplatform.calendar.ws.bean.CategoryResource
the main pom: https://drive.google.com/file/d/0BwWIlGx_c4cXM3puSVY2YTlDWE0/view?usp=sharing
the one which returns always returns errors: https://drive.google.com/file/d/0BwWIlGx_c4cXWlptTkp0VF95YlU/view?usp=sharing
I placed them in google drive due to the stack overflow char limit.
I have tried the solutions in stack overflow, like checking the dependencies doing mvn clean install, but whenever I add war:war It returns those errors.
Can anyone help me?

Yes. The proper way to invoke the war goal is :
mvn compile war:war
Now, as you still see the errors, it appears that there could be dependency of one project to another. And, as the dependency couldn't be found in local repository (because you haven't installed that in local repo), the dependency couldn't be added in classpath and hence the errors.

Related

'cannot find symbol' with Lucene

I was using the 1.4.3 version of Lucene, but i need to use the 8.11.2 now.
The problem is that some of the import completely changed (from the 1.4.3 version):
- import org.apache.lucene.search.Hits;
- import org.apache.lucene.store.InputStream;
- import org.apache.lucene.store.OutputStream;
- import org.apache.lucene.analysis.Token;
And i don't find anything when searching on all classes of the 8.11.2 version...
[ERROR] /D:/Dev/7.xx/Webtools/hra-tools-web-tools/hr-documentation-tool/src/main/java/com/hraccess/hradoc/edition/HelpAgregator.java:[20,32] cannot find symbol
[ERROR] symbol: class Hits
[ERROR] location: package org.apache.lucene.search
[ERROR] /D:/Dev/7.xx/Webtools/hra-tools-web-tools/hr-documentation-tool/src/main/java/com/hraccess/hradoc/fts/FtsLuceneApplet.java:[18,32] cannot find symbol
[ERROR] symbol: class Hits
[ERROR] location: package org.apache.lucene.search
[ERROR] /D:/Dev/7.xx/Webtools/hra-tools-web-tools/hr-documentation-tool/src/main/java/com/hraccess/hradoc/fts/FtsLuceneApplet.java:[28,5] cannot find symbol
[ERROR] symbol: class Hits
[ERROR] location: class com.hraccess.hradoc.fts.FtsLuceneApplet
[ERROR] /D:/Dev/7.xx/Webtools/hra-tools-web-tools/hr-documentation-tool/src/main/java/com/hraccess/hradoc/fts/RODirectory.java:[70,31] cannot find symbol
[ERROR] symbol: class InputStream
[ERROR] location: package org.apache.lucene.store
[ERROR] /D:/Dev/7.xx/Webtools/hra-tools-web-tools/hr-documentation-tool/src/main/java/com/hraccess/hradoc/fts/RODirectory.java:[72,31] cannot find symbol
[ERROR] symbol: class OutputStream
[ERROR] location: package org.apache.lucene.store
[ERROR] /D:/Dev/7.xx/Webtools/hra-tools-web-tools/hr-documentation-tool/src/main/java/com/hraccess/hradoc/fts/RODirectory.java:[205,22] cannot find symbol
[ERROR] symbol: class OutputStream
[ERROR] location: class com.hraccess.hradoc.fts.RODirectory
[ERROR] /D:/Dev/7.xx/Webtools/hra-tools-web-tools/hr-documentation-tool/src/main/java/com/hraccess/hradoc/fts/RODirectory.java:[213,22] cannot find symbol
[ERROR] symbol: class InputStream
[ERROR] location: class com.hraccess.hradoc.fts.RODirectory
[ERROR] /D:/Dev/7.xx/Webtools/hra-tools-web-tools/hr-documentation-tool/src/main/java/com/hraccess/hradoc/fts/RODirectory.java:[285,35] cannot find symbol
[ERROR] symbol: class InputStream
[ERROR] /D:/Dev/7.xx/Webtools/hra-tools-web-tools/hr-documentation-tool/src/main/java/com/hraccess/hradoc/fts/analysis/cjk/CJKTokenizer.java:[22,34] cannot find symbol
[ERROR] symbol: class Token
[ERROR] location: package org.apache.lucene.analysis
[ERROR] /D:/Dev/7.xx/Webtools/hra-tools-web-tools/hr-documentation-tool/src/main/java/com/hraccess/hradoc/fts/analysis/cjk/CJKTokenizer.java:[105,18] cannot find symbol
[ERROR] symbol: class Token
[ERROR] location: class com.hraccess.hradoc.fts.analysis.cjk.CJKTokenizer
What can i do to replace these import on the actual 8.11.2 version ?

Error while running maven command in gcp console unable to install common package error

unable to install apache maven packages in gcp console please let me know if any one resolves the issue. I'm trying to create dataflow pipeline following the below link
enter link description here
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 51.368 s
[INFO] Finished at: 2020-08-30T15:27:29Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.2:compile (default-compile) on project common: Compilation failure: Compilation failure:
[ERROR] /home/prasanna_kumar/DataflowTemplates/v2/common/src/main/java/com/google/cloud/teleport/v2/utils/CacheUtils.java:[78,12] cannot find symbol
[ERROR] symbol: class DataStreamClient
[ERROR] location: class com.google.cloud.teleport.v2.utils.CacheUtils.DataStreamPkCache
[ERROR] /home/prasanna_kumar/DataflowTemplates/v2/common/src/main/java/com/google/cloud/teleport/v2/utils/CacheUtils.java:[80,30] cannot find symbol
[ERROR] symbol: class DataStreamClient
[ERROR] location: class com.google.cloud.teleport.v2.utils.CacheUtils.DataStreamPkCache
[ERROR] /home/prasanna_kumar/DataflowTemplates/v2/common/src/main/java/com/google/cloud/teleport/v2/cdc/mappers/MergeInfoMapper.java:[29,42] cannot find symbol
[ERROR] symbol: class DataStreamClient
[ERROR] location: package com.google.cloud.teleport.v2.utils
[ERROR] /home/prasanna_kumar/DataflowTemplates/v2/common/src/main/java/com/google/cloud/teleport/v2/cdc/mappers/MergeInfoMapper.java:[59,11] cannot find symbol
[ERROR] symbol: class DataStreamClient
[ERROR] location: class com.google.cloud.teleport.v2.cdc.mappers.MergeInfoMapper
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :common
By now this is well known to developers bug, confirmed on my side, getting the same kafka-to-bigquery template compilation error around DataStreamClient class. Seems the new PR for CacheUtils.java is going to appear soon, more info here.

Unable to compile project from Maven Central

I am trying to compile an older version (2.4.0) of the gwt-servlet project from Maven Central. I have done the following:
1) Downloaded gwt-servlet-2.4.0-sources.jar from Maven Central.
2) Extracted this source .jar into an empty C:/workingdir/src/main/java directory.
3) Downloaded gwt-servlet-2.4.0.pom from Maven Central to C:/workingdir/pom.xml
4) Executed mvn clean, then mvn install.
On mvn install, I get 100 errors and a handful of warnings from the compiler:
$ mvn install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building gwt-servlet 2.4.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0-beta-1:enforce (enforce-maven) # gwt-servlet ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # gwt-servlet ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\workingdir\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) # gwt-servlet ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3041 source files to C:\workingdir\target\classes
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING :
[INFO] -------------------------------------------------------------
[WARNING] /C:/workingdir/src/main/java/com/google/gwt/rpc/server/CommandSerializationUtil.java:[36,16] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /C:/workingdir/src/main/java/com/google/gwt/resources/rebind/context/AbstractResourceContext.java:[43,13] sun.misc.BASE64Encoder is internal proprietary API and may be removed in a future release
[WARNING] /C:/workingdir/src/main/java/com/google/gwt/resources/rebind/context/AbstractResourceContext.java:[43,46] sun.misc.BASE64Encoder is internal proprietary API and may be removed in a future release
[WARNING] /C:/workingdir/src/main/java/com/google/gwt/rpc/server/CommandSerializationUtil.java:[438,24] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /C:/workingdir/src/main/java/com/google/gwt/rpc/server/CommandSerializationUtil.java:[442,5] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /C:/workingdir/src/main/java/com/google/gwt/rpc/server/CommandSerializationUtil.java:[444,17] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /C:/workingdir/src/main/java/com/google/gwt/rpc/server/CommandSerializationUtil.java:[446,22] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/AttributeParsers.java: Some input files use or override a deprecated API.
[WARNING] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/AttributeParsers.java: Recompile with -Xlint:deprecation for details.
[WARNING] /C:/workingdir/src/main/java/com/google/gwt/emul/java/util/ArrayList.java: Some input files use unchecked or unsafe operations.
[WARNING] /C:/workingdir/src/main/java/com/google/gwt/emul/java/util/ArrayList.java: Recompile with -Xlint:unchecked for details.
[WARNING] Some messages have been simplified; recompile with -Xdiags:verbose to get full output
[INFO] 12 warnings
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/validation/super/com/google/gwt/validation/client/GwtMessageInterpolator.java:[25,8] duplicate class: com.google.gwt.validation.client.GwtMessageInterpolator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/user/translatable/com/google/gwt/user/client/rpc/core/java/util/LinkedHashMap_CustomFieldSerializer.java:[29,14] duplicate class: com.google.gwt.user.client.rpc.core.java.util.LinkedHashMap_Custo mFieldSerializer
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/regexp/super/com/google/gwt/regexp/shared/MatchResult.java:[23,8] duplicate class: com.google.gwt.regexp.shared.MatchResult
[ERROR] /C:/workingdir/src/main/java/com/google/web/bindery/autobean/super/com/google/web/bindery/autobean/shared/impl/StringQuoter.java:[33,8] duplicate class: com.google.web.bindery.autobean.shared.impl.StringQuoter
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/rpc/client/impl/ClientWriterFactory.java:[35,8] duplicate class: com.google.gwt.rpc.client.impl.ClientWriterFactory
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/junit/client/GWTTestCase.java:[48,17] duplicate class: com.google.gwt.junit.client.GWTTestCase
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/benchmarks/translatable/com/google/gwt/benchmarks/client/Benchmark.java:[24,17] duplicate class: com.google.gwt.benchmarks.client.Benchmark
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/user/client/rpc/impl/ReflectionHelper.java:[29,8] duplicate class: com.google.gwt.user.client.rpc.impl.ReflectionHelper
[ERROR] /C:/workingdir/src/main/java/com/google/web/bindery/autobean/super/com/google/web/bindery/autobean/shared/ValueCodexHelper.java:[21,1] duplicate class: com.google.web.bindery.autobean.shared.ValueCodexHelper
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/rpc/super/com/google/gwt/rpc/client/impl/EscapeUtil.java:[25,8] duplicate class: com.google.gwt.rpc.client.impl.EscapeUtil
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/validation/client/GwtConfiguration.java:[31,8] duplicate class: com.google.gwt.validation.client.GwtConfiguration
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/safehtml/super/com/google/gwt/safehtml/shared/SafeHtmlHostedModeUtils.java:[22,8] duplicate class: com.google.gwt.safehtml.shared.SafeHtmlHostedModeUtils
[ERROR] /C:/workingdir/src/main/java/com/google/web/bindery/requestfactory/super/com/google/web/bindery/requestfactory/shared/impl/MessageFactoryHolder.java:[24,8] duplicate class: com.google.web.bindery.requestfactory.shared.impl.MessageFactoryHo lder
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/junit/client/impl/GWTRunner.java:[31,8] duplicate class: com.google.gwt.junit.client.impl.GWTRunner
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/core/client/impl/WeakMapping.java:[30,8] duplicate class: com.google.gwt.core.client.impl.WeakMapping
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/regexp/shared/RegExp.java:[39,8] duplicate class: com.google.gwt.regexp.shared.RegExp
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/validation/client/spi/GwtConfigurationState.java:[27,8] duplicate class: com.google.gwt.validation.client.spi.GwtConfigurationState
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/safehtml/shared/SafeUriHostedModeUtils.java:[34,8] duplicate class: com.google.gwt.safehtml.shared.SafeUriHostedModeUtils
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/regexp/super/com/google/gwt/regexp/shared/SplitResult.java:[23,8] duplicate class: com.google.gwt.regexp.shared.SplitResult
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[18,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[19,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[20,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[68,27] cannot find symbol
symbol: class TreeLogger
location: interface com.google.gwt.resources.ext.ResourceGenerator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceContext.java:[18,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceContext.java:[19,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceContext.java:[20,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[69,7] cannot find symbol
symbol: class JMethod
location: interface com.google.gwt.resources.ext.ResourceGenerator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[69,30] cannot find symbol
symbol: class UnableToCompleteException
location: interface com.google.gwt.resources.ext.ResourceGenerator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[81,21] cannot find symbol
symbol: class TreeLogger
location: interface com.google.gwt.resources.ext.ResourceGenerator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ClientBundleFields.java:[18,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[82,41] cannot find symbol
symbol: class UnableToCompleteException
location: interface com.google.gwt.resources.ext.ResourceGenerator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[88,15] cannot find symbol
symbol: class TreeLogger
location: interface com.google.gwt.resources.ext.ResourceGenerator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[89,14] cannot find symbol
symbol: class UnableToCompleteException
location: interface com.google.gwt.resources.ext.ResourceGenerator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[96,13] cannot find symbol
symbol: class TreeLogger
location: interface com.google.gwt.resources.ext.ResourceGenerator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[97,14] cannot find symbol
symbol: class UnableToCompleteException
location: interface com.google.gwt.resources.ext.ResourceGenerator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[104,16] cannot find symbol
symbol: class TreeLogger
location: interface com.google.gwt.resources.ext.ResourceGenerator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ClientBundleRequirements.java:[18,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ClientBundleRequirements.java:[19,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[105,46] cannot find symbol
symbol: class JMethod
location: interface com.google.gwt.resources.ext.ResourceGenerator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[106,14] cannot find symbol
symbol: class UnableToCompleteException
location: interface com.google.gwt.resources.ext.ResourceGenerator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceContext.java:[60,37] cannot find symbol
symbol: class UnableToCompleteException
location: interface com.google.gwt.resources.ext.ResourceContext
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceContext.java:[79,14] cannot find symbol
symbol: class UnableToCompleteException
location: interface com.google.gwt.resources.ext.ResourceContext
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceContext.java:[97,14] cannot find symbol
symbol: class UnableToCompleteException
location: interface com.google.gwt.resources.ext.ResourceContext
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceContext.java:[115,3] cannot find symbol
symbol: class JClassType
location: interface com.google.gwt.resources.ext.ResourceContext
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceContext.java:[124,3] cannot find symbol
symbol: class GeneratorContext
location: interface com.google.gwt.resources.ext.ResourceContext
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ClientBundleFields.java:[44,17] cannot find symbol
symbol: class JType
location: interface com.google.gwt.resources.ext.ClientBundleFields
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ClientBundleFields.java:[60,17] cannot find symbol
symbol: class JType
location: interface com.google.gwt.resources.ext.ClientBundleFields
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ClientBundleRequirements.java:[40,14] cannot find symbol
symbol: class BadPropertyValueException
location: interface com.google.gwt.resources.ext.ClientBundleRequirements
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ClientBundleRequirements.java:[59,55] cannot find symbol
symbol: class BadPropertyValueException
location: interface com.google.gwt.resources.ext.ClientBundleRequirements
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ClientBundleRequirements.java:[94,25] cannot find symbol
symbol: class JClassType
location: interface com.google.gwt.resources.ext.ClientBundleRequirements
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/i18n/rebind/keygen/MD5KeyGenerator.java:[18,40] package com.google.gwt.util.tools.shared does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/StrictAttributeParser.java:[18,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/StrictAttributeParser.java:[19,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/FieldReferenceConverter.java:[18,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/AttributeParser.java:[18,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/MortalLogger.java:[18,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/MortalLogger.java:[19,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[18,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[19,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[20,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[21,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[22,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/StrictAttributeParser.java:[68,17] cannot find symbol
symbol: class JType
location: class com.google.gwt.uibinder.attributeparsers.StrictAttributeParser
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/StrictAttributeParser.java:[70,60] cannot find symbol
symbol: class JType
location: class com.google.gwt.uibinder.attributeparsers.StrictAttributeParser
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/StrictAttributeParser.java:[84,44] cannot find symbol
symbol: class UnableToCompleteException
location: class com.google.gwt.uibinder.attributeparsers.StrictAttributeParser
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/FieldManager.java:[18,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/FieldManager.java:[19,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/FieldManager.java:[20,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/FieldManager.java:[21,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/FieldManager.java:[22,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/AttributeParser.java:[34,14] cannot find symbol
symbol: class UnableToCompleteException
location: interface com.google.gwt.uibinder.attributeparsers.AttributeParser
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/MortalLogger.java:[71,17] cannot find symbol
symbol: class TreeLogger
location: class com.google.gwt.uibinder.rebind.MortalLogger
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/MortalLogger.java:[73,23] cannot find symbol
symbol: class TreeLogger
location: class com.google.gwt.uibinder.rebind.MortalLogger
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/MortalLogger.java:[82,14] cannot find symbol
symbol: class UnableToCompleteException
location: class com.google.gwt.uibinder.rebind.MortalLogger
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/MortalLogger.java:[91,14] cannot find symbol
symbol: class UnableToCompleteException
location: class com.google.gwt.uibinder.rebind.MortalLogger
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/MortalLogger.java:[96,10] cannot find symbol
symbol: class TreeLogger
location: class com.google.gwt.uibinder.rebind.MortalLogger
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/MortalLogger.java:[114,38] package TreeLogger does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/AttributeParsers.java:[18,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/AttributeParsers.java:[19,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/AttributeParsers.java:[20,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/AttributeParsers.java:[21,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/BundleAttributeParsers.java:[18,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/BundleAttributeParsers.java:[19,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/BundleAttributeParsers.java:[20,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/BundleAttributeParsers.java:[21,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[135,17] cannot find symbol
symbol: class TypeOracle
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[144,11] cannot find symbol
symbol: class JType
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[145,11] cannot find symbol
symbol: class JType
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[146,11] cannot find symbol
symbol: class JType
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[147,11] cannot find symbol
symbol: class JType
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[148,11] cannot find symbol
symbol: class JType
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[149,11] cannot find symbol
symbol: class JType
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[175,7] cannot find symbol
symbol: class TypeOracle
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[193,43] cannot find symbol
symbol: class UnableToCompleteException
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[214,37] cannot find symbol
symbol: class UnableToCompleteException
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[230,37] cannot find symbol
symbol: class UnableToCompleteException
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[249,47] cannot find symbol
symbol: class JType
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[250,14] cannot find symbol
symbol: class UnableToCompleteException
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[266,7] cannot find symbol
symbol: class JType
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[266,26] cannot find symbol
symbol: class UnableToCompleteException
location: class com.google.gwt.uibinder.rebind.XMLElement
[INFO] 100 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 32.595 s
[INFO] Finished at: 2018-05-03T01:21:33-04:00
[INFO] Final Memory: 20M/645M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project gwt-servlet: Compilation failure: Compilation failure:
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/validation/super/com/google/gwt/validation/client/GwtMessageInterpolator.java:[25,8] duplicate class: com.google.gwt.validation.client.GwtMessageInterpolator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/user/translatable/com/google/gwt/user/client/rpc/core/java/util/LinkedHashMap_CustomFieldSerializer.java:[29,14] duplicate class: com.google.gwt.user.client.rpc.core.java.util.LinkedHashMap_Custo mFieldSerializer
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/regexp/super/com/google/gwt/regexp/shared/MatchResult.java:[23,8] duplicate class: com.google.gwt.regexp.shared.MatchResult
[ERROR] /C:/workingdir/src/main/java/com/google/web/bindery/autobean/super/com/google/web/bindery/autobean/shared/impl/StringQuoter.java:[33,8] duplicate class: com.google.web.bindery.autobean.shared.impl.StringQuoter
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/rpc/client/impl/ClientWriterFactory.java:[35,8] duplicate class: com.google.gwt.rpc.client.impl.ClientWriterFactory
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/junit/client/GWTTestCase.java:[48,17] duplicate class: com.google.gwt.junit.client.GWTTestCase
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/benchmarks/translatable/com/google/gwt/benchmarks/client/Benchmark.java:[24,17] duplicate class: com.google.gwt.benchmarks.client.Benchmark
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/user/client/rpc/impl/ReflectionHelper.java:[29,8] duplicate class: com.google.gwt.user.client.rpc.impl.ReflectionHelper
[ERROR] /C:/workingdir/src/main/java/com/google/web/bindery/autobean/super/com/google/web/bindery/autobean/shared/ValueCodexHelper.java:[21,1] duplicate class: com.google.web.bindery.autobean.shared.ValueCodexHelper
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/rpc/super/com/google/gwt/rpc/client/impl/EscapeUtil.java:[25,8] duplicate class: com.google.gwt.rpc.client.impl.EscapeUtil
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/validation/client/GwtConfiguration.java:[31,8] duplicate class: com.google.gwt.validation.client.GwtConfiguration
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/safehtml/super/com/google/gwt/safehtml/shared/SafeHtmlHostedModeUtils.java:[22,8] duplicate class: com.google.gwt.safehtml.shared.SafeHtmlHostedModeUtils
[ERROR] /C:/workingdir/src/main/java/com/google/web/bindery/requestfactory/super/com/google/web/bindery/requestfactory/shared/impl/MessageFactoryHolder.java:[24,8] duplicate class: com.google.web.bindery.requestfactory.shared.impl.MessageFactoryHo lder
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/junit/client/impl/GWTRunner.java:[31,8] duplicate class: com.google.gwt.junit.client.impl.GWTRunner
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/core/client/impl/WeakMapping.java:[30,8] duplicate class: com.google.gwt.core.client.impl.WeakMapping
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/regexp/shared/RegExp.java:[39,8] duplicate class: com.google.gwt.regexp.shared.RegExp
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/validation/client/spi/GwtConfigurationState.java:[27,8] duplicate class: com.google.gwt.validation.client.spi.GwtConfigurationState
.. and on and on
Maven info:
$ mvn -version
Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T15:39:06-04:00)
Maven home: C:\tmp\apache-maven-3.5.0-bin\apache-maven-3.5.0
Java version: 1.8.0_131, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_131\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
I have tried running Maven with an older jdk (jdk1.6.0_45) and have tried compiling other version of gwt-servlet with no luck. Am I missing something? I have been trying every whichway to get this to compile all day. Thanks.
You should probably check out the 2.4.0 tag and build that instead.
It seems (I may be wrong) this version was not even build with Maven, at least no pom.xmls are seen. So it is not a surprise it can't be built with Maven.

jboss & maven: maven build fails due to libraries not opening

I am building the jboss EA 6.3 quickstart project "greeter".
I run maven clean install jboss-as:deploy in the project dir as instructed whilist a jboss server is running.
I get the following errors:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.
1:compile (default-compile) on project jboss-greeter: Compilation failure: Compi
lation failure:
[ERROR] error reading C:\Users\boris\.m2\repository\org\jboss\spec\javax\faces\j
boss-jsf-api_2.1_spec\2.1.28.Final-redhat-1\jboss-jsf-api_2.1_spec-2.1.28.Final-
redhat-1.jar; error in opening zip file
[ERROR] error reading C:\Users\boris\.m2\repository\org\hibernate\javax\persiste
nce\hibernate-jpa-2.0-api\1.0.1.Final-redhat-2\hibernate-jpa-2.0-api-1.0.1.Final
-redhat-2.jar; error in opening zip file
[ERROR] error reading C:\Users\boris\.m2\repository\org\jboss\spec\javax\transac
tion\jboss-transaction-api_1.1_spec\1.0.1.Final-redhat-2\jboss-transaction-api_1
.1_spec-1.0.1.Final-redhat-2.jar; error in opening zip file
[ERROR] error reading C:\Users\boris\.m2\repository\org\jboss\spec\javax\ejb\jbo
ss-ejb-api_3.1_spec\1.0.2.Final-redhat-2\jboss-ejb-api_3.1_spec-1.0.2.Final-redh
at-2.jar; error in opening zip file
[ERROR] error reading C:\Users\boris\.m2\repository\org\jboss\spec\javax\faces\j
boss-jsf-api_2.1_spec\2.1.28.Final-redhat-1\jboss-jsf-api_2.1_spec-2.1.28.Final-
redhat-1.jar; error in opening zip file
[ERROR] error reading C:\Users\boris\.m2\repository\org\hibernate\javax\persiste
nce\hibernate-jpa-2.0-api\1.0.1.Final-redhat-2\hibernate-jpa-2.0-api-1.0.1.Final
-redhat-2.jar; error in opening zip file
[ERROR] error reading C:\Users\boris\.m2\repository\org\jboss\spec\javax\transac
tion\jboss-transaction-api_1.1_spec\1.0.1.Final-redhat-2\jboss-transaction-api_1
.1_spec-1.0.1.Final-redhat-2.jar; error in opening zip file
[ERROR] error reading C:\Users\boris\.m2\repository\org\jboss\spec\javax\ejb\jbo
ss-ejb-api_3.1_spec\1.0.2.Final-redhat-2\jboss-ejb-api_3.1_spec-1.0.2.Final-redh
at-2.jar; error in opening zip file
[ERROR] /C:/Users/boris/Desktop/JavaLearning/jboss-eap-quickstarts-6.3.0.GA/gree
ter/src/main/java/org/jboss/as/quickstarts/greeter/Resources.java:[24,27] packag
e javax.faces.context does not exist
[ERROR] /C:/Users/boris/Desktop/JavaLearning/jboss-eap-quickstarts-6.3.0.GA/gree
ter/src/main/java/org/jboss/as/quickstarts/greeter/Resources.java:[44,12] cannot
find symbol
[ERROR] symbol: class FacesContext
[ERROR] location: class org.jboss.as.quickstarts.greeter.Resources
[ERROR] /C:/Users/boris/Desktop/JavaLearning/jboss-eap-quickstarts-6.3.0.GA/gree
ter/src/main/java/org/jboss/as/quickstarts/greeter/web/CreateController.java:[21
,31] package javax.faces.application does not exist
[ERROR] /C:/Users/boris/Desktop/JavaLearning/jboss-eap-quickstarts-6.3.0.GA/gree
ter/src/main/java/org/jboss/as/quickstarts/greeter/web/CreateController.java:[22
,27] package javax.faces.context does not exist
[ERROR] /C:/Users/boris/Desktop/JavaLearning/jboss-eap-quickstarts-6.3.0.GA/gree
ter/src/main/java/org/jboss/as/quickstarts/greeter/web/CreateController.java:[34
,13] cannot find symbol
[ERROR] symbol: class FacesContext
[ERROR] location: class org.jboss.as.quickstarts.greeter.web.CreateController
[ERROR] /C:/Users/boris/Desktop/JavaLearning/jboss-eap-quickstarts-6.3.0.GA/gree
ter/src/main/java/org/jboss/as/quickstarts/greeter/domain/ManagedBeanUserDao.jav
a:[23,25] cannot find symbol
[ERROR] symbol: class SystemException
[ERROR] location: package javax.transaction
[ERROR] /C:/Users/boris/Desktop/JavaLearning/jboss-eap-quickstarts-6.3.0.GA/gree
ter/src/main/java/org/jboss/as/quickstarts/greeter/domain/ManagedBeanUserDao.jav
a:[24,25] cannot find symbol
[ERROR] symbol: class UserTransaction
[ERROR] location: package javax.transaction
[ERROR] /C:/Users/boris/Desktop/JavaLearning/jboss-eap-quickstarts-6.3.0.GA/gree
ter/src/main/java/org/jboss/as/quickstarts/greeter/domain/ManagedBeanUserDao.jav
a:[32,13] cannot find symbol
[ERROR] symbol: class UserTransaction
[ERROR] location: class org.jboss.as.quickstarts.greeter.domain.ManagedBeanUserD
ao
[ERROR] /C:/Users/boris/Desktop/JavaLearning/jboss-eap-quickstarts-6.3.0.GA/gree
ter/src/main/java/org/jboss/as/quickstarts/greeter/domain/EJBUserDao.java:[19,17
] package javax.ejb does not exist
[ERROR] /C:/Users/boris/Desktop/JavaLearning/jboss-eap-quickstarts-6.3.0.GA/gree
ter/src/main/java/org/jboss/as/quickstarts/greeter/domain/EJBUserDao.java:[26,2]
cannot find symbol
[ERROR] symbol: class Stateful
[ERROR] /C:/Users/boris/Desktop/JavaLearning/jboss-eap-quickstarts-6.3.0.GA/gree
ter/src/main/java/org/jboss/as/quickstarts/greeter/Resources.java:[45,16] cannot
find symbol
[ERROR] symbol: variable FacesContext
[ERROR] location: class org.jboss.as.quickstarts.greeter.Resources
[ERROR] /C:/Users/boris/Desktop/JavaLearning/jboss-eap-quickstarts-6.3.0.GA/gree
ter/src/main/java/org/jboss/as/quickstarts/greeter/web/CreateController.java:[48
,47] cannot find symbol
[ERROR] symbol: class FacesMessage
[ERROR] location: class org.jboss.as.quickstarts.greeter.web.CreateController
[ERROR] /C:/Users/boris/Desktop/JavaLearning/jboss-eap-quickstarts-6.3.0.GA/gree
ter/src/main/java/org/jboss/as/quickstarts/greeter/web/CreateController.java:[51
,47] cannot find symbol
[ERROR] symbol: class FacesMessage
[ERROR] location: class org.jboss.as.quickstarts.greeter.web.CreateController
[ERROR] /C:/Users/boris/Desktop/JavaLearning/jboss-eap-quickstarts-6.3.0.GA/gree
ter/src/main/java/org/jboss/as/quickstarts/greeter/domain/ManagedBeanUserDao.jav
a:[50,22] cannot find symbol
[ERROR] symbol: class SystemException
[ERROR] location: class org.jboss.as.quickstarts.greeter.domain.ManagedBeanUserD
ao
[ERROR] /C:/Users/boris/Desktop/JavaLearning/jboss-eap-quickstarts-6.3.0.GA/gree
ter/src/main/java/org/jboss/as/quickstarts/greeter/domain/ManagedBeanUserDao.jav
a:[68,22] cannot find symbol
[ERROR] symbol: class SystemException
[ERROR] location: class org.jboss.as.quickstarts.greeter.domain.ManagedBeanUserD
ao
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption
I checked the files it tries to open in the maven repo. They all are 1kb large and won't open by winrar. Windows says "file corrupt or damaged".
Other examples (without JSF though) worked just fine.
What is your M2_HOME? You can configure the path in the M2_HOME/conf/settings.xml, e.g.:
<!-- localRepository
| The path to the local repository maven will use to store artifacts.
|
| Default: ${user.home}/.m2/repository
<localRepository>/path/to/local/repo</localRepository>
-->
I removed the specified files that maven couldn't open. Maven redownloaded them, then it worked just fine.

error: package org.picketlink.idm.internal does not exist

I changed my pom.xml to add picktlink-social so I changed my pom to remove picketlink-deltaspike, and addeda apache deltaspike because I had some redundancy issues with picktlink detlaspike, and for a while my app worked.
So every once in a while when I did a mvn clean, I got this error
ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project unikaimagen: Compilation failure: Compilation failure:
[ERROR] /home/jdc/git/unikaimagen/src/main/java/ec/com/unikaimagen/init/IDMConfiguration.java:[33,34] error: package org.picketlink.idm.internal does not exist
[ERROR] /home/jdc/git/unikaimagen/src/main/java/ec/com/unikaimagen/init/IDMConfiguration.java:[35,30] error: package org.picketlink.internal does not exist
[ERROR] /home/jdc/git/unikaimagen/src/main/java/ec/com/unikaimagen/init/IDMConfiguration.java:[70,9] error: cannot find symbol
[ERROR] symbol: class EEJPAContextInitializer
[ERROR] location: class IDMConfiguration
[ERROR] /home/jdc/git/unikaimagen/src/main/java/ec/com/unikaimagen/init/IDMConfiguration.java:[33,34] error: package org.picketlink.idm.internal does not exist
[ERROR] /home/jdc/git/unikaimagen/src/main/java/ec/com/unikaimagen/init/IDMConfiguration.java:[35,30] error: package org.picketlink.internal does not exist
[ERROR] /home/jdc/git/unikaimagen/src/main/java/ec/com/unikaimagen/init/IDMConfiguration.java:[70,9] error: cannot find symbol
[ERROR] symbol: class EEJPAContextInitializer
[ERROR] location: class IDMConfiguration
[ERROR] /home/jdc/git/unikaimagen/src/main/java/ec/com/unikaimagen/init/IDMConfiguration.java:[110,25] error: cannot find symbol
[ERROR] -> [Help 1]
So I changed the version of picketlink from 2.6.1 to 2.6.0 or 2.6.0 to 2.6.1 and it compiled again. But now that is not even working,
This is my pom.xml http://pastebin.com/9bRMrGkv.
org.picketlink.internal should be in picketlink-impl module, which is included in my pom.xml
This is my IDMConfiguration.java http://pastebin.com/XES0WyDQ
http://pastebin.com/XES0WyDQ
I did a jarscan and found this
$ java -jar jarscan.jar -d /home/jdc/.m2/repository/ EEJPAContextInitializer
.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
+/home/jdc/.m2/repository/org/picketlink/picketlink-impl/2.6.0.Final/picketlink-impl-2.6.0.Final.jar
/home/jdc/.m2/repository/org/picketlink/picketlink-impl/2.6.0.Final/picketlink-impl-2.6.0.Final.jar/org/picketlink/internal/EEJPAContextInitializer.class
+/home/jdc/.m2/repository/org/picketlink/picketlink-impl/2.6.0.CR2/picketlink-impl-2.6.0.CR2.jar
/home/jdc/.m2/repository/org/picketlink/picketlink-impl/2.6.0.CR2/picketlink-impl-2.6.0.CR2.jar/org/picketlink/internal/EEJPAContextInitializer.class
+/home/jdc/.m2/repository/org/picketlink/picketlink-impl/2.6.1.Final/picketlink-impl-2.6.1.Final.jar
/home/jdc/.m2/repository/org/picketlink/picketlink-impl/2.6.1.Final/picketlink-impl-2.6.1.Final.jar/org/picketlink/internal/EEJPAContextInitializer.class
----------------------------------------------
I had the same problem when I updated the picketlink version. I checked your pom and I realized that it contains
<dependency>
<groupId>org.picketlink</groupId>
<artifactId>picketlink-api</artifactId>
</dependency>
which specifies all the dependencies, but you have also added each module separately. So, I think you should delete them and try again.

Categories