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 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?
  • ¥15 乘性高斯噪声在深度学习网络中的应用
  • ¥15 运筹学排序问题中的在线排序
  • ¥15 关于docker部署flink集成hadoop的yarn,请教个问题 flink启动yarn-session.sh连不上hadoop,这个整了好几天一直不行,求帮忙看一下怎么解决
  • ¥30 求一段fortran代码用IVF编译运行的结果
  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛