官术网_书友最值得收藏!

  • JBoss:Developer's Guide
  • Elvadas Nono Woguia
  • 261字
  • 2021-07-02 18:37:24

Creating Maven projects

Use the command list to see the commands available and the man command to get help on a specific command's usage. Forge commands work both interactively and with options. To create a new project, use the project-new command, and provide answers to the interactive questions asked.

[jbdevgWorkspace]$ project-new beosbank-forge-demo
***INFO*** Required inputs not satisfied, entering interactive mode
* Project name: beosbank-forge-demo
? Top level package [org.beosbank.forge.demo]: com.beosbank.forge.demo
? Version [1.0.0-SNAPSHOT] HIT ENTER to pick the default version
? Final name: beosbank-forge-demo
? Project location [/Users/enonowog/jbdevgWorkspace]:
? Use Target Location Root? (If specified, it won't create a subdirectory inside the specified Project location) [y/N]: N
[0] (x) war
[1] ( ) jar
[2] ( ) parent
[3] ( ) forge-addon
[4] ( ) resource-jar
[5] ( ) ear
[6] ( ) from-archetype
[7] ( ) generic
Press <ENTER> to confirm, or <CTRL>+C to cancel.* Project type: [0-7] 1
[0] (x) Maven
Press <ENTER> to confirm, or <CTRL>+C to cancel.* Build system: [0] 0
[0] ( ) JAVA_EE_7
[1] ( ) JAVA_EE_6
[2] ( ) NONE
Press <ENTER> to confirm, or <CTRL>+C to cancel.
? Stack (The technology stack to be used in this project): [0-2] 2
***SUCCESS*** Project named 'beosbank-forge-demo' has been created.

The project is created with the specified input options and is available in the workspace immediately:

By default, the Forge CLI relies on your system's command-line font configuration. After creating a project, the next step may be to add a class; let's see how to create Java class in the project source folder using the Forge console.

主站蜘蛛池模板: 万宁市| 宣化县| 大姚县| 福贡县| 额济纳旗| 镇远县| 阿拉善右旗| 收藏| 新丰县| 荔波县| 阿荣旗| 加查县| 五莲县| 改则县| 买车| 丽水市| 梅州市| 自治县| 曲阳县| 儋州市| 商洛市| 广宗县| 南漳县| 那坡县| 新余市| 博爱县| 永平县| 垦利县| 施甸县| 汝城县| 长丰县| 卢龙县| 桑日县| 台江县| 鹤山市| 北票市| 浑源县| 潞西市| 读书| 胶州市| 名山县|