[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for mobile_server:mobile_server:war:0.0.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-resources-plugin is missing. @ line 37, column 12
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 44, column 12
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-war-plugin is missing. @ line 52, column 12
[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 mobile_server 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.hibernate:hibernate:jar:3.3.2 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for javassist:javassist:jar:3.9.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The artifact springframework:spring-remoting:jar:1.2.6 has been relocated to org.springframework:spring-remoting:jar:1.2.6
[INFO] 
[INFO] --- native2ascii-maven-plugin:1.0-alpha-1:native2ascii (native2ascii-utf8) @ mobile_server ---
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ mobile_server ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] Copying 14 resources
[INFO] Copying 14 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ mobile_server ---
[INFO] Compiling 135 source files to E:\201210\xjq\raxtone-xjq\community\mobile_server\trunk\src\main\webapp\WEB-INF\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] \201210\xjq\raxtone-xjq\community\mobile_server\trunk\src\main\java\com\raxtone\community\mobile\web\action\BaseAction.java:[19,28] 找不到符号
符号: 类 Constants
位置: 软件包 com.raxtone.community
[ERROR] \201210\xjq\raxtone-xjq\community\mobile_server\trunk\src\main\java\com\raxtone\community\mobile\web\action\BaseAction.java:[20,28] 找不到符号
符号: 类 ExceptionCode
位置: 软件包 com.raxtone.community
[ERROR] \201210\xjq\raxtone-xjq\community\mobile_server\trunk\src\main\java\com\raxtone\community\mobile\web\action\BaseAction.java:[23,33] 软件包 com.raxtone.community.util 不存在
[ERROR] \201210\xjq\raxtone-xjq\community\mobile_server\trunk\src\main\java\com\raxtone\community\mobile\web\action\BaseAction.java:[24,30] 软件包 com.raxtone.relayserver 不存在
[ERROR] \201210\xjq\raxtone-xjq\community\mobile_server\trunk\src\main\java\com\raxtone\community\mobile\web\action\BaseAction.java:[31,9] 找不到符号
符号: 类 ServerCenter
位置: 类 com.raxtone.community.mobile.web.action.BaseAction
[ERROR] \201210\xjq\raxtone-xjq\community\mobile_server\trunk\src\main\java\com\raxtone\community\mobile\web\action\BaseAction.java:[42,8] 找不到符号
符号: 类 ServerCenter
位置: 类 com.raxtone.community.mobile.web.action.BaseAction
[ERROR] \201210\xjq\raxtone-xjq\community\mobile_server\trunk\src\main\java\com\raxtone\community\mobile\web\action\BaseAction.java:[46,29] 找不到符号
符号: 类 ServerCenter
位置: 类 com.raxtone.community.mobile.web.action.BaseAction
[ERROR] \201210\xjq\raxtone-xjq\community\mobile_server\trunk\src\main\java\com\raxtone\community\mobile\web\action\chat\fixedgroup\FixedGroupSendMsgAction.java:[5,28] 找不到符号
符号: 类 ExceptionCode
位置: 软件包 com.raxtone.community
[ERROR] \201210\xjq\raxtone-xjq\community\mobile_server\trunk\src\main\java\com\raxtone\community\mobile\web\action\chat\fixedgroup\FixedGroupGetMsgAction.java:[7,28] 找不到符号
符号: 类 ExceptionCode
位置: 软件包 com.raxtone.community
[ERROR] \201210\xjq\raxtone-xjq\community\mobile_server\trunk\src\main\java\com\raxtone\community\mobile\service\impl\ChatServiceImpl.java:[8,30] 软件包 com.raxtone.relayserver 不存在
[ERROR] \201210\xjq\raxtone-xjq\community\mobile_server\trunk\src\main\java\com\raxtone\community\mobile\service\impl\ChatServiceImpl.java:[9,30] 软件包 com.raxtone.relayserver 不存在
[ERROR] \201210\xjq\raxtone-xjq\community\mobile_server\trunk\src\main\java\com\raxtone\community\mobile\service\impl\ChatServiceImpl.java:[10,30] 软件包 com.raxtone.relayserver 不存在
[ERROR] \201210\xjq\raxtone-xjq\community\mobile_server\trunk\src\main\java\com\raxtone\community\mobile\service\impl\ChatServiceImpl.java:[11,30] 软件包 com.raxtone.relayserver 不存在[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在项目中这些包和类中的符号都是存在的而且也没问题?
求高手指教,本人刚开始接触maven构建本人用的是maven-3.0.4 myeclipse8.5

解决方案 »

  1.   

    软件包 com.raxtone.community.util 不存在,看看是不是没有配置这个包,maven也是刚开始接触,也不是很了解。
      

  2.   

    利用projec->clean->cleanAll清理,然后在尝试下
      

  3.   

    解决了 这个项目是用maven构建用ant编译的
      

  4.   

    楼主,你的问题怎么解决的 我也有同样的问题 求解啊!我的好像也是用maven构建用ant编译的
      

  5.   

    上面的其实是两个问题:
    1.找不到符号
    2.类或包找不到
    问题1:是与第一个问题是因为编码字符问题这个只要不字符编码调好就行
    问题2:是因为maven中的pom文件未添加依赖关系;
    两种解决方案:
      a.在pom中添加依赖关系;
      b.在工程中导入依赖包用ant编译