sunsys 2015-09-18 09:58 采纳率: 0%
浏览 1956

工程pom里已配置关了test, 但想命令行临时运行一下test,mvn命令是怎样的?

我的Maven工程pom.xml里已配置关了test,

maven-surefire-plugin
2.7.1


default-test
test

test




<!-- true -->
<!-- true -->
true

但我想命令行运行,临时打开test跑一下,
我用 mvn test -DskipTests=false 但仍然是skip跳过
D:\GIT_Work\iVIEW8.5\oss\xml\xmlservice\api>mvn test -DskipTests=false
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building xmlservice-api 8.2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ xmlservice-api ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ xmlservice-api ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- native2ascii-maven-plugin:1.0-beta-1:native2ascii (native2ascii) @ xmlservice-api ---
[INFO] Includes: [*.properties]
[INFO] Excludes: []
[INFO] Processing D:\GIT_Work\iVIEW8.5\oss\xml\xmlservice\api\target\classes\xmlservicebiz.properties
[INFO] Processing D:\GIT_Work\iVIEW8.5\oss\xml\xmlservice\api\target\classes\xmlservicebiz_zh_CN.properties
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ xmlservice-api ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ xmlservice-api ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.7.1:test (default-test) @ xmlservice-api ---
[INFO] Tests are skipped.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.939s
[INFO] Finished at: Fri Sep 18 17:47:24 CST 2015
[INFO] Final Memory: 11M/371M
[INFO] ------------------------------------------------------------------------

临时打开test跑一下的mvn命令应该是怎样的呢?

  • 写回答

1条回答 默认 最新

  • sunsys 2015-09-18 13:38
    关注

    靠,好像都贴不了 xml
    pom.xml 已经配置成了 skipTests 为 true
    “true ”

    评论

报告相同问题?

悬赏问题

  • ¥15 高价求中通快递查询接口
  • ¥15 解决一个加好友限制问题 或者有好的方案
  • ¥15 关于#java#的问题,请各位专家解答!
  • ¥15 急matlab编程仿真二阶震荡系统
  • ¥20 TEC-9的数据通路实验
  • ¥15 ue5 .3之前好好的现在只要是激活关卡就会崩溃
  • ¥50 MATLAB实现圆柱体容器内球形颗粒堆积
  • ¥15 python如何将动态的多个子列表,拼接后进行集合的交集
  • ¥20 vitis-ai量化基于pytorch框架下的yolov5模型
  • ¥15 如何实现H5在QQ平台上的二次分享卡片效果?