mvn clean package -Dmaven.test.skip=true 编译失败

来源:3-2 Maven实战

Edward_han

2018-06-01

C:\Users\Edward\IdeaProjects\mmall>mvn clean package -Dmaven.test.skip=true

[WARNING]

[WARNING] Some problems were encountered while building the effective settings

[WARNING] Unrecognised tag: 'mirrors' (position: START_TAG seen ...be unique across the set of mirrors.\n     |\n     -->\n    <mirrors>... @154:14)  @ C:\Users\Edward\.m2\settings.xml, line 154, column 14

[WARNING]

[INFO] Scanning for projects...

[WARNING]

[WARNING] Some problems were encountered while building the effective model for com:mmall:war:1.0-SNAPSHOT

[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 271, column 15

[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 mmall Maven Webapp 1.0-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[INFO]

[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ mmall ---

[INFO] Deleting C:\Users\Edward\IdeaProjects\mmall\target

[INFO]

[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ mmall ---

[debug] execute contextualize

[INFO] Using 'UTF-8' encoding to copy filtered resources.

[INFO] Copying 4 resources

[INFO] Copying 11 resources

[INFO]

[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ mmall ---

[INFO] Compiling 58 source files to C:\Users\Edward\IdeaProjects\mmall\target\classes

[INFO] -------------------------------------------------------------

[ERROR] COMPILATION ERROR :

[INFO] -------------------------------------------------------------

[ERROR] \Users\Edward\IdeaProjects\mmall\src\main\java\com\mmall\controller\backend\CategoryManageController.java:[9,23] 错误: 程序包javafx.animation不存在

[ERROR] \Users\Edward\IdeaProjects\mmall\src\main\java\com\mmall\service\Impl\UserServiceImpl.java:[11,25] 错误: 程序包javafx.scene.input不存在

[ERROR] \Users\Edward\IdeaProjects\mmall\src\main\java\com\mmall\controller\backend\CategoryManageController.java:[9,23] 错误: 程序包javafx.animation不存在

[ERROR] \Users\Edward\IdeaProjects\mmall\src\main\java\com\mmall\service\Impl\UserServiceImpl.java:[11,25] 错误: 程序包javafx.scene.input不存在

[INFO] 4 errors

[INFO] -------------------------------------------------------------

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 3.884s

[INFO] Finished at: Fri Jun 01 23:38:48 CST 2018

[INFO] Final Memory: 16M/228M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project mmall: Compilation failure: Compilation failure:

[ERROR] \Users\Edward\IdeaProjects\mmall\src\main\java\com\mmall\controller\backend\CategoryManageController.java:[9,23] 错误: 程序包javafx.animation不存在

[ERROR] \Users\Edward\IdeaProjects\mmall\src\main\java\com\mmall\service\Impl\UserServiceImpl.java:[11,25] 错误: 程序包javafx.scene.input不存在

[ERROR] \Users\Edward\IdeaProjects\mmall\src\main\java\com\mmall\controller\backend\CategoryManageController.java:[9,23] 错误: 程序包javafx.animation不存在

[ERROR] \Users\Edward\IdeaProjects\mmall\src\main\java\com\mmall\service\Impl\UserServiceImpl.java:[11,25] 错误: 程序包javafx.scene.input不存在

[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


写回答

2回答

Geely

2018-06-05

看看包没导入全吧,或者导错了


[ERROR] \Users\Edward\IdeaProjects\mmall\src\main\java\com\mmall\controller\backend\CategoryManageController.java:[9,23] 错误: 程序包javafx.animation不存在

[ERROR] \Users\Edward\IdeaProjects\mmall\src\main\java\com\mmall\service\Impl\UserServiceImpl.java:[11,25] 错误: 程序包javafx.scene.input不存在

[ERROR] \Users\Edward\IdeaProjects\mmall\src\main\java\com\mmall\controller\backend\CategoryManageController.java:[9,23] 错误: 程序包javafx.animation不存在

[ERROR] \Users\Edward\IdeaProjects\mmall\src\main\java\com\mmall\service\Impl\UserServiceImpl.java:[11,25] 错误: 程序包javafx.scene.input不存在


0
1
Edward_han
非常感谢!导入了没用的包,删了就好了
2018-06-05
共1条回复

polo哦

2018-06-04

//img.mukewang.com/szimg/5b148fe0000185c611470436.jpg

兄弟很明显你的包有问题啊,,,看看你的类,,和pom

0
0

Java企业级电商项目架构 Tomcat集群与Redis分布式

Tomcat集群+Redis分布式+代码重构+源码原理解析

2685 学习 · 947 问题

查看课程