简体   繁体   English

创建黄瓜java testng maven可执行jar项目并从命令行运行

[英]create cucumber java testng maven executable jar project and run from command line

I created my project in Intellij idea with maven set up. 我在Intellij idea中使用maven设置创建了我的项目。

Just I want to build executable jar with complete dependencies and run through command line. 我只是想构建具有完全依赖关系的可执行jar并通过命令行运行。

Ex: java -jar hello.jar 例如:java -jar hello.jar

An example can be found in my blog post Create an executable jar from Maven 在我的博客文章中可以找到一个示例从Maven创建可执行jar

Just make sure you can run Cucumber from your main function. 只要确保您可以从主函数运行Cucumber。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Maven项目(Cucumber + TestNG + Selenium-Java)测试无法使用mvn clean install在命令行上运行测试 - Maven Project(Cucumber+TestNG+Selenium-Java] Test Can't Run test on command line with mvn clean install Java Cucumber-在命令行中运行Junit Maven项目 - Java Cucumber - Run Junit Maven project in Command line 命令行运行JAVA+Cucumber+JUnit Maven项目 - Run JAVA+Cucumber+JUnit Maven project in command line 使用命令行中的参数从JAR运行Maven项目 - Run maven project from JAR with arguments from command line Maven命令行运行打包到jar中的TestNG - Maven command line to run TestNG which are packaged to jar 在Intellij / idea的Cucumber / Java项目中创建可执行JAR - Create executable JAR in Cucumber/Java project in Intellij/idea 如何在mac中通过命令行运行maven项目的testng脚本 - How to run the testng script of maven project through the command line in mac 为 Cucumber Selenium 项目创建可执行 jar 文件 - Create executable jar file for Cucumber Selenium project 从命令行运行带有selenium(TestNG)的maven项目需要什么配置? - What configuration required to run maven project with selenium (TestNG) from command line? 如何编译基于Maven的Java项目以从命令行运行它 - How to compile Maven based Java project to run it from command line
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM