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

Time for action – deploying and running

Steps for deploying and running Vaadin applications with Maven are as follows:

  1. Move to the directory that Maven created for your project. If you have specified welcome as artifactId, then move to the welcome directory.
  2. Before actually deploying the application we must compile it and package it. To do that, run the command:
    mvn package
    
  3. This will take some time, so be patient.
  4. Now we are ready. Run the command:
    mvn jetty:run
    
  5. If you haven't run this before, you will see a very verbose Maven downloading stuff.
    Tip

    Just in case if you want to break the old tradition:

    mvn tomcat:run
    
  6. Go to http://localhost:8080/welcome and play with the just created Vaadin application.

What just happened?

We have successfully created, compiled, packaged, deployed, and run a Vaadin application using Maven.

主站蜘蛛池模板: 宜君县| 晋江市| 吉安县| 红桥区| 淮北市| 南澳县| 玉龙| 淮安市| 武冈市| 肇源县| 深州市| 达拉特旗| 缙云县| 徐州市| 禹城市| 乐山市| 梨树县| 漾濞| 大方县| 新野县| 海伦市| 稻城县| 铅山县| 睢宁县| 习水县| 宁晋县| 广宁县| 隆安县| 砀山县| 海晏县| 宕昌县| 永嘉县| 彩票| 洪江市| 大姚县| 阿拉善右旗| 临沧市| 泽州县| 九江县| 宿松县| 罗源县|