MAVEN+SSH整合出错,程序包com.sun.org.apache.xalan.internal.utils不存在

波波宝 2016-03-17 12:45:55
在此贴出错误信息错误信息
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for cn.hackingwu.easycms:EasyCMS:jar:0.0.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.tomcat.maven:tomcat7-maven-plugin is missing. @ line 185, column 19
[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 EasyCMS 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ EasyCMS ---
[INFO] Deleting D:\java\MyProject\EasyCMS\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ EasyCMS ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 18 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ EasyCMS ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 120 source files to D:\java\MyProject\EasyCMS\target\classes
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING :
[INFO] -------------------------------------------------------------
[WARNING] /D:/java/MyProject/EasyCMS/src/main/java/cn/easycms/service/OperlogsService.java: 某些输入文件使用了未经检查或不安全的操作。
[WARNING] /D:/java/MyProject/EasyCMS/src/main/java/cn/easycms/service/OperlogsService.java: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
[INFO] 2 warnings
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /D:/java/MyProject/EasyCMS/src/main/java/cn/easycms/service/TemplateChannelService.java:[9,47] 程序包com.sun.org.apache.xalan.internal.utils不存在
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.321 s
[INFO] Finished at: 2016-03-17T00:49:41+08:00
[INFO] Final Memory: 18M/168M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project EasyCMS: Compilation failure
[ERROR] /D:/java/MyProject/EasyCMS/src/main/java/cn/easycms/service/TemplateChannelService.java:[9,47] 程序包com.sun.org.apache.xalan.internal.utils不存在
[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

...全文
638 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
tianfang 2016-03-24
  • 打赏
  • 举报
回复
这个类在rt.jar中 编译参数增加一下,代码如下

<build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <configuration>
                        <source>1.5</source>
                        <target>1.5</target>
                        <compilerArguments>
                             <verbose />
                              <bootclasspath>${java.home}/lib/rt.jar</bootclasspath>
                        </compilerArguments>                         
                    </configuration>        
                </plugin>
            </plugins>
        </pluginManagement>
    </build>


fpy520521 2016-03-23
  • 打赏
  • 举报
回复
配置私服么?是从公司里荡下来的JAR么?

67,512

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧