NutzCN Logo
问答 wzflow运行失败
发布于 3174天前 作者 hanang128 2534 次浏览 复制 上一个帖子 下一个帖子
标签:

按照readme里的步骤,数据库创建成功,运行mvn jetty:run 报错。
mvn jetty:run -e
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[WARNING] [WARNING] Some problems were encountered while building the effective model for com.auto:wzflow:war:1.0
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.fasterxml.jackson.core:jackson-core:jar -> duplicate declaration of version 2.2.3 @ line 269, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ line 445, column 21
[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 wzflow 1.0
[INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> jetty-maven-plugin:9.3.5.v20151012:run (default-cli) > test-compile @ wzflow >>>
[INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ wzflow ---

[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] Copying 17 resources
[INFO] [INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ wzflow ---
[INFO] Compiling 111 source files to E:\ѧϰ\nutz\wzflow\src\main\webapp\WEB-INF\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] E:\ѧϰ\nutz\wzflow\src\main\java\com\auto\common\dao\DBObject.java:[28,13] ����: �����oracle.sql������
[ERROR] E:\ѧϰ\nutz\wzflow\src\main\java\com\auto\common\dao\DBObject.java:[28,37] ����: �����oracle.sql������
[INFO] 2 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------ [INFO] Total time: 15.685 s
[INFO] Finished at: 2016-04-14T10:14:02+08:00
[INFO] Final Memory: 26M/131M
[INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project wzflow: Compilation failure: Compilation failure:
[ERROR] E:\ѧϰ\nutz\wzflow\src\main\java\com\auto\common\dao\DBObject.java:[28,13] ����: �����oracle.sql������
[ERROR] E:\ѧϰ\nutz\wzflow\src\main\java\com\auto\common\dao\DBObject.java:[28,37] ����: �����oracle.sql������
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project wzflow: Compilation failure
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions(MojoExecutor.java:364)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:198)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:729)
at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:128)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 24 more
[ERROR] [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

求指导。

2 回复

DBObject里面用了Oracle的Blob/Clob类,而这个类在maven中是找不到的. 所以,如果只是玩玩,注释掉即可,不影响.

若需要彻底解决, 自行把oracle jdbc驱动安装到本地maven库即可

@wendal 搞定了,多谢。

添加回复
请先登陆
回到顶部